-
I had my custom config for the v3 which contained many generated custom spacing units including rem, px, vh, vw. I could use them in html easily like: 'h-5.525rem' or 'h-33vh' or 'h-200px'. I was also using the same for all other spacing based selectors such as padding, margin, and so on. Currently, in v4 we have one single --spacing value as I understood. I tried to define custom utilities such as h-* { height: --value(); } to allow 'h-33vh' for example. But it is not working. Moreover, it would be huge work to redefine all selectors, such as h-, w-, p-, m-* and so on. So, my question is: ps.: I know, I can use arbitrary values such as 'h-[33vh]' but that isn't what I'm looking for now. I don't want to pollute the markup with many custom values if there would be any other config level option. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
What was your config like in v3 that enable your units to work? |
Beta Was this translation helpful? Give feedback.
You can at least do: