css - Using LESS for custom styling -
the current project i'm working on has requirement customers require own styling (colours, fonts etc). other customers use default styling lovingly crafted our designer.
i drawn using less have different variables file per customer , import file every css/less stylesheet it's needed. variables files reside in different folder each customer.
the problem have how import/reference custom varaiables less file other stylesheets.
it's asp.net web site (not mvc).
wrote msbuild target compile less files each of different customers using dotless compiler. target uses fileupdate task msbuildtasks amend variables import statement in each less file prior compilation task e.g @import '/css/default/variables.less' changed '/css/customer1/variables.less' etc.
Comments
Post a Comment