Color
Chromatic palette
NOTE: View the Data visualization > Color section for details about the data visualization palette.We have five primary chromatic hues and their color steps, totaling 55 color variables for use across the application. These colors give flexibility during the design process, while also providing a harmonious palette that looks consistent and in-line with our brand styles.
Though deciding which color to use depends on the situation, here are some general guidelines for using the chromatic palette hues:
- Blue indicates a current or active state. It communicates management, progress, connectivity, or organization.
- Green indicates success. It communicates save, create, add, available, done, approved, or resolved.
- Orange indicates attention is required. It communicates warning, pending, missing, or impeded progress.
- Red indicates a problem. It communicates a critical state, destructive action, error, failure, removal, stop, or decline.
- Purple is not assigned meaning in the same way the other chromatic hues are, and instead is associated with the GitLab brand. It communicates an affinity with the brand, and is used for things like illustrations or company-related announcements in the product.
Blue
Green
Orange
Red
Purple
Neutral palette
The neutral palette is primarily used within components to help differentiate hierarchy. Use shades of gray as backgrounds, borders, and shadows to emphasize areas or set them apart.
Transparency
Transparency is used only to indicate hover and active states within themes. Each theme has a series of four transparencies to utilize alpha levels ranging from 0.02 to 0.08.
Themes
A user may choose between ten different themes to customize the appearance of the application header and navigation sidebar in GitLab. Each theme draws inspiration from one of the primary chromatic colors, the neutral palette, or the corporate indigo color.
- Indigo and light indigo share the same
$t-indigo-variables. - Green and light green share the same
$t-green-variables. - Dark and light share the same
$t-gray-variables.
Indigo / Light indigo
Blue
Light blue
Green / Light green
Red
Light red
Dark / Light
The dark and light (gray) themes use the neutral palette.
Accessibility
At GitLab, we are dedicated to continually improving the accessibility of the application. Pajamas satisfies the Web Content Accessibility Guidelines (WCAG) AA level for normal text. Learn more in Accessibility.
- Normal text must have a contrast ratio of at least 4.5:1.
- Large text is defined as
14ptBold (18.5px) or18pt(24px) and must have a contrast ratio of at least 3:1.
Passing level and contrast ratio
- AAA - Pass 7:1+
- AA - Pass 4.5:1+
- AA+ - Pass, large text only 3:1+
- F - Doesn’t pass
Contrast ratios for each color step are calculated using white (#fff) and black (#000). The 50–400 steps all meet a 4.5:1 contrast ratio or higher against $gray-950 (#1f1f1f) or darker, while the 500–950 steps all meet a 4.5:1 contrast ratio against $gray-10 (#fafafa) or lighter.
Use colors at least two steps apart to ensure distinguishable contrast for states and border/fill combinations.
Last updated at: