Color
Materialize is a modern responsive CSS framework based on Material Design by Google.
Usage
Background Color
To apply a background color, just add the color name and light/darkness as a class to the element.
This is a card panel with a teal lighten-2 class
Copied!
content_copy
This is a card panel with a teal lighten-2 class
Text Color
To apply a text color, just append
-text
to the color class like this:
This is a card panel with dark blue text
Copied!
content_copy
This is a card panel with dark blue text
Sass
For background colors, you can apply the color simply by extending the classes like the example below.
.ilike-blue-container {
@extend .blue, .lighten-4;
}
For changing text color, you can apply the color simply by extending the classes like the example below.
.ilike-blue-container {
@extend .blue-text, .text-lighten-4;
}