I know Magento 2 uses LESS for styling but what if I'd like to build a site with CSS only? I don't want to use LESS in my custom theme.

How can I achieve this?


Its not compulsory to use less css in Magento 2 but as per best practices less is preferable :)

The normal css would also be working fine with Magento 2.

  • Yeah, i know but browser reads CSS from styles-l.css and styles-m.css files. So my question is that where can I write my theme's CSS. thankyou – Yogesh Agarwal Dec 23 '17 at 11:30
  • You can write your css at: app/design/frontend/Magento/{{Your_Theme}}/web/css/source/_theme.less, you can write normal css into this file. Run php bin/magento setup:static-content:deploy once css is added by removing pub/static/frontend, pub/static/_cache folders. – Himmat Paliwal Dec 23 '17 at 11:59

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.