Effects
opacity to Tailwind
Percentages become the number:opacity: 0.5 is opacity-50.The 21 mappings below are read straight out of Tailwind v4.3.3, not maintained by hand, so this is what the converter will actually produce for opacity.
opacity values and their classes
| CSS | Tailwind |
|---|---|
| opacity: 0; | opacity-0 |
| opacity: 5%; | opacity-5 |
| opacity: 10%; | opacity-10 |
| opacity: 15%; | opacity-15 |
| opacity: 20%; | opacity-20 |
| opacity: 25%; | opacity-25 |
| opacity: 30%; | opacity-30 |
| opacity: 35%; | opacity-35 |
| opacity: 40%; | opacity-40 |
| opacity: 45%; | opacity-45 |
| opacity: 50%; | opacity-50 |
| opacity: 55%; | opacity-55 |
| opacity: 60%; | opacity-60 |
| opacity: 65%; | opacity-65 |
| opacity: 70%; | opacity-70 |
| opacity: 75%; | opacity-75 |
| opacity: 80%; | opacity-80 |
| opacity: 85%; | opacity-85 |
| opacity: 90%; | opacity-90 |
| opacity: 95%; | opacity-95 |
| opacity: 100%; | opacity-100 |
Values that are not on the scale
Anything without a named class is written as an arbitrary value in square brackets. The converter falls back to this rather than rounding your CSS to the nearest class, because silently changing a value is worse than an ugly class name.
opacity-[your value]Other effects properties
Converting a whole stylesheet?
Paste it into the converter and get every rule at once, shorthands expanded, media queries turned into breakpoint variants, and the parts that have no Tailwind equivalent flagged rather than dropped.
Open the converter