imba / imba.io

📄The official website of Imba
http://imba.io
MIT License
80 stars 37 forks source link

Should we encourage use of $var for css variables? #140

Open somebee opened 4 years ago

somebee commented 4 years ago

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.

ericvida commented 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.