New answers tagged less
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/...
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.
1
vote
Accepted
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 ...
Top 50 recent answers are included
Related Tags
less × 263magento2 × 201
css × 92
theme × 43
grunt × 42
magento-2.1 × 25
frontend × 25
less-css × 22
less-compilation × 13
magento2.2 × 12
static-content-deploy × 10
overrides × 9
custom-theme × 9
layout × 7
magento2.3.4 × 7
static-content × 7
styles × 7
module × 6
luma-theme × 6
compilation × 5
cache × 4
magento2.4 × 4
rwd × 4
parent-child-theme × 4
compiler × 4