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 ? Sep 4, 2016 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, 2016 at 12:51
  • Please add some more information. Sep 4, 2016 at 12:55

1 Answer 1


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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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