Typography
font-family to Tailwind
Three named stacks ship by default —font-sans, font-serif, font-mono — and a custom stack matches only if you have defined it in your theme.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 font-family.
font-family values and their classes
| CSS | Tailwind |
|---|---|
| font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", "Noto Sans", arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | font-sans |
| font-family: ui-monospace, sfmono-regular, menlo, monaco, consolas, "Liberation Mono", "Courier New", monospace; | font-mono |
| font-family: ui-serif, georgia, cambria, "Times New Roman", times, serif; | font-serif |
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.
font-[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