Drupal allows us to replace core/module CSS files from the theme by simply using the same filename (ex: if you add a stylesheet called system.messages.css in your theme, it will replace core's system.messages.css). This doesn't work with LESS files because the filename is different. The fix for this is pretty easy - patch attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rbayliss’s picture

Status: Active » Needs review
corey.aufang’s picture

Component: Code » Documentation
Category: feature » task
Status: Needs review » Active

Take a look at #1267620-2: LESS processing doesn't work on system css files..

This is the method that I personally use if I need to replace a built in file with a theme LESS file.

I'm changing this to be a reminder for me to add this to the documentation.

torotil’s picture

Issue summary: View changes

IMHO this could easily be added by implementing hook_system_info_alter() and automatically adding an additional CSS file for each LESS file specified - like mentioned in #2.