Typography

color to Tailwind

Text colour becomes text-*, which is the same prefix as font size — the palette name is what tells the two apart.

The 3 mappings below are read straight out of Tailwind v4.3.3, not maintained by hand, so this is what the converter will actually produce for color.

color values and their classes

CSSTailwind
color: currentcolor;text-current
color: inherit;text-inherit
color: transparent;text-transparent

Colours

Colour values are not a fixed list — the converter matches yours against the Tailwind palette and picks the nearest name, so any of the palette's shades works the same way. A few worked examples:

CSSTailwind
color: #fff;text-white
color: #000;text-black
color: oklch(96.8% 0.007 247.896);text-slate-100
color: oklch(55.4% 0.046 257.417);text-slate-500
color: oklch(20.8% 0.042 265.755);text-slate-900
color: oklch(63.7% 0.237 25.331);text-red-500
color: oklch(69.6% 0.17 162.48);text-emerald-500
color: oklch(68.5% 0.169 237.323);text-sky-500

Values that are not on the scale

Anything without a named class is written as an arbitrary value in square brackets. The converter falls back to this rather than rounding your CSS to the nearest class, because silently changing a value is worse than an ugly class name.

text-[your value]

Other typography properties

Converting a whole stylesheet?

Paste it into the converter and get every rule at once, shorthands expanded, media queries turned into breakpoint variants, and the parts that have no Tailwind equivalent flagged rather than dropped.

Open the converter