Hi all
So we are building a SaaS (software as a service) application, which has a number of different themes a user could choose. I then want to be able to offer my users the ability to customise their theme by selecting things like header colour, text colour, etc by entering #hex codes (i.e. #ff0000) in the SiteConfig table.
The issue i face is how to get this to pump into the themes css without doing inline styles within the page template? I need to keep it within css files and alter them on the fly.
I also cant save the changes to the css as they are common files amoungst all user.
One possibility i thought about was making an override file onBeforeWrite of SiteConfig, but thats going to get a little messy i think?
Any ideas?
Thanks