imba / imba.io

đź“„The official website of Imba

Home Page:http://imba.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should we encourage use of $var for css variables?

somebee opened this issue · 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.

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.