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.
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">
No hex values inside components. Use the token and it resolves to the right value in each theme.
background: var(--atlas-surface);
Green, dark green, brown, salmon, the ritual colours and the logo have one value in both themes.
--atlas-brand: #326746; /* both */
Every colour that changes between the themes, then the fixed ones at the end.
| Token | Light | Dark | Used for | Class in the code |
|---|
Each component drawn with its real colours: light on the left, dark on the right, with the state named under each one.
Screenshots of the site itself, for reference. The site content is in Arabic.
The tokens as CSS variables for both themes. They also work as Figma variables with two modes, Light and Dark.