How to add custom css in magento 2?

Step 1: You need to create file a css file How to add custom CSS in magneto 2? in /app/design/frontend/Ests/expound_theme/Magento_Theme/web/css/custom.css and need to add your css code.

Step 2: In this step, create default_head_blocks.xml file in app/design/frontend/Ests/expound_theme/Magento_Theme/layout/

Step 3:In default_head_blocks.xml add <CSS src=”Magento_Theme::css/custom.css”/>

Step 4: Run clear cache command in the Magento root directory.


How to add custom CSS in magneto 2?expoundsofttechsolution


How to create a custom log file in Magento 2