imba.io icon indicating copy to clipboard operation
imba.io copied to clipboard

Should we encourage use of $var for css variables?

Open somebee opened this issue 4 years ago • 1 comments

Right now we support both --var: value and $var: value. For using variables in property values you do either display: var(--value) or just display: $value. What should we encourage and explain the documentation? It is important that we stay consistent.

somebee avatar Aug 09 '20 04:08 somebee

So we don't give people a mental overload with the styles syntax, we should teach the main concepts of styles without using property shortcuts. And then, at the end of the styles tutorial, we introduce shortcuts as optional for the power-user. I would consider that $var should be introduced at that point.

ericvida avatar Aug 09 '20 05:08 ericvida