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
<div class="card-panel teal lighten-2">This is a card panel with a teal lighten-2 class</div>
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
<div class="card-panel">
<span class="blue-text text-darken-2">This is a card panel with dark blue text</span>
</div>
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;
}