How can I override the file vendor/foo/bar/view/base/web/css/source/module/components/_foo.less

I put it in my theme at app/design/frontend/company/fresh/Foo_Bar/templates/web/css/source/module/components/_foo.less but my changes are not getting applied.

1 Answer 1


Let's change your file path: app/design/frontend/company/fresh/Foo_Bar/templates/web/css/source/module/components/_foo.less

to app/design/frontend/company/fresh/Foo_Bar/web/css/source/module/components/_foo.less

  • Oh, that was awkward. Sometimes you dont see the forest because of too many trees... sry
    – Black
    Commented Oct 7, 2022 at 6:06
  • 1
    I totally agree with you. Cheers.
    – Tu Van
    Commented Oct 7, 2022 at 6:21

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.