Add Color module

This commit is contained in:
Jeremy Thomas
2024-06-25 22:20:37 +01:00
parent cb2de3a2a2
commit 0014fc4e34
13 changed files with 183 additions and 98 deletions

View File

@@ -0,0 +1,51 @@
export const SUFFIX_TO_KIND = {
"-h": "hue",
"-s": "saturation",
"-l": "lightness",
"-gap": "gap",
"-delta": "delta",
};
export const CSSVAR_KEYS = {
scheme: [
"scheme-h",
"scheme-s",
"light-l",
"light-invert-l",
"dark-l",
"dark-invert-l",
"soft-l",
"bold-l",
"soft-invert-l",
"bold-invert-l",
"hover-background-l-delta",
"active-background-l-delta",
"hover-border-l-delta",
"active-border-l-delta",
"hover-color-l-delta",
"active-color-l-delta",
"hover-shadow-a-delta",
"active-shadow-a-delta",
],
colors: [
"primary-h",
"primary-s",
"primary-l",
"link-h",
"link-s",
"link-l",
"info-h",
"info-s",
"info-l",
"success-h",
"success-s",
"success-l",
"warning-h",
"warning-s",
"warning-l",
"danger-h",
"danger-s",
"danger-l",
"skeleton-lines-gap",
],
};