CSS Typography to Tailwind

font-size: 1.5rem maps to text-2xl. font-weight: 700 maps to font-bold. Colors use text-* utilities.

Color vs size

In Tailwind, text-* can mean size or color depending on the suffix. After conversion, confirm you did not mix a size utility with a color intent.

Line height

Leading often travels with font-size in designs but becomes a separate utility in Tailwind. Check article pages where long paragraphs sit next to UI chrome.

Font families

Custom fonts need theme configuration or arbitrary font classes. The converter will not invent your brand typeface name.

Try it

Open converter

.example { display: flex; gap: 1rem; padding: 1rem; }

Trust note: verify output visually. The converter is a draft helper for developers.