Showing results for 
Search instead for 
Did you mean: 

Adding custom css to new theme (based on blank)

Adding custom css to new theme (based on blank)


We are new to Magento2 and have a question.

We have created a new theme based on the blank theme and deployed it and everything seems to have worked fine.

We now want to add our own custom css to the new theme.

We have added our css file here



And our default_head_blocks.xml is here



The contents of the file are :

<page xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<css src="css/styles-m.css" />
<css src="css/styles-l.css" media="screen and (min-width: 768px)"/>
<css src="css/print.css" media="print" />
<css src="css/customcss.css" />


It doesn't seem to be recognising the default_head_blocks.xml as when we look at the source the .css files are not included in the source


Our site is at


Any help would really be appreciated as we are not sure what we are missing


Many thanks