Open somebee opened 4 years ago
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.
Right now we support both
--var: value
and$var: value
. For using variables in property values you do eitherdisplay: var(--value)
or justdisplay: $value
. What should we encourage and explain the documentation? It is important that we stay consistent.