I want to be able to do this: px-[calc(screen-xl/2)] to easily create padding that centers the content of an scrollable to emulates mx-auto centration of content.
Now I have to manually convert the pixel value of screen-xl like so px-[calc(1280px/2]
Suggested solution
UnoCSS should replace screen-xl in the [] arbitrary value with its actual value which also gets used in utilities such as w-screen-xl
Pff, I forgot about that directive! Thanks for making me aware. I think that using the directive is a sufficient, so I'll close this issue as not planned.
Clear and concise description of the problem
I want to be able to do this:
px-[calc(screen-xl/2)]
to easily create padding that centers the content of an scrollable to emulatesmx-auto
centration of content.Now I have to manually convert the pixel value of screen-xl like so
px-[calc(1280px/2]
Suggested solution
UnoCSS should replace
screen-xl
in the[]
arbitrary value with its actual value which also gets used in utilities such asw-screen-xl
Alternative
No response
Additional context
No response
Validations
README.md
of using the package.