ASP.NET MVC how to change fewer variables using javascript?

In my application, I have to add a function that allows the user to change the colors of the user interface.

To this end, I created a .less file and set some global variables to their default value.

What is the best practice for creating a theme in Asp.net MVC?

+4
source share
1 answer

I would create a basic style for the default styles and different stylesheets (fewer files and finally separate .css files) for each color scheme, each scheme overrides the colors in the base file and then dynamically loads the stylesheet according to your business logic using javascript

Dynamically load CSS stylesheets

+2
source

All Articles