I'm trying to add branding to a web application based on a user defined setting or sub domain. This means changing the colours throughout the website when the user accesses the site using their sub domain or login.
Are there any JavaScript libraries out there or clever ways you can achieve this using Less/Sass.
I've already discovered the more obvious solution online of having multiple style sheets or having less files that import the main styles and override the main variables etc.
I'm hoping to find some sort of JavaScript library that can change colours on the fly or replace colours in a css file before render. Or maybe there are some cool css tricks out there that can help?
Any Ideas/solutions you may have will be a great help!
Edits
I'm not really looking to do a great deal of dom manipulation. i.e. changing classes on multiple elements etc. It's just really swapping colours or being able to manipulate style sheets before the pages are rendered.
I've got the sub domain / user setting side covered so its only the changing of styles etc that this question requires answers for.
I accept that questions similar to this have been asked before but mine is different. I'm trying to find any solutions other than just swapping a style sheet and I'm only really looking to change colours of the website.