Using Theme Lib Css / Source In Modules
-
07-10-2020 - |
Question
If using the _module.less convention in a custom module - do we have access to all of the files included there (lib-clearfix, etc)?
Is this the only way or are there other methods that have been found?
Solution
By using Vendor/Module/view//css/source/_module.less the css will all be compiled into the main Magento styelsheets and you will also have access to the mixins and variables define there, although load order is another question.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange