Materialize: How to change header color?

Created on 26 May 2019  路  3Comments  路  Source: Dogfalo/materialize

Please, I don't like pink color

All 3 comments

use any color as the class name,

Example : <nav class="red"> </nav>

You can also change the primary color in the sass variables:

https://materializecss.com/sass.html

As an alternative to @newavatar00's answer, you can style the element using background-color, which is what the red class he used internally do like this:

<nav style="background-color: red"> </nav>

Was this page helpful?
0 / 5 - 0 ratings