CSS variables are great!

added by JavaScript Kicks
11/30/2018 10:00:47 AM

1253 Views

You can define CSS variables anywhere in your stylesheets, but you usually want to have them declared in the root element of the document. By doing so, you can access them globally. A new variable is declared with two dashes and can be accessed with the var() CSS function: Yes, coming from SASS, the syntax may look quite strange to you.


0 comments