How to pass variables from C # MVC 4 to SSS SCSS?

0

I need to dynamically change my CSS files by pulling some data, such as colors, from the database. I have chosen to use SASS in the application, but can I import an application variable into MVC 4 into my SCSS file?

    
asked by anonymous 11.10.2016 / 21:14

1 answer

1

You can even use eval to process javascript expressions, but you can not create dynamic values this way you want in SASS. What you can do is create multiple style files and dynamically load them (or use Themes) according to the content of what you retrieved from the database.

    
13.10.2016 / 13:49