How does the converter translate pixel spacing values?
Pixel values matching Tailwind's 4px base scale are mapped to standard scale numbers (e.g. `16px` becomes `4`, generating `p-4`). Off-scale values are formatted using arbitrary syntax (e.g. `13px` becomes `p-[13px]`).
Can I paste full CSS selector blocks with braces?
Yes! You can paste full CSS rules like `.card { padding: 20px; display: flex; }`. The parser automatically strips selector wrappers and converts the inner properties.
How are custom CSS hex and RGB colors converted?
Colors are checked against standard Tailwind palette names (e.g. `#3b82f6` -> `bg-blue-500`). Unmatched hex or RGB strings generate arbitrary color classes like `bg-[#123456]`.
What happens to shorthand properties like 'margin' or 'padding'?
Shorthand properties are parsed and split into directional utilities (e.g. `margin: 10px 20px` becomes `my-[10px] mx-[20px]`).
Is this converter compatible with Tailwind CSS v3 and v4?
Yes. The output uses standard utility class names and arbitrary bracket syntax (`[...]`) supported by both Tailwind v3 and Tailwind v4.
Can it convert CSS Flexbox and Grid layouts?
Yes! Properties like `display: flex`, `flex-direction: column`, `justify-content: space-between`, `grid-template-columns`, and `gap` map directly to `flex`, `flex-col`, `justify-between`, `grid-cols-*`, and `gap-*`.
Does it support responsive media queries (@media)?
Media query blocks should be converted by appending Tailwind responsive prefixes (e.g. `md:flex`, `lg:p-6`) directly to component classes.
Is my CSS code kept private during conversion?
Yes, 100%. All parsing and compilation run client-side in your local browser runtime. Zero CSS code or layout structures are uploaded to external servers.
How are CSS vendor prefixes (-webkit-, -moz-) handled?
Vendor prefixes are stripped automatically since Tailwind handles cross-browser prefixes via Autoprefixer during build time.
Can I convert inline style attributes from HTML elements?
Yes. Copy the contents of your `style="..."` attribute, paste them into the converter, and copy the resulting Tailwind utility string into your `class="..."` or `className="..."` prop.
What happens if a CSS property has no Tailwind equivalent?
Complex keyframe animations or non-standard experimental properties are flagged as 'Ignored' in the diagnostics breakdown table.
How does it handle CSS font family rules?
Standard font families are mapped to `font-sans`, `font-serif`, or `font-mono`. Custom font names map to arbitrary font classes like `font-['Inter']`.
Can I use standard keyboard shortcuts?
Press `Ctrl+L` (or `Cmd+L` on Mac) to reset the style inputs instantly.
Does the tool work offline?
Yes. Once loaded, the converter works 100% offline in your local browser sandbox.