Showing results for 
Search instead for 
Did you mean: 

Custom .less files

Custom .less files

I've tried adding custom CSS a coupel ways:


1. a _custom.less file in the /app/design/frontend/Vendor/Theme/web/css/source/ folder and added it to the list of @imports in _source.less 

2. Adding CSS (less) to _theme.less, _layout.less, and various other files


But every time I clear the cache and deploy through CLI the CSS isn't compiled. I just need like 4 custom selectors styled, it shouldn't be this tough!


Note - I added blocks and widgets via the admin dashboard and those are showing up just fine after being deployed but the CSS isn't being compiled.


Re: Custom .less files

How to add JavaScript / CSS / Less with a custom module: