Instagram

About Me

Photo Profile
Meetanshi Architecture Designer

Meetanshi is found based on providing the best Magento Extensions and Customized eCommerce Business Solutions perfected to the users’ needs. Our Happy users make us Happy. Complete satisfaction to our clients is what drives and motivates us to work hard. Read More

Thursday, June 30, 2022

How to Add Custom LESS File in Magento 2

 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


Get more of our update !