I just created custom theme, i have followed a number of guides to properly setting up .less files in a custom theme and nothing seems to be working.

Where should i place less file for cms custom block,

_theme.less or _extend.less or _module.less or create Magento_cms->web->css

What is the best practice?

1 Answer 1


The last one (create Magento_cms->web->css), create _extend.less the for common CMS pages styles and own less style file in the page too differ by design and styles and import it to extend for example. Don't forget to make grunt exec after you'll add and import the file


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.