Angular Material: Difference between revisions

Line 156: Line 156:




# mat-color($primary, 50); is the lightest color
// mat-color($primary, 50); is the lightest color
# mat-color($primary, 900); is the darkest color
// mat-color($primary, 900); is the darkest color
# mat-color($primary, lighter); defaults to 100
// mat-color($primary, lighter); defaults to 100
# mat-color($primary); defaults to 500
// mat-color($primary); defaults to 500
# mat-color($primary, darker); defaults to 700
// mat-color($primary, darker); defaults to 700
# mat-color($primary, '500-contrast'); gets contrast colors for text
// mat-color($primary, '500-contrast'); gets contrast colors for text
</syntaxhighlight>
</syntaxhighlight>