summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-22 07:59:45 +0200
committerVolpeon <git@volpeon.ink>2024-10-22 07:59:45 +0200
commitab89450462b56f452db8f45a9eb513e245c9a2bb (patch)
tree4666d4fa116c96349b2e5c9bbd7f1d155d88c1ad
parentUpdate (diff)
downloadiro-design-ab89450462b56f452db8f45a9eb513e245c9a2bb.tar.gz
iro-design-ab89450462b56f452db8f45a9eb513e245c9a2bb.tar.bz2
iro-design-ab89450462b56f452db8f45a9eb513e245c9a2bb.zip
Update
-rw-r--r--src/_core.vars.scss4
-rw-r--r--src/_functions.scss5
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))
107$-static-colors: (); 107$-static-colors: ();
108 108
109@each $palette-name, $palette in map.get(config.$static-colors, --palettes) { 109@each $palette-name, $palette in map.get(config.$static-colors, --palettes) {
110 $palette: fn.palette($palette, map.get(config.$static-colors, --contrasts), 1, map.get(config.$static-colors, --base)); 110 $palette: fn.palette($palette, map.get(config.$static-colors, --contrasts), 1, map.get(config.$static-colors, --base), config.$palette-chroma-easing);
111 $-static-colors: map.merge($-static-colors, ( $palette-name: $palette )); 111 $-static-colors: map.merge($-static-colors, ( $palette-name: $palette ));
112} 112}
113 113
@@ -141,7 +141,7 @@ $themes: ();
141 $contrasts: list.nth($palette, 2); 141 $contrasts: list.nth($palette, 2);
142 $ranges: list.nth($palette, 3); 142 $ranges: list.nth($palette, 3);
143 143
144 $palette: fn.palette($base-color, map.get($variant, --contrasts, $contrasts), map.get($variant, --ranges, $ranges), list.nth(map.get($variant, --palettes, --base), 1)); 144 $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);
145 $compiled: props.merge($compiled, ( $palette-name: $palette )); 145 $compiled: props.merge($compiled, ( $palette-name: $palette ));
146 } 146 }
147 147
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 @@
6 6
7@use 'iro-sass/src/easing'; 7@use 'iro-sass/src/easing';
8@use 'apca'; 8@use 'apca';
9@use 'config';
10 9
11@function palette($base-color, $contrasts, $chroma-range: 1, $ref-color: $base-color) { 10@function palette($base-color, $contrasts, $chroma-range: 1, $ref-color: $base-color, $chroma-easing: 'ease') {
12 $base-lch: color.to-space($base-color, oklch); 11 $base-lch: color.to-space($base-color, oklch);
13 $ref-lch: color.to-space($ref-color, oklch); 12 $ref-lch: color.to-space($ref-color, oklch);
14 13
@@ -26,7 +25,7 @@
26 $chroma-inv: true; 25 $chroma-inv: true;
27 $chroma-range: -1 * $chroma-range; 26 $chroma-range: -1 * $chroma-range;
28 } 27 }
29 $chroma-easing: meta.get-function(config.$palette-chroma-easing, $module: easing); 28 $chroma-easing: meta.get-function($chroma-easing, $module: easing);
30 29
31 $palette: (); 30 $palette: ();
32 31