Ignite UISass API
ComponentsGet Started

palettes

#

variablebrushes-regularpublicview codeopen_in_new

A list of color values to be used as brushes in charts.

$brushes-regular: (
rgb(157 231 114),
rgb(139 91 177),
rgb(109 177 255),
rgb(154 242 228),
rgb(238 88 121),
rgb(115 86 86),
rgb(247 210 98),
rgb(168 168 183),
rgb(224 81 169),
rgb(248 161 95)
);
#

variablebrushes-color-blindpublicview codeopen_in_new

A list of color values to be used as color-blind brushes in charts.

$brushes-color-blind: (
rgb(86 180 233),
rgb(0 158 115),
rgb(240 228 68),
rgb(213 94 0),
rgb(214 0 254),
rgb(0 73 159),
rgb(230 159 0),
rgb(0 0 0),
rgb(132 240 223),
rgb(115 86 86)
);
#

variableshade-generatorpublicview codeopen_in_new

Which generator builds the shades. `fitted` cuts each scale to its own hue — lightness from a contrast target, chroma from how much color that hue can actually hold. `legacy` multiplies the seed by fixed saturation and lightness tables.

Example
@use 'igniteui-theming' with ($shade-generator: 'legacy');
#

variablescalespublicview codeopen_in_new

Ready-made scale shapes. `range` is the WCAG contrast the family spans, from shade 50 to shade 900. So `1.182 18.232` means the lightest shade sits at 1.18:1 and the darkest at 18.23:1. `curve` is read exactly like a CSS `cubic-bezier()` timing function: x is how far along the shades you are, y is how far into that contrast range. `null` is the straight line, and an even spread is what makes any two shades 500 apart clear AA — bunching the light end buys a familiar rhythm at the cost of that guarantee. `anchor` is what `range` is measured against for `gray`. Every other family is measured against white. It is a keyword, not a color: `'surface'` or `'white'`. An unquoted `white` works too, but a color such as `#fff` doesn't. - `'surface'` (default) — against the background. Shade 50 sits nearest the page and each number steps away from it, so a dark theme gets grays spaced from its own background. - `'white'` — against white, as the original grayscale was built. The ten grays are the same colors in every theme; on a dark surface they run in reverse, 50 darkest. A spec without a `range` takes the family's default range, and its curve too unless it has one. A `range` without a `curve` is a straight line. Each preset was fitted to the published scale it names. Bracketed figures are the max ΔE from that scale and how many of the five "500 apart" pairs still clear AA. - `even` — straight [5/5] - `material` — this library's original grayscale, light and dark [0.025, 3/5] - `tailwind` — Tailwind v4 slate [0.013, 5/5] - `carbon` — IBM Carbon gray 10–100 [0.007, 5/5]

Example

Name a preset

$p: palette($primary: #09f, $secondary: #f0f, $surface: #fff, $scales: ('gray': 'carbon'));
Example

Or write one inline

$p: palette(#09f, #f0f, #fff, $scales: ('gray': (range: 1.1 14, curve: 0.5 0 0.8 0.8)));
Example

Keep a gray ramp's colors fixed across light and dark themes

$p: palette(#09f, #f0f, #121212, $scales: ('gray': (range: 1.1 14, anchor: 'white')));
#

variablefamily-scalespublicview codeopen_in_new

Which scale each family uses. Unlisted families use `even`.

$family-scales: (
'gray': 'material',
);
#

variablesurface-rolespublicview codeopen_in_new

The layers a surface family generates. The `toward` is the end of the range each moves to; A layer with no room resolves onto the background. The `step` is its contrast from the background.

$surface-roles: (
'sunken': (
toward: 'black',
step: 1.07,
),
'raised': (
toward: 'white',
step: 1.08,
),
'overlay': (
toward: 'white',
step: 1.18,
),
);
#

variablesurface-container-alphapublicview codeopen_in_new

Alpha of the translucent `container` layer — black over a light background, white over a dark one.

$surface-container-alpha: 0.03;
#

variablesaturation-floorpublicview codeopen_in_new

Lower bound on the seed's saturation level, so a muted brand color still yields a usable ramp. A seed under 0.02 OKLCH chroma is read as a tinted gray and keeps the tint it has instead.

$saturation-floor: 0.3;
#

variableINumericShadespublicview codeopen_in_new

The numeric shades every chromatic family generates.

$INumericShades: ('50', '100', '200', '300', '400', '500', '600', '700', '800', '900');
#

variableIAccentShadespublicview codeopen_in_new

The accent shades a chromatic family adds on top of its numeric ones.

$IAccentShades: ('A100', 'A200', 'A400', 'A700');
#

variableISurfaceRolespublicview codeopen_in_new

A background plus the layers that sit on it. A role with no room in its direction resolves onto the background. Derived from `$surface-roles`, so configuring that map is enough to add or drop a layer.

$ISurfaceRoles: list.join(('base'), list.join(map.keys(config.$surface-roles), ('container', 'seed')));
#

variableISurfaceNumericShadespublicview codeopen_in_new

The numeric shades a surface family generates next to its roles. They derive from `500`, which holds the seed in a `legacy` palette and points at `base` in a `fitted` one.

warningDeprecated

Read the surface roles in `$ISurfaceRoles` instead. The numeric surface shades will be removed in a future release.

$ISurfaceNumericShades: list.join($INumericShades, $IAccentShades);
#

variableISurfaceShadespublicview codeopen_in_new

Every key a surface family generates: its roles and its numeric shades. `$IPaletteColors` lists only the roles, which are what styles read, so this is for consumers that must cover every key a palette emits.

$ISurfaceShades: list.join($ISurfaceRoles, $ISurfaceNumericShades);
#

variabledark-bootstrap-palettepublicview codeopen_in_new

Generates the light material palette.

$palette: palette(
$primary: #0d6efd,
$secondary: #6c757d,
$gray: #adb5bd,
$surface: #212529,
$info: #0dcaf0,
$success: #198754,
$warn: #ffc107,
$error: #dc3545,
$variant: 'bootstrap',
$generator: 'legacy',
);
#

variabledark-green-palettepublicview codeopen_in_new

Generates the light green palette.

$green-palette: palette(
$primary: #09f,
$secondary: #72da67,
$surface: #222,
$info: #1377d5,
$success: #4eb862,
$warn: #fbb13c,
$error: #ff134a,
$generator: 'legacy',
);
#

variabledark-purple-palettepublicview codeopen_in_new

Generates the light purple palette.

$purple-palette: palette(
$primary: #00b4d6,
$secondary: #514590,
$surface: #333,
$info: #1377d5,
$success: #4eb862,
$warn: #fbb13c,
$error: #ff134a,
$generator: 'legacy',
);
#

variabledark-fluent-palettepublicview codeopen_in_new

Generates the light material palette.

$palette: palette(
$primary: #0078d4,
$secondary: #2b88d8,
$surface: #1b1b1b,
$info: #1377d5,
$success: #107c10,
$warn: #797673,
$error: #a80000,
$variant: 'fluent',
$generator: 'legacy',
);
#

variabledark-fluent-word-palettepublicview codeopen_in_new

Generates the light fluent word palette.

$word-palette: palette(
$primary: #2b579a,
$secondary: #2b579a,
$surface: #1b1b1b,
$info: #1377d5,
$success: #107c10,
$warn: #797673,
$error: #a80000,
$variant: 'fluent',
$generator: 'legacy',
);
#

variabledark-fluent-excel-palettepublicview codeopen_in_new

Generates the dark green palette.

$excel-palette: palette(
$primary: #217346,
$secondary: #217346,
$surface: #1b1b1b,
$info: #1377d5,
$success: #107c10,
$warn: #797673,
$error: #a80000,
$variant: 'fluent',
$generator: 'legacy',
);
#

variabledark-indigo-palettepublicview codeopen_in_new

Generates the light material palette.

$palette: (
'primary': (
'50': #d9deff,
'50-contrast': black,
'100': #a3aff6,
'100-contrast': black,
'200': #8293f8,
'200-contrast': black,
'300': #7385f4,
'300-contrast': black,
'400': #5468d9,
'400-contrast': black,
'500': #3f51b5,
'500-contrast': white,
'600': #39479c,
'600-contrast': white,
'700': #333d83,
'700-contrast': white,
'800': #2e3172,
'800-contrast': white,
'900': #262851,
'900-contrast': white,
'A100': #39479c,
'A100-contrast': white,
'A200': #333d83,
'A200-contrast': white,
'A400': #2e3172,
'A400-contrast': white,
'A700': #262851,
'A700-contrast': white,
'seed': #3f51b5,
'seed-contrast': white,
),
'secondary': (
'50': #d9deff,
'50-contrast': black,
'100': #a3aff6,
'100-contrast': black,
'200': #8293f8,
'200-contrast': black,
'300': #7385f4,
'300-contrast': black,
'400': #5468d9,
'400-contrast': black,
'500': #3f51b5,
'500-contrast': white,
'600': #39479c,
'600-contrast': white,
'700': #333d83,
'700-contrast': white,
'800': #2e3172,
'800-contrast': white,
'900': #262851,
'900-contrast': white,
'A100': #39479c,
'A100-contrast': white,
'A200': #333d83,
'A200-contrast': white,
'A400': #2e3172,
'A400-contrast': white,
'A700': #262851,
'A700-contrast': white,
'seed': #3f51b5,
'seed-contrast': white,
),
'gray': (
'50': #24252c,
'50-contrast': white,
'100': #3b3d47,
'100-contrast': white,
'200': #545762,
'200-contrast': white,
'300': #6c707a,
'300-contrast': white,
'400': #8e9096,
'400-contrast': black,
'500': #b0b2b7,
'500-contrast': black,
'600': #cbcdd2,
'600-contrast': black,
'700': #ebedf2,
'700-contrast': black,
'800': #f8f8fa,
'800-contrast': black,
'900': #fcfcfd,
'900-contrast': black,
'seed': #c3c4c7,
'seed-contrast': black,
),
'info': (
'50': #f8e2ff,
'50-contrast': black,
'100': #f1c4ff,
'100-contrast': black,
'200': #e89eff,
'200-contrast': black,
'300': #da64ff,
'300-contrast': black,
'400': #bc34d3,
'400-contrast': white,
'500': #9c27b0,
'500-contrast': white,
'600': #8c16a0,
'600-contrast': white,
'700': #7f1192,
'700-contrast': white,
'800': #6f0a80,
'800-contrast': white,
'900': #5c056b,
'900-contrast': white,
'A100': #8c16a0,
'A100-contrast': white,
'A200': #7f1192,
'A200-contrast': white,
'A400': #6f0a80,
'A400-contrast': white,
'A700': #5c056b,
'A700-contrast': white,
'seed': #9c27b0,
'seed-contrast': white,
),
'success': (
'50': #edf3e7,
'50-contrast': black,
'100': #d2e2c3,
'100-contrast': black,
'200': #b4cf9c,
'200-contrast': black,
'300': #95bc74,
'300-contrast': black,
'400': #7fad56,
'400-contrast': black,
'500': #689f38,
'500-contrast': black,
'600': #5a912a,
'600-contrast': black,
'700': #4e8222,
'700-contrast': white,
'800': #3d7012,
'800-contrast': white,
'900': #316109,
'900-contrast': white,
'A100': #5a912a,
'A100-contrast': black,
'A200': #4e8222,
'A200-contrast': white,
'A400': #3d7012,
'A400-contrast': white,
'A700': #316109,
'A700-contrast': white,
'seed': #689f38,
'seed-contrast': black,
),
'warn': (
'50': #fed7b7,
'50-contrast': black,
'100': #ffc696,
'100-contrast': black,
'200': #ffad67,
'200-contrast': black,
'300': #fb8f32,
'300-contrast': black,
'400': #fa7b0e,
'400-contrast': black,
'500': #f56b1d,
'500-contrast': black,
'600': #f05a2b,
'600-contrast': black,
'700': #ec4820,
'700-contrast': black,
'800': #df370e,
'800-contrast': black,
'900': #d22900,
'900-contrast': white,
'A100': #f05a2b,
'A100-contrast': black,
'A200': #ec4820,
'A200-contrast': black,
'A400': #df370e,
'A400-contrast': black,
'A700': #d22900,
'A700-contrast': white,
'seed': #f56b1d,
'seed-contrast': black,
),
'error': (
'50': #ffebef,
'50-contrast': black,
'100': #ffb0b7,
'100-contrast': black,
'200': #fc7f8a,
'200-contrast': black,
'300': #ec5461,
'300-contrast': black,
'400': #dd3544,
'400-contrast': black,
'500': #cf1a2b,
'500-contrast': white,
'600': #c31223,
'600-contrast': white,
'700': #b90415,
'700-contrast': white,
'800': #ae0111,
'800-contrast': white,
'900': #9f000f,
'900-contrast': white,
'A100': #c31223,
'A100-contrast': white,
'A200': #b90415,
'A200-contrast': white,
'A400': #ae0111,
'A400-contrast': white,
'A700': #9f000f,
'A700-contrast': white,
'seed': #cf1a2b,
'seed-contrast': white,
),
'surface': $surface-shades,
_meta: (
variant: 'indigo',
),
);
#

variabledark-material-palettepublicview codeopen_in_new

Generates the light material palette.

$palette: palette(
$primary: #09f,
$secondary: #df1b74,
$surface: #222,
$info: #1377d5,
$success: #4eb862,
$warn: #faa419,
$error: #ff134a,
$variant: 'material',
$generator: 'legacy',
);
#

variablelight-bootstrap-palettepublicview codeopen_in_new

Generates the light material palette.

$palette: palette(
$primary: #0d6efd,
$secondary: #6c757d,
$gray: #adb5bd,
$surface: #f8f9fa,
$info: #0dcaf0,
$success: #198754,
$warn: #ffc107,
$error: #dc3545,
$variant: 'bootstrap',
$generator: 'legacy',
);
#

variablelight-green-palettepublicview codeopen_in_new

Generates the light green palette.

$green-palette: palette(
$primary: #09f,
$secondary: #72da67,
$surface: #fff,
$info: #1377d5,
$success: #4eb862,
$warn: #fbb13c,
$error: #ff134a,
$generator: 'legacy',
);
#

variablelight-purple-palettepublicview codeopen_in_new

Generates the light purple palette.

$purple-palette: palette(
$primary: #00b4d6,
$secondary: #514590,
$surface: #fff,
$info: #1377d5,
$success: #4eb862,
$warn: #fbb13c,
$error: #ff134a,
$generator: 'legacy',
);
#

variablelight-fluent-palettepublicview codeopen_in_new

Generates the light material palette.

$palette: palette(
$primary: #0078d4,
$secondary: #2b88d8,
$surface: #fff,
$info: #1377d5,
$success: #107c10,
$warn: #797673,
$error: #a80000,
$variant: 'fluent',
$generator: 'legacy',
);
#

variablelight-fluent-word-palettepublicview codeopen_in_new

Generates the light fluent word palette.

$word-palette: palette(
$primary: #2b579a,
$secondary: #2b579a,
$surface: #fff,
$info: #1377d5,
$success: #107c10,
$warn: #797673,
$error: #a80000,
$variant: 'fluent',
$generator: 'legacy',
);
#

variablelight-fluent-excel-palettepublicview codeopen_in_new

Generates the dark green palette.

$excel-palette: palette(
$primary: #217346,
$secondary: #217346,
$surface: #fff,
$info: #1377d5,
$success: #107c10,
$warn: #797673,
$error: #a80000,
$variant: 'fluent',
$generator: 'legacy',
);
#

variablelight-indigo-palettepublicview codeopen_in_new

Generates the light material palette.

$palette: (
'primary': (
'50': #d9deff,
'50-contrast': black,
'100': #a3aff6,
'100-contrast': black,
'200': #8293f8,
'200-contrast': black,
'300': #7385f4,
'300-contrast': black,
'400': #5468d9,
'400-contrast': black,
'500': #3f51b5,
'500-contrast': white,
'600': #39479c,
'600-contrast': white,
'700': #333d83,
'700-contrast': white,
'800': #2e3172,
'800-contrast': white,
'900': #262851,
'900-contrast': white,
'A100': #39479c,
'A100-contrast': white,
'A200': #333d83,
'A200-contrast': white,
'A400': #2e3172,
'A400-contrast': white,
'A700': #262851,
'A700-contrast': white,
'seed': #3f51b5,
'seed-contrast': white,
),
'secondary': (
'50': #d9deff,
'50-contrast': black,
'100': #a3aff6,
'100-contrast': black,
'200': #8293f8,
'200-contrast': black,
'300': #7385f4,
'300-contrast': black,
'400': #5468d9,
'400-contrast': black,
'500': #3f51b5,
'500-contrast': white,
'600': #39479c,
'600-contrast': white,
'700': #333d83,
'700-contrast': white,
'800': #2e3172,
'800-contrast': white,
'900': #262851,
'900-contrast': white,
'A100': #39479c,
'A100-contrast': white,
'A200': #333d83,
'A200-contrast': white,
'A400': #2e3172,
'A400-contrast': white,
'A700': #262851,
'A700-contrast': white,
'seed': #3f51b5,
'seed-contrast': white,
),
'gray': (
'50': #fcfcfd,
'50-contrast': black,
'100': #f8f8fa,
'100-contrast': black,
'200': #ebedf2,
'200-contrast': black,
'300': #cbcdd2,
'300-contrast': black,
'400': #b0b2b7,
'400-contrast': black,
'500': #8e9096,
'500-contrast': black,
'600': #6c707a,
'600-contrast': white,
'700': #545762,
'700-contrast': white,
'800': #3b3d47,
'800-contrast': white,
'900': #24252c,
'900-contrast': white,
'seed': #9a9da2,
'seed-contrast': black,
),
'info': (
'50': #f8e2ff,
'50-contrast': black,
'100': #f1c4ff,
'100-contrast': black,
'200': #e89eff,
'200-contrast': black,
'300': #da64ff,
'300-contrast': black,
'400': #bc34d3,
'400-contrast': white,
'500': #9c27b0,
'500-contrast': white,
'600': #8c16a0,
'600-contrast': white,
'700': #7f1192,
'700-contrast': white,
'800': #6f0a80,
'800-contrast': white,
'900': #5c056b,
'900-contrast': white,
'A100': #8c16a0,
'A100-contrast': white,
'A200': #7f1192,
'A200-contrast': white,
'A400': #6f0a80,
'A400-contrast': white,
'A700': #5c056b,
'A700-contrast': white,
'seed': #9c27b0,
'seed-contrast': white,
),
'success': (
'50': #edf3e7,
'50-contrast': black,
'100': #d2e2c3,
'100-contrast': black,
'200': #b4cf9c,
'200-contrast': black,
'300': #95bc74,
'300-contrast': black,
'400': #7fad56,
'400-contrast': black,
'500': #689f38,
'500-contrast': black,
'600': #5a912a,
'600-contrast': black,
'700': #4e8222,
'700-contrast': white,
'800': #3d7012,
'800-contrast': white,
'900': #316109,
'900-contrast': white,
'A100': #5a912a,
'A100-contrast': black,
'A200': #4e8222,
'A200-contrast': white,
'A400': #3d7012,
'A400-contrast': white,
'A700': #316109,
'A700-contrast': white,
'seed': #689f38,
'seed-contrast': black,
),
'warn': (
'50': #fed7b7,
'50-contrast': black,
'100': #ffc696,
'100-contrast': black,
'200': #ffad67,
'200-contrast': black,
'300': #fb8f32,
'300-contrast': black,
'400': #fa7b0e,
'400-contrast': black,
'500': #f56b1d,
'500-contrast': black,
'600': #f05a2b,
'600-contrast': black,
'700': #ec4820,
'700-contrast': black,
'800': #df370e,
'800-contrast': black,
'900': #d22900,
'900-contrast': white,
'A100': #f05a2b,
'A100-contrast': black,
'A200': #ec4820,
'A200-contrast': black,
'A400': #df370e,
'A400-contrast': black,
'A700': #d22900,
'A700-contrast': white,
'seed': #f56b1d,
'seed-contrast': black,
),
'error': (
'50': #ffebef,
'50-contrast': black,
'100': #ffb0b7,
'100-contrast': black,
'200': #fc7f8a,
'200-contrast': black,
'300': #ec5461,
'300-contrast': black,
'400': #dd3544,
'400-contrast': black,
'500': #cf1a2b,
'500-contrast': white,
'600': #c31223,
'600-contrast': white,
'700': #b90415,
'700-contrast': white,
'800': #ae0111,
'800-contrast': white,
'900': #9f000f,
'900-contrast': white,
'A100': #c31223,
'A100-contrast': white,
'A200': #b90415,
'A200-contrast': white,
'A400': #ae0111,
'A400-contrast': white,
'A700': #9f000f,
'A700-contrast': white,
'seed': #cf1a2b,
'seed-contrast': white,
),
'surface': $surface-shades,
_meta: (
variant: 'indigo',
),
);
#

variablelight-material-palettepublicview codeopen_in_new

Generates the light material palette.

$palette: palette(
$primary: #09f,
$secondary: #df1b74,
$surface: white,
$info: #1377d5,
$success: #4eb862,
$warn: #faa419,
$error: #ff134a,
$variant: 'material',
$generator: 'legacy',
);
#

variablelight-palettepublicview codeopen_in_new

Same as $light-material-palette.

$light-palette: palettes.$light-material-palette;
#

variabledark-palettepublicview codeopen_in_new

Same as $dark-material-palette but with modified gray and surface colors.

$dark-palette: palettes.$dark-material-palette;
#

functionpalettepublicview codeopen_in_new

Generates a color palette.

Example
// Pass the required colors
$my-palette: palette(
$primary: rebeccapurple,
$secondary: orange,
$surface: white,
);
// Include the generated palette colors as CSS variables.
@include palette($my-palette);
Example

Keep the original multiplier-based shades

$my-palette: palette(rebeccapurple, orange, white, $generator: 'legacy');
Example

Give the grayscale a different rhythm

$my-palette: palette(rebeccapurple, orange, white, $scales: ('gray': 'carbon'));
Parameters
NameTypeDefaultDescription
$primary*
Color
-The primary color used to generate the primary color palette.
$secondary*
Color
-The secondary color used to generate the secondary color palette.
$surface*
Color
-The color used as a background in components.
$gray
Color
nullThe color used for generating the grayscale palette.
$info
Color
#1377d5The information color used throughout the application.
$success
Color
#4eb862The success color used throughout the application.
$warn
Color
#faa419The warning color used throughout the application.
$error
Color
#ff134aThe error color used throughout the application.
$variant
String
nullUsed internally.
$generator
String
$shade-generatorEither `fitted` or `legacy`.
$scales
String | Map | List
nullOne scale for every family, or a map keyed by family name.
#

functionshadespublicview codeopen_in_new

Generates color shades for a given color.

Example
$color-name: 'accent';
// Include the generated palette colors as CSS variables.
@include palette(
(
#{$color-name}: shades($color-name, #a57865, $IColorShades),
)
);
Example

Pick a scale for this scale

$shades: shades('accent', #a57865, $IColorShades, $scale: 'carbon');
Parameters
NameTypeDefaultDescription
$name*
String
-The name of the color.
$color*
Color
-The base color used to generate the shades.
$shades*
List
-The list of shade variants.
$surface
Color
nullThe surface color. Useful if generating shades of gray.
$generator
String
$shade-generatorEither `fitted` or `legacy`.
$scale
String | Map | List
nullA preset name, a `(range:, curve:)` map, or a curve.
#

functioncolorpublicview codeopen_in_new

Retrieves a color from a color palette.

Example

Getting a color from the palette

// Without providing a palette
.my-component-1 {
background: color($color: primary, $variant: 200); // var(--ig-primary-200)
}
// With a specific palette
.my-component-2 {
background: color($my-palette, primary, 200); // #88c0e5
}
Example

Getting a color with opacity

.my-component-1 {
background: color($color: primary, $variant: 200, $opacity: 0.5); // hsl(from var(--ig-primary-200) h s l/0.5)
}
// With a specific palette
.my-component-2 {
background: color($my-palette, primary, 200, $opacity: 0.5); // rgba(136, 192, 229, 0.5)
}
Parameters
NameTypeDefaultDescription
$palette
Map
nullThe source palette map.
$color
String
primaryThe target color from the color palette.
$variant
Number | String
500The target color shade from the color palette.
$opacity
Number
nullOptional opacity to apply to the color shade.
#

functioncontrast-colorpublicview codeopen_in_new

Retrieves a contrast color for a given color variant from a color palette. Works similarly to the color function.

Example

without passing a palette

.my-component {
background: color($color: 'primary', $variant: 200);
color: contrast-color($color: 'primary', $variant: 200);
}
Parameters
NameTypeDefaultDescription
$palette
Map
nullThe source palette map.
$color
String
primaryThe target color from the color palette.
$variant
Number | String
500The target color shade from the color palette.
$opacity
Number
nullOptional opacity to apply to the color shade.
#

functionseed-lands-onpublicview codeopen_in_new

Reports which shade sits closest to the seed in lightness. Chroma and hue are not compared: each shade carries the chroma its hue can hold at that lightness, so the match is rarely the seed itself. `--ig-{name}-seed` always holds the original.

Example
$where: seed-lands-on($my-palette, 'primary'); // '300'
Parameters
NameTypeDefaultDescription
$palette*
Map
-A generated palette.
$name
String
'primary'The color family to inspect.
#

mixinpalettepublicview codeopen_in_new

Generates CSS variables for a given palette.

Example

Generate css variables for a palette

$palette: palette($primary: red, $secondary: blue, $gray: #000);
@include palette($palette);
Parameters
NameTypeDefaultDescription
$palette*
Map
-The palette used to generate CSS variables.
$contrast
Boolean
trueSpecify if contrast colors should be included.

Search Documentation