LESS is one of the most common file formats that is used to generate dynamic CSS files in Magento 2. The LESS files extensions the functionalities of the cascading style sheets and allows the developers to generate the frontend dynamically.
The developers can use the LESS files to generate the CSS logically through the use of variables, functions, nesting, etc. You may require to add custom LESS file in Magento 2 to create a dynamic UI.
In order to add a custom LESS file in Magento 2, you need to create a new vendor_extension_index.xml and add the path to the CSS file. Next, you can add the LESS file to the path prescribed in the previous file as per your requirements.
You can learn more about it at: https://meetanshi.com/blog/add-custom-less-file-in-magento-2/
No comments:
Write comments