Why do some Tailwind classes show as “unrecognized”?
This converter supports Tailwind's core utility classes and spacing scale. Color utilities (like bg-blue-500 or text-gray-700), responsive prefixes (md:, lg:), and state variants (hover:, focus:) are flagged as unrecognized because they depend on your Tailwind configuration (custom colors, breakpoints). The converter handles layout, spacing, typography, borders, shadows, and other config-independent utilities.
How accurate is the CSS-to-Tailwind conversion?
The reverse conversion (CSS to Tailwind) matches exact property-value pairs against Tailwind's default output. It works best with standard values that align with Tailwind's scale (e.g., padding: 1rem maps to p-4). Custom values like padding: 13px have no exact Tailwind equivalent and will appear as unrecognized. In those cases, use arbitrary value syntax: p-[13px].
Should I migrate my entire CSS codebase to Tailwind?
Not necessarily in one shot. The recommended approach is incremental adoption: new components use Tailwind, existing components stay as-is until they need modification. Tailwind coexists peacefully with traditional CSS — its utility classes have no specificity conflicts with BEM or module-scoped styles. Many large codebases (Shopify, GitHub, Netflix) run both systems in parallel during multi-year migrations. This converter helps during the transition by letting you quickly understand what a block of Tailwind classes actually does in CSS terms.