The essentials

Theming

A shared language, not a fixed look.

Semantic tokens

Every block consumes CSS custom properties. Override them in your project to change the whole library.

:root {
  --background: #fdfdfc;
  --foreground: #20201e;
  --primary: #36513b;
  --primary-foreground: #fdfdfc;
  --radius: 0.6rem;
  --font-sans: "Helvetica Neue", sans-serif;
}

Light, dark, and system

The default follows prefers-color-scheme. Set data-theme="light" or data-theme="dark" on the root element for a manual override. Remove the attribute to follow the system again. The documentation persists your choice locally when storage is available.

Make a theme

Open the Themes page to change the accent, corner radius, and spacing. Export the CSS tokens and add the file after the foundation styles.

Accessibility

Recheck text and control contrast after changing colors. Semantic token names do not guarantee accessible combinations.

Edit this page on GitHub

Search documentation

Search the docs, components, and blocks. Use Tab to select a result.