Living Heritage Atlas · Handoff for developers and designers

Atlas colour guide: light and dark

العربية

Every colour on the site is one token with two values, one for the light theme and one for the dark theme. The table gives each token the class it uses in the current site code. After it, every component is drawn in both themes with all its states, next to its spec table.

How it works

1. The theme sits on <html>

One attribute sets the theme. Without it the device setting applies; once the visitor picks a theme, the choice is saved.

<html data-theme="dark">

2. Every colour comes from a token

No hex values inside components. Use the token and it resolves to the right value in each theme.

background: var(--atlas-surface);

3. Fixed colours stay as they are

Green, dark green, brown, salmon, the ritual colours and the logo have one value in both themes.

--atlas-brand: #326746; /* both */

Tokens

Every colour that changes between the themes, then the fixed ones at the end.

TokenLightDarkUsed forClass in the code

Components and states

Each component drawn with its real colours: light on the left, dark on the right, with the state named under each one.

Sections

Screenshots of the site itself, for reference. The site content is in Arabic.

Code

The tokens as CSS variables for both themes. They also work as Figma variables with two modes, Light and Dark.