Magento 2 : Adding Custom CSS Files

Adding CSS files that we created ourselves in Magento 2.

Create a filenamecss.css file, for example andhiirawan.css

in

app / design / frontend / [vendor] / [theme] / web / css / andhiirawan.css

then add the file to the head block:

app / design / frontend / [vendor] / [theme] / Magento_Theme / layout / default_head_blocks.xml

Leave a Comment