Replies: 2 comments 2 replies
-
To implement this, it's important to check for the presence of binding arithmetic symbol inside the expression. For example, Another solution would be to replace (add?) |
Beta Was this translation helpful? Give feedback.
-
We were just talking about this yesterday actually, would be cool to figure out something nice. One idea I had was |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The most annoying part about CSS for me personally is that variables are unnecessarily verbose.
var(--foo)
instead of--foo
or$foo
. Tailwind already supports the short syntaxw-[--foo]
and perhaps the Tailwind team could considerw-[calc(--foo_+_5px)]
, orw-[calc($foo_+_5px)]
, or evenw-[$foo_+_5px]
?Briefly:
w-[calc(var(--foo)_+_5px)]
>w-[calc(--foo_+_5px)]
>w-[--foo_+_5px]
w-[calc(var(--foo)_+_5px)]
>w-[calc($foo_+_5px)]
>w-[$foo_+_5px]
Beta Was this translation helpful? Give feedback.
All reactions