DEV Community

Discussion on: Theming your Angular apps using CSS Variables - Easy Solution!

Collapse
 
adisreyaj profile image
Adithya Sreyaj

Yes. Since the variables are defined in the :root its available for use in any node in the tree.

Collapse
 
technbuzz profile image
Samiullah Khan

Good things with CSS variables is that we don't need to import them in other components to use them just like sass variables. So when you would use sass variables and when css variables. Do css variables work with sass language (like functions and stuff)?

Thread Thread
 
adisreyaj profile image
Adithya Sreyaj

I have personally resorted to CSS variables instead of Sass variables as it just makes sense to do so.

I am not very well versed with Sass to answer your question.