$devtoolkit.sh/tools/css-to-tailwind

CSS to Tailwind

Map common CSS properties to approximate Tailwind CSS utility classes.

$css input
0 chars1 lines
$tailwind classes[READY]
0 chars1 lines

Related Tools

FAQ

Are the Tailwind classes exact equivalents?
Tailwind uses a fixed scale for spacing, colors, and sizes. The converter finds the closest match from the default Tailwind scale. Custom values may not map precisely.
Which CSS properties are supported?
display, flex-direction, justify-content, align-items, gap, flex-wrap, grid-template-columns, margin, padding, width, height, font-size, color, background-color, border, border-radius, position, and text-align.
Can I convert a whole stylesheet?
The tool processes CSS rule blocks. Paste one rule at a time for best results. Media queries and pseudo-selectors are noted but not converted.

Paste CSS rules and get the closest Tailwind CSS utility classes. Handles display, flexbox, grid, margin, padding, width, height, font-size, color, background, border, border-radius, position, and text-align. Output shows the className string ready to paste into JSX.

/tools/css-to-tailwindv1.0.0