Skip to content

Theme tokens

src/styles/contract.css declares the complete token contract. Presets provide light and dark values, and a site can provide narrow overrides in theme.config.ts:

tokens: { accent: '#174ea6', 'radius-lg': '1rem' }

Use var(--accent) in component styles. Do not add literal colours or inline styles to a component. Run pnpm verify:theme after changing the contract.

The focus ring, inverse-surface pair, status colours, spacing scale, elevation, layout, and reduced-motion tokens are part of the public contract too.