From ab89450462b56f452db8f45a9eb513e245c9a2bb Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 22 Oct 2024 07:59:45 +0200 Subject: Update --- src/_core.vars.scss | 4 ++-- src/_functions.scss | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/_core.vars.scss b/src/_core.vars.scss index 61dabe8..a11cf42 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)); + $palette: fn.palette($palette, map.get(config.$static-colors, --contrasts), 1, map.get(config.$static-colors, --base), config.$palette-chroma-easing); $-static-colors: map.merge($-static-colors, ( $palette-name: $palette )); } @@ -141,7 +141,7 @@ $themes: (); $contrasts: list.nth($palette, 2); $ranges: list.nth($palette, 3); - $palette: fn.palette($base-color, map.get($variant, --contrasts, $contrasts), map.get($variant, --ranges, $ranges), list.nth(map.get($variant, --palettes, --base), 1)); + $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); $compiled: props.merge($compiled, ( $palette-name: $palette )); } diff --git a/src/_functions.scss b/src/_functions.scss index 367b4dd..27b850c 100644 --- a/src/_functions.scss +++ b/src/_functions.scss @@ -6,9 +6,8 @@ @use 'iro-sass/src/easing'; @use 'apca'; -@use 'config'; -@function palette($base-color, $contrasts, $chroma-range: 1, $ref-color: $base-color) { +@function palette($base-color, $contrasts, $chroma-range: 1, $ref-color: $base-color, $chroma-easing: 'ease') { $base-lch: color.to-space($base-color, oklch); $ref-lch: color.to-space($ref-color, oklch); @@ -26,7 +25,7 @@ $chroma-inv: true; $chroma-range: -1 * $chroma-range; } - $chroma-easing: meta.get-function(config.$palette-chroma-easing, $module: easing); + $chroma-easing: meta.get-function($chroma-easing, $module: easing); $palette: (); -- cgit v1.2.3-70-g09d2