lib: improve types/checks

This commit is contained in:
ooks-io 2024-11-18 11:28:33 +11:00
parent 10c1ed7ecb
commit a30e2a0bc1
5 changed files with 87 additions and 21 deletions

View file

@ -2,6 +2,7 @@
math,
types,
translate,
check,
}: let
# Base modification functions
modifyHSL = hexStr: modifications: let
@ -94,6 +95,8 @@
then mkDarkColorScale
else mkLightColorScale;
validNeutrals = check.neutrals args;
# Generate color scales
colors = {
red = mkColorScale args.red;
@ -201,7 +204,7 @@
# Common structure for both themes
neutrals = {
inherit
(args.neutrals)
(validNeutrals)
"50"
"100"
"150"