Can I preprocess a Less css file?

metrovoyeur

New Member
I'm using Less with Drupal, and I want to allow admin users to define colors for certain site elements globally. To clarify, we have a certain type of content, call it a "level" and admins can add a level to the site. Each level should have an associated color which will be the border color for certain divs, etc. I'd like the admins to be able to set the color through the cms and have that reflected in an external style sheet.All the affected elements in the DOM are indexed by class. The only thing I can think of is in the main Less file to import a second Less or CSS file that would be generated dynamically by Drupal. I just want to make sure there's nothing I'm missing, for example a way to inline php in a less file and have the php executed before it's passed off to the browser or server-side less compiler.
 
Top