Theme & tokens
Neutral surfaces. Clear hierarchy. A consistent vocabulary.
Semantic colors
Components use semantic CSS variables. Each token adapts to the current light or dark theme.
--backgroundPage surface--foregroundText and icons--cardCard color--primaryPrimary color--secondarySecondary color--mutedMuted color--accentAccent color--borderBorder color--ringRing color--destructiveDestructive colorDark mode
<html class="dark">
<!-- application -->
</html>Toggle the document class and persist the preference in your app. The library provides the tokens; your app owns the preference.
Typography
Fonts are loaded by each app. Set the following variables to use your chosen families. Without them, components use system fonts.
:root {
--elements-font-sans: "Space Grotesk", sans-serif;
--elements-font-mono: "JetBrains Mono", monospace;
}Aa
Considered in every detail.
font-sans / font-monoRadius
The base radius is 0.75rem. The theme derives the Tailwind radius scale from this value.
:root {
--radius: 0.75rem;
}