title: Dynamically changing less variables in .net
body: <p>problem : i have to allow users to have different colors for buttons , icons , text color as per their preference using spectrum.js </p>
  
  <p>i have tried to solve this using dotless for that i created a file .less and added all values. now issue is that i have to get values from databased based on loggedInuser and have to dynamically change </p>
  
  <pre><code>@back-color: blue;
  @font-color: red;
  </code></pre>
  
  <p>to different values and this has to be done run time not compile time. i know it will cost me some delay but i dont know how to solve it other wise.</p>
  
  <p>i have been thinking of different solution rather to have a less file why not on saving time i create a css file save in database and when user gets logged in  create a css file and inject in to header </p>
  
  <pre><code>&lt;link href="~/Content/dynamic.css" rel="stylesheet" /&gt;
  </code></pre>
  
  <p>can some one help me or any suggestion regarding this?? </p>
  
  <p>any help will be appreciated </p>