Angular Material 2 matte palette () using lighter and darker option
Based on the selection guide, you can define a custom theme accent
for our example. The second parameter overrides the $mat-pink
default A200, but how does the third ( $lighter
) and 4th ( $darker
) parameter work?
$candy-app-accent: mat-palette($mat-pink, A200, A100, A400);
From
@angular/material/_theming.scss
@function mat-palette($base-palette, $default: 500, $lighter: 100, $darker: 700) { ..... }
source to share
These different shades are used by several components like a progress bar. But it is more useful if you use them as mixins for your own style. This answer on GH problem gives a good explanation .
source to share