Convertisseur Classes Tailwind
Convertit les déclarations CSS en classes d'utilitaires Tailwind et inversement en utilisant les valeurs d'échelle de Tailwind v4. Développe les raccourcis de padding et marge, recourt aux valeurs arbitraires et liste tout ce qui n'a pas pu être converti.
🔒 Cet outil fonctionne entièrement dans votre navigateur. Vos fichiers ne sont jamais envoyés sur un serveur.
Line by line
| Input | Result |
|---|
Values come from the Tailwind v4 default theme, read from the installed version rather than typed from memory. If your project customises its theme, the class names are right but the numbers may not be — and v3 differs from v4 on several scales, most noticeably border radius. Nothing is uploaded.
How Convertisseur Classes Tailwind works
- Open Convertisseur Classes Tailwind and review the example state before entering your own values.
- Enter or select the information needed for Convertisseur Classes Tailwind.
- Review the result and adjust the inputs if you want to compare another case.
Converts CSS declarations to Tailwind utility classes and back, using scale values read from Tailwind v4 itself. Expands padding and margin shorthand, falls back to arbitrary values off the scale, and lists anything it could not convert instead of discarding it. The interactive workspace runs in your browser, so you can review the result without creating an account.
FAQ
What is Convertisseur Classes Tailwind used for?
Converts CSS declarations to Tailwind utility classes and back, using scale values read from Tailwind v4 itself. Expands padding and margin shorthand, falls back to arbitrary values off the scale, and lists anything it could not convert instead of discarding it.
Do I need an account?
No. The tool is available directly in the browser without an account or sign-up.
What should I do if the result looks unexpected?
Check the entered values and compare them with the guidance shown in Convertisseur Classes Tailwind. Use the result as a planning aid and verify important decisions independently.