

Design tokens: give your colors a job
Why my components use --text-1 instead of --gray-8, and how a small tokens.css made dark mode a one-file change.
2 posts with this tag.


Why my components use --text-1 instead of --gray-8, and how a small tokens.css made dark mode a one-file change.


How I set up Open Props with postcss-jit-props in a SvelteKit 3 project. The config goes in vite.config.ts, and I explain why CSS needs a plugin to do tree-shaking.