Theme Tokens
Expand a brand color into a full, accessible token set in both modes.
Steps
- Get the seed — a brand hex, or extract one from an uploaded logo/image.
- Build the ramp — a 50→950 scale at perceptually-even lightness, plus semantic tokens (background, foreground, primary, muted, border) for light and dark so they actually match.
- Check contrast — foreground/background pairs against WCAG AA; nudge lightness until they pass.
- Write it in — CSS custom properties in
globals.css(:root+.dark) or the Tailwind theme config, matching the project`s existing convention.
Verify
- Both modes render and text passes AA on its background.
- Preview at https://themetokens.tools.drummerduck.com