Perspective Referencing CSS Variables changed?

I would normally reference CSS variables with var(--var-name), but I accidentally just typed --var-name into a style prop value, and it worked... have I been unnecessarily wrapping in var() this whole time?? Without the wrapper function, I no longer get a warning too

1 Like

I don't want to say it, but...yes, you have :see_no_evil:

1 Like

Well then... off I go to remove 10%* of the words in my project :man_facepalming:

*may be an exaggeration for dramatic effect

1 Like

I found out why I used var(...). You need to use this within Perspective Styles :confused: You can't just use the variable name there. I'd like to know the technical reason why for understanding

for css you need the var(), so i guess perspective must have a function that converts this in the designer. when it sees the "--"

imho you should still use var(), even with the warning

1 Like