Skip to Content
Zuri

Theming

Design tokens, dark mode and glass surfaces.

Zuri components read CSS variables. Change the variables and every component follows.

Colour tokens

TokenRole
--background / --foregroundPage surface and text
--primary / --primary-foregroundMain actions (black in light mode, white in dark mode)
--muted / --muted-foregroundQuiet surfaces and secondary text
--accent / --accent-foregroundSaffron highlight fill and the text on it
--accent-inkSaffron as text on the page background
--border, --ringDecorative outlines and the focus ring
--control-borderBoundary of form controls (at least 3:1 against the background)
--success, --warning, --dangerStatus colours

Using the accent

Saffron on a white background has a contrast ratio of about 2.2:1. Use it as a fill with --accent-foreground on top, never as the only border or icon colour, and use --accent-ink for accent-coloured text.

Text, primary and status colours were checked against WCAG AA in both themes.

Glass

The zuri-glass class gives a translucent surface with a blur, a thin border and a soft shadow. It falls back to a solid surface when backdrop-filter is unsupported or the user prefers reduced transparency.

Check your backdrop

Text contrast on glass depends on what sits behind it. Zuri has not measured worst-case backdrops yet. If text becomes hard to read, raise the opacity of --glass-bg.

Motion

Durations and easing are tokens (--duration-base, --ease-out). Components animate transform and opacity only, and turn movement off under prefers-reduced-motion.

On this page