|
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 [$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 grayscale 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.
|
|
309 | 309 | $success: #4eb862,
|
310 | 310 | $warn: #fbb13c,
|
311 | 311 | $error: #ff134a,
|
312 |
| - $grays: if(global-variable-exists('igx-foreground-color'), $igx-foreground-color, #000), |
| 312 | + $grays: #000, |
313 | 313 | $surface: #fff
|
314 | 314 | ) {
|
315 | 315 | $saturations: (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 'A100', 'A200', 'A400', 'A700');
|
316 | 316 | $shades: (50: .02, 100: .04, 200: .08, 300: .12, 400: .26, 500: .38, 600: .54, 700: .62, 800: .74, 900: .87);
|
317 | 317 |
|
| 318 | + @if global-variable-exists('igx-foreground-color') and type-of($igx-foreground-color) == 'color' { |
| 319 | + $grays: $igx-foreground-color; |
| 320 | + } |
| 321 | + |
318 | 322 | $primary-palette: generate-palette($primary, $saturations);
|
319 | 323 | $secondary-palette: generate-palette($secondary, $saturations);
|
320 | 324 | $grayscale-palette: grayscale-palette($grays, $shades);
|
|
0 commit comments