🎨 Frontend Engineering · CSS & Design Systems
Set up design tokens for color, space, type (Tailwind setup)
Encode brand decisions as named tokens (CSS variables) consumed by utilities so themes change in one place.
intermediate~35 minFrontend EngineersFull-Stack DevelopersDesign Engineers
Steps
- 1Define scales: one neutral ramp plus accent ramps, 8px spacing ladder, modular type scale
- 2Name by role (bg-surface, text-muted), never by value (gray-3)
- 3Expose as CSS variables; map Tailwind colors to var() references
- 4Add dark mode by swapping variable values under a media or class hook
- 5Lint for raw hex values outside the token file
- 6Ship a living style page rendering every token with its name
- 7Reference variables in tailwind.config so utilities emit them
- 8Use opacity modifiers carefully; they require rgb/hsl channel variables
Common Pitfalls
- ▲Role names that encode light mode assumptions breaking dark theme
- ▲Token sprawl: 40 grays nobody can choose between
Commands
Install with skills CLI
$ npx skills add aniruddhaadak80/skills --skill css-design-systems-design-tokens-tailwindInstall globally
$ npx skills add aniruddhaadak80/skills --skill css-design-systems-design-tokens-tailwind -gTags
#css#design-system#theming#frontend-engineering#css-design-systems