From 1e902449652213eb1feae5e61740cb9ce3b9d6e3 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 22 Jun 2024 10:39:48 +0200 Subject: WIP: Refactoring --- src/_functions.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/_functions.scss') diff --git a/src/_functions.scss b/src/_functions.scss index aaa8ac9..7c0ded3 100644 --- a/src/_functions.scss +++ b/src/_functions.scss @@ -107,7 +107,7 @@ @return $result; } -@function palette($base-color, $contrasts, $reference-color: $base-color) { +@function palette($base-color, $contrasts, $range: 1, $reference-color: $base-color) { $palette: (); @if list.nth(list.nth($contrasts, 1), 2) > list.nth(list.nth($contrasts, list.length($contrasts)), 2) { @@ -117,7 +117,7 @@ $i: -100%; @while $i <= 100% { - $palette: list.append($palette, blend.scale($base-color, $l: $i)); + $palette: list.append($palette, blend.scale($base-color, $l: $range * $i, $c: -.8 * math.abs($i))); $i: $i + config.$palette-precision; } -- cgit v1.2.3-70-g09d2