From 4c88538c4d267de7cd21cc29c07e7c8360145441 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 25 Oct 2024 19:04:07 +0200 Subject: New palette generation --- src/_core.vars.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/_core.vars.scss') diff --git a/src/_core.vars.scss b/src/_core.vars.scss index a11cf42..60565c7 100644 --- a/src/_core.vars.scss +++ b/src/_core.vars.scss @@ -107,7 +107,7 @@ $list--compact-indent: props.def(--list--compact-indent, props.get($size--250)) $-static-colors: (); @each $palette-name, $palette in map.get(config.$static-colors, --palettes) { - $palette: fn.palette($palette, map.get(config.$static-colors, --contrasts), 1, map.get(config.$static-colors, --base), config.$palette-chroma-easing); + $palette: fn.palette($palette, map.get(config.$static-colors, --levels), map.get(config.$static-colors, --base)); $-static-colors: map.merge($-static-colors, ( $palette-name: $palette )); } @@ -138,10 +138,9 @@ $themes: (); @each $palette-name, $palette in map.get($variant, --palettes) { $base-color: list.nth($palette, 1); - $contrasts: list.nth($palette, 2); - $ranges: list.nth($palette, 3); + $levels: list.nth($palette, 2); - $palette: fn.palette($base-color, map.get($variant, --contrasts, $contrasts), map.get($variant, --ranges, $ranges), list.nth(map.get($variant, --palettes, --base), 1), config.$palette-chroma-easing); + $palette: fn.palette($base-color, map.get($variant, --levels, $levels), list.nth(map.get($variant, --palettes, --base), 1)); $compiled: props.merge($compiled, ( $palette-name: $palette )); } -- cgit v1.2.3-70-g09d2