Colors
Color roles that keep every surface and control in step with the active theme.
Palette
Our palette is expressed through semantic tokens rather than numbered color scales. These samples read the same CSS variables as the website and update with its current appearance settings.
--background--foreground--muted--primary--accent--destructive
Neutral and translucent colors
Use neutral tokens for structure. Reserve transparency for overlays that need to reveal the surface below. Draw a shared divider once so overlapping edges do not appear heavier.
Page backgrounds
Background is the page canvas; card and popover describe contained and floating surfaces. They may share a value in a minimal theme while retaining distinct roles.
--background--card--popover
Component surfaces
Muted, secondary, and accent provide quieter surfaces. Component variants define hover and pressed behavior; do not assume these tokens are ordered shades.
--muted--secondary--accent
Borders and focus
Border separates content, input marks controls, and ring identifies keyboard focus. Keep a visible focus indication even when the surrounding design has no border.
--border--input--ring
Emphasis backgrounds
Pair primary with primary-foreground and secondary with secondary-foreground. A selected accent changes primary in the current implementation; it does not replace every semantic token.
--primary--secondary
Text and icons
Foreground carries main text, muted-foreground supports secondary details, and destructive identifies error-related content. Always include a textual explanation for an error.
--foreground--muted-foreground--destructive
Usage
Use semantic Tailwind utilities rather than fixed colors. Test actual foreground/background pairs in each mode; the palette preview is not a contrast certification. Additional named themes will use these same roles later.
Last updated