Skip to content

Theme

The Atlas color palette is used to bring visual meaning to interface elements and convey specific messages in certain instances. The primary colors used are various shades of gray as textual and foundational elements, blue as progressive elements, and red, yellow, and green to convey status. To check the contrast ratio between two colors, visit the WebAIM contrast checker.

For documentation on the entire color palette, visit Colors.

TIP

Some colors vary between light and dark modes. Use the color mode switcher in the site header to see the colors in the different modes. Using design tokens rather than raw hex codes will ensure you're automatically using the right color for the chosen mode.

Class First

The Atlas color system follows a class-first approach, which means you can apply styles directly using utility classes like color-accent, bg-primary, text-link, and others. This enables faster and more consistent interface development without relying on inline styles or custom CSS for each element.

These classes are based on Atlas’s design tokens and ensure all elements adhere to the OpenStreetMap visual identity, including accessibility, contrast, and responsiveness. By using classes like color-accent, you apply the accent color defined in the active theme (whether light or dark) ensuring visual harmony across all contexts.

The class-first approach also simplifies maintenance and scalability of the design system and allows smoother integration with utility-based frameworks like Tailwind CSS.

Theming

You can easily adapt Atlas to your project’s color scheme thanks to the use of Design Tokens. This makes it simple to customize elements like color-accent while preserving the system’s visual consistency and structure.

We recommend keeping Atlas’s original background colors to maintain contrast and accessibility. When customizing, prioritize adjusting the color-accent and always check contrast with background elements to ensure readability.

Text color

Color tokens applied to text and icons

ColorTokenWhen to use
color-baseDefault color of all text styles and icons
color-subtleSubtle text/icons that shouldn't be distracting (e.g. subtitles, descriptions)
color-emphasizedEmphasized text/icons (e.g., Headings)
color-base-hoverTertiary buttons text/icons on hover
color-disableUse it for disabled text/icons in interactive elements (e.g. input, form items).
color-accentActive color for accents text and icons
color-accent-hoverHover color of primary text elements
color-accent-activeText on darker backgrounds
color-foregroundIcons on hover
color-inverseText and icons on darker backgrounds
color-linkLinks
color-link-activeLinks active
color-link-vistedVisited links
color-successSuccess messages and icons
color-infoInfo messages and icons
color-warningWarning messages and icons
color-errorError messages and icons

Background colors

Color tokens applied in backgrounds

ColorTokenWhen to use
bgn-baseBase background
bgn-surfaceSurface background
bgn-surface-hoverHovered menu options, active tertiary buttons
bgn-disableDisabled background of interactive elements (e.g. button)
bgn-accentDefault accent backgrounds
bgn-accent-hoverHover accent backgrounds
bgn-accent-activeActive accent backgrounds
bgn-foregroundForeground background
bgn-dangerDefault danger/error backgrounds
bgn-danger--hoverHover on danger/error interactive backgrounds
bgn-danger--activeActive danger/error backgrounds (e.g. active selected-error checkbox)
bgn-infoInfo feedback background
bgn-sucessSuccess feedback background
bgn-warningWarning feedback backgorund
bgn-errorError feedbacks backgorund

Border colors

Color tokens applied to borders on form items and buttons

ColorTokenReference
border-color-baseDefault for interactive elements, dialogs, menus
border-base-color-hoverWhen interactive elements on hover
border-color-subtleDividers and thumbnail borders
border-color-accentDisabled form item borders
border-color-focus
border-color-info``
border-color-success``
border-color-warning``
border-color-error``