summaryrefslogtreecommitdiffstats
path: root/src/_core.vars.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-25 19:04:07 +0200
committerVolpeon <git@volpeon.ink>2024-10-25 19:04:07 +0200
commit4c88538c4d267de7cd21cc29c07e7c8360145441 (patch)
treed2443b1bf715634511e7dc69a79d99da6734601e /src/_core.vars.scss
parentAdd gapless modifier to split view (diff)
downloadiro-design-4c88538c4d267de7cd21cc29c07e7c8360145441.tar.gz
iro-design-4c88538c4d267de7cd21cc29c07e7c8360145441.tar.bz2
iro-design-4c88538c4d267de7cd21cc29c07e7c8360145441.zip
New palette generation
Diffstat (limited to 'src/_core.vars.scss')
-rw-r--r--src/_core.vars.scss7
1 files changed, 3 insertions, 4 deletions
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))
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), config.$palette-chroma-easing); 110 $palette: fn.palette($palette, map.get(config.$static-colors, --levels), map.get(config.$static-colors, --base));
111 $-static-colors: map.merge($-static-colors, ( $palette-name: $palette )); 111 $-static-colors: map.merge($-static-colors, ( $palette-name: $palette ));
112} 112}
113 113
@@ -138,10 +138,9 @@ $themes: ();
138 138
139 @each $palette-name, $palette in map.get($variant, --palettes) { 139 @each $palette-name, $palette in map.get($variant, --palettes) {
140 $base-color: list.nth($palette, 1); 140 $base-color: list.nth($palette, 1);
141 $contrasts: list.nth($palette, 2); 141 $levels: list.nth($palette, 2);
142 $ranges: list.nth($palette, 3);
143 142
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); 143 $palette: fn.palette($base-color, map.get($variant, --levels, $levels), list.nth(map.get($variant, --palettes, --base), 1));
145 $compiled: props.merge($compiled, ( $palette-name: $palette )); 144 $compiled: props.merge($compiled, ( $palette-name: $palette ));
146 } 145 }
147 146