@@ -17,7 +17,7 @@ $_mat-theme-emitted-typography: () !default;
17
17
$_mat-theme-emitted-density : () !default ;
18
18
19
19
// For a given hue in a palette, return the contrast color from the map of contrast palettes.
20
- // @param $color-map
20
+ // @param $palette
21
21
// @param $hue
22
22
@function mat-contrast ($palette , $hue ) {
23
23
@return map-get (map-get ($palette , contrast ), $hue );
@@ -26,9 +26,11 @@ $_mat-theme-emitted-density: () !default;
26
26
27
27
// Creates a map of hues to colors for a theme. This is used to define a theme palette in terms
28
28
// of the Material Design hues.
29
- // @param $color-map
30
- // @param $primary
29
+ // @param $base-palette
30
+ // @param $default
31
31
// @param $lighter
32
+ // @param $darker
33
+ // @param $text
32
34
@function mat-palette ($base-palette , $default : 500 , $lighter : 100 , $darker : 700 , $text : $default ) {
33
35
$result : map-merge ($base-palette , (
34
36
default : map-get ($base-palette , $default ),
@@ -56,7 +58,7 @@ $_mat-theme-emitted-density: () !default;
56
58
// The hue can be one of the standard values (500, A400, etc.), one of the three preconfigured
57
59
// hues (default, lighter, darker), or any of the aforementioned prefixed with "-contrast".
58
60
//
59
- // @param $color-map The theme palette (output of mat-palette).
61
+ // @param $palette The theme palette (output of mat-palette).
60
62
// @param $hue The hue from the palette to use. If this is a value between 0 and 1, it will
61
63
// be treated as opacity.
62
64
// @param $opacity The alpha channel value for the color.
0 commit comments