React
Tailwind Habits: Tokens First, Utilities Second
By: Md Tarek · 28 Sept 2026
Tailwind gets messy when every component invents its own colors. My fix on this site: a tiny token set (paper, ink, accent) defined once in CSS, utilities everywhere else.
What this buys
- A rebrand is a five-line change.
- Dark sections and light sections stay consistent.
- Reviewers argue about tokens once, not classes forever.
Arbitrary values are for genuine one-offs. If I type the same hex twice, it becomes a token.
