Should we encourage use of $var for css variables?
somebee opened this issue · comments
Sindre Aarsaether commented
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.
Eric Vida commented
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.