How does the tool convert pixel values?
It maps standard pixel values to the nearest Tailwind spacing scale unit (e.g. 16px maps to 4, generating m-4 or p-4). Custom values are wrapped in arbitrary syntax, e.g. padding: 13px; to p-[13px].
Are class selectors supported?
Yes. You can paste a full CSS selector block (like .btn { display: flex; }). The parser will ignore the selector name and braces, parsing only the declarations inside.
Does it support custom colors?
Yes. Hex codes (e.g. #3b82f6), standard color names, and rgb/hsl strings are converted to matching Tailwind color classes or arbitrary color markers like bg-[#123456].
What happens to unsupported properties?
Properties like transition-timing-function or complex animation schemas are ignored by the compiler and displayed as 'Ignored' in the breakdown logs.
Can I convert styles on a mobile device?
Yes. The conversion logic runs locally in JavaScript inside your browser. The responsive interface adapts to phone and tablet displays.
Is my stylesheet data safe?
Absolutely. All parsing and translations occur client-side in your browser. None of your CSS code or layout templates are sent to any external server.
Does it support responsive media queries like @media?
No. This tool converts individual CSS properties to Tailwind classes. For media queries, you should apply Tailwind's responsive prefixes (like md:, lg:, xl:) directly to your HTML components.
How are shorthand CSS properties like 'margin' or 'padding' handled?
Shorthand properties are parsed and split. For example, 'margin: 10px 20px' will be converted into separate vertical and horizontal spacing classes (like my-[10px] mx-[20px] or closest matching scale units).
Can it convert CSS Grid or Flexbox layouts?
Yes. Common flex and grid properties like display: flex, flex-direction, justify-content, grid-template-columns, and gap are mapped to equivalent Tailwind classes (like flex, flex-col, justify-between, grid-cols-*, and gap-*).
Is Tailwind CSS version 3 or version 4 syntax used?
The tool maps properties to Tailwind CSS v3 utility classes, using standard spacing scales, color names, and arbitrary value wrappers compatible with both v3 and v4 configurations.