lib: improve types/checks
This commit is contained in:
parent
10c1ed7ecb
commit
a30e2a0bc1
5 changed files with 87 additions and 21 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue