Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit SASS variable from angular 2 typescript

I wish to get color from the user and modify the existing sass color variable to the color choose by the user. I saw a link, but still there is no example related to angular 2 on this. Please help. Thanks in advance.

like image 386
AishApp Avatar asked May 26 '26 16:05

AishApp


1 Answers

SASS is CSS pre-processor, so by the time you're client HTML markup is consuming it, the variables have already been materialized and now form standard CSS.

Once you start tinkering with Sass, it will take your preprocessed Sass file and save it as a normal CSS file that you can use in your web site.

As Manu Valdés calls attention to, there are other things that you can do with Angular2 specifically to help with styling. For details on component styling check out the official documentation here.

like image 89
David Pine Avatar answered May 30 '26 04:05

David Pine



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!