Is the second argument to mat-color opacity?

Viewed 1541

Is the second argument to mat-color opacity?

This is an example:

mat-color($warn, 0.15)
1 Answers

According with angular/components source code. Yes, it will be treated as opacity.

@param $color-map The theme palette (output of mat-palette).
@param $hue The hue from the palette to use. If this is a value between 0 and 1, it will
   be treated as opacity.
@param $opacity The alpha channel value for the color.

@function mat-color($palette, $hue: default, $opacity: null)

Related