Layout
z-index to Tailwind
The default scale is sparse (0, 10, 20, 30, 40, 50); anything else needs an arbitrary value likez-[60].The 12 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 z-index.
z-index values and their classes
| CSS | Tailwind |
|---|---|
| z-index: -50; | -z-50 |
| z-index: -40; | -z-40 |
| z-index: -30; | -z-30 |
| z-index: -20; | -z-20 |
| z-index: -10; | -z-10 |
| z-index: 0; | z-0 |
| z-index: 10; | z-10 |
| z-index: 20; | z-20 |
| z-index: 30; | z-30 |
| z-index: 40; | z-40 |
| z-index: 50; | z-50 |
| z-index: auto; | z-auto |
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.
z-[your value]Other layout 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