2022 Developer Survey is open! Take survey.

New answers tagged

0 votes

How to use theme's _variables.less file in my custom code module?

I think you need to create a custom variables file and import it in a _module.less. Please follow the step for that. Step 1: add _module.less file. Path : /app/code/VendorName/ModuleName/view/frontend/...
user avatar
  • 72
0 votes

Magento 2 - css source maps not working

In magento 2.4.4 I had same problem. I fixed it by downgrading to "grunt-contrib-less": "1.4.1" in package.json and running npm install again.
user avatar
1 vote

How to add .less css files in custom theme magento 2

Let’s assume that you have created custom theme. Now, Create your custom less file and add your less code inside that file. app/design/frontend/VendorName/ThemeName/web/css/source/_custom.less After ...
user avatar
  • 1,014

Top 50 recent answers are included