How do I constrain the permitted z-index values? #18951
Unanswered
agusterodin
asked this question in
Help
Replies: 1 comment 2 replies
-
Hey @agusterodin! Unfortunately the answer is that there's no way to do this right now in v4 since you can not overwrite the core |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Tailwind v3, classnames that were not in my provided z-index scale (eg: z-59) were not generated. Obviously, arbitrary values in square braces (eg: z-[59]) worked. In Tailwind v4, any z-index is allowed and generated despite not being in my scale. How do I fix this?
I experienced the same thing with spacing but ended up being able to constrain allowed spacing values by adding
spacing: defaultTheme.spacing
to my TypeScript configuration file theme.Beta Was this translation helpful? Give feedback.
All reactions