title: How to handle user customizable website themes?
body: <p>We are developing a CMS and would like advice on the best way to handle user customizable themes. We have a couple ideas but are not really sure what the best approach is. The CMS will allow the user to customize every part of the site including colors, fonts, layout, etc, through a theme editor UI built into the CMS.</p>
  
  <p>We were thinking writing a custom CSS parser that writes changes out to a CSS file for that theme. This approach seems like it may have a lot of point of failure and a lot of overheard.</p>
  
  <p>The other way was to store all the CSS in a database and then just use inline CSS.</p>
  
  <p>The CMS has been built using JQuery and PHP with MySQL database for user information and content, but not CSS.</p>
  
  <p>Is there a more efficient way to parse/control/edit CSS properties of the theme?</p>
  
  <p>Thanks</p>