第二个论点是哑光颜色不透明度吗?

Ole*_*Ole 3 css sass angular-material angular

第二个论点是mat-color不透明吗?

这是一个例子:

mat-color($warn, 0.15)
Run Code Online (Sandbox Code Playgroud)

小智 6

根据角度/组件源代码。是的,它将被视为不透明。

@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.
Run Code Online (Sandbox Code Playgroud)

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