domestic-ui GitHub

Tokens

CSS custom properties on :root, prefixed --dui-, in two tiers. Semantic tokens are the public API, and the only ones base, layout and component CSS use (npm run lint:tokens checks). To theme, override them (Theming).

Token files

Tiers

From Theming:

TierFileNamed byExamplePublic?
Primitivecss/tokens/primitives.cssWhat it is--dui-color-indigo-9: oklch(53% 0.215 272); --dui-space-5: 1rem;No. Internal, may change in any release.
Semanticcss/tokens/semantic.cssWhat it is for--dui-color-accent: light-dark(var(--dui-color-neutral-12), var(--dui-color-neutral-dark-12));Yes. The stable theming API.

Search