I created a custom theme, that inherits from magento/blank theme. And I am able to override and extend css classes that are defined in


using the "Adding structured changes" section in the documentation (http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/css-guide/css_quick_guide_approach.html).

However, the property I want to change is defined in


overriding the class in my _module_extend.less doesn't work.

What is the right magento way to do that?


  • Have you deployed setup:static-content:deploy ? – Krishna ijjada Sep 4 '16 at 12:48
  • I'm in developer mode and using grunt to compile less files. It works perfectly with other css classes I extend/override. – user44172 Sep 4 '16 at 12:51
  • Please add some more information. – Krishna ijjada Sep 4 '16 at 12:55

You will need to create _extend.less within the module inside your theme like so:

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.