|
276 | 276 | /// @param {Color} $color - The base color used to generate the palette. |
277 | 277 | /// @param {Map} $shades - A map of variations as keys and opacities as values. |
278 | 278 | /// Based on the Material color system. |
279 | | -/// @returns {Map} - A map consisting of 10 grayscale color variations and 10 |
| 279 | +/// @returns {Map} - A map consisting of 10 color variations and 10 |
280 | 280 | /// text contrast colors for each variation. |
281 | 281 | @function grayscale-palette($color, $shades) { |
282 | 282 | $result: (); |
283 | 283 | @each $saturation, $opacity in $shades { |
284 | | - $shade: rgba(grayscale($color), $opacity); |
| 284 | + $shade: rgba($color, $opacity); |
285 | 285 | $result: map-merge($result, ($saturation: $shade)); |
286 | 286 | } |
287 | 287 | @return $result; |
|
297 | 297 | /// @param {Color} $success [#4eb862] - The success color used throughout the application. |
298 | 298 | /// @param {Color} $warn [#fbb13c] - The warning color used throughout the application. |
299 | 299 | /// @param {Color} $error [#ff134a] - The error color used throughout the application. |
300 | | -/// @param {Color} $grays [#000 | $igx-foreground-color] - The color used for generating the grayscale palette. |
| 300 | +/// @param {Color} $grays [#000 | $igx-foreground-color] - The color used for generating the grays palette. |
301 | 301 | /// @param {Color} $surface [#fff] - The color used as a background in components, such as cards, sheets, and menus. |
302 | 302 | /// @returns {Map} - A map consisting of 74 color variations, including the `primary`, `secondary`, `grays`, |
303 | 303 | /// `info`, `success`, `warn`, and `error` colors. |
|
0 commit comments