How can I add custom less file and in a particular theme compile less file in Magento 2 ?
Just add new file here
and import this file in source file given path below
import your file
(if there is not available _source.less file in your theme then go to
vendor\magento\theme-frontend-blank\web\css\source folder and copy file in your custom theme)
- clear cache
- php bin/magento setup:static-content:deploy
Above answer is not working I don't know how its accepted: If you want to add custom common css file, you have to follow below steps:
1) create file at following locationi in your custom theme
2) create _extend.less file at following location
3) add following line at top of this file
just clear cache & generate content if on production.