Theming

Colors are CSS variables. Light is the default, and adding the dark class to the html element switches every token at once.

Tokens

Use the semantic names in code, never raw hex values. They come from the Figma variables, so design and code stay in sync.

--background
--card
--muted
--primary
--destructive
--success
--warning
--info

Light and dark

The same token has one value per mode. Components never branch on the mode, they only read the variable.

:root {  --background: #ffffff;  --foreground: #090b0c;  --primary: #2edca2;  --primary-foreground: #1d1918;}
.dark {  --background: #161b1d;  --foreground: #f1f3f3;  --primary: #45eaa5;  --primary-foreground: #1d1918;}

Switching modes

  • Use the sun and moon button in the header, or press D.
  • The choice is saved in the browser. With no choice saved, it follows the system setting.