Typography and Colors
Apply text, color, and visual styling utilities.
Typography utilities
| Category | Examples |
|---|---|
| Size | text-xs, text-sm, text-base, text-xl, text-3xl |
| Weight | font-thin, font-normal, font-medium, font-bold |
| Align | text-left, text-center, text-right |
| Transform | uppercase, lowercase, capitalize |
Color utilities
| Category | Examples |
|---|---|
| Text color | text-zinc-900, text-blue-600, text-red-500 |
| Background | bg-white, bg-zinc-100, bg-indigo-600 |
| Border | border-zinc-200, border-blue-500 |
Dark-friendly styling pattern
When supporting themes, keep clear contrast and avoid relying on a single token only.
Readability tips
- Prefer
text-basefor default body text - Use
text-smfor metadata and labels - Reserve
text-xl+sizes for section headings - Pair strong text colors with softer background/border tokens