Update light and dark

This commit is contained in:
Jeremy Thomas
2024-10-18 13:45:12 +01:00
parent 0db6ff07df
commit 41e046cab3
5 changed files with 44 additions and 27 deletions

View File

@@ -142,7 +142,7 @@
@mixin generate-color-palette(
$name,
$base,
$scheme-main-l: 100%,
$scheme-main-l: 100,
$invert: null,
$light: null,
$dark: null
@@ -159,8 +159,9 @@
// Calculate digits like "40" for the scheme-main
$scheme-l-0: 0%;
$scheme-l-base: round($scheme-main-l % 10);
$closest-5: math.round(math.div($scheme-main-l, 5)) * 5;
$scheme-l-base: round(($scheme-main-l * 1%) % 10);
@debug $scheme-l-base;
$closest-5: math.round(math.div(($scheme-main-l * 1%), 5)) * 5;
$pct-to-int: math.div($closest-5, 100%) * 100;
$scheme-main-digits: #{$pct-to-int};