- Create theme
app/design/frontend/Vendorname/default
- Try add
my.less
file for impot, or add code with new class and style to_extends.less
toapp/design/frontend/Vendorname/default/web/css/sourse
. rm -rf pub/static/*
rm -rf var/view_preprocessed/*
php /var/www/html/bin/magento cache:clean
php /var/www/html/bin/magento setup:static-content:deploy
php /var/www/html/bin/magento cache:clean
But this not work. I read a lot, but I do not see a particular decision. Please write how to correctly add less file to Magento 2? Please help.