aboutsummaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authornetop://ウィビ <paul@webb.page>2026-06-04 19:54:03 -0700
committernetop://ウィビ <paul@webb.page>2026-06-04 19:54:03 -0700
commit88bb97ec7db1dbcef383931ef8b47e01034d7827 (patch)
treeadd9330540bd920c0ae3e1e4feeac0c76c5fe8f2 /src/index.ts
parentfd2eee1c18760320f27171dc13c5f5d7f2718067 (diff)
downloaduchu-88bb97ec7db1dbcef383931ef8b47e01034d7827.tar.gz
uchu-88bb97ec7db1dbcef383931ef8b47e01034d7827.zip
3.0 update
- adds pastel palette - updates color syntax - updates docs - adds dsgn. banner
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts56
1 files changed, 53 insertions, 3 deletions
diff --git a/src/index.ts b/src/index.ts
index ba34358..5b8127c 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -3,17 +3,21 @@
/*** UTILITY ------------------------------------------ ***/
-import { palette } from "./colors";
+import { palette, pastelPalette } from "./colors";
/*** EXPORT ------------------------------------------- ***/
-export { palette, raw, yang, yin } from "./colors";
-export type { Hue, Shade } from "./colors";
+export { palette, pastelPalette, pastelRaw, raw, yang, yin } from "./colors";
+export type { Hue, PastelHue, PastelShade, Shade } from "./colors";
export const color = (hue: keyof typeof palette, shade: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9): string => {
return palette[hue][shade];
};
+export const pastelColor = (hue: keyof typeof pastelPalette, shade: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9): string => {
+ return palette[hue][shade];
+};
+
export const reduced = {
blue: {
1: palette.blue[1],
@@ -59,3 +63,49 @@ export const reduced = {
1: palette.yin[1]
}
} as const;
+
+export const pastelReduced = {
+ blue: {
+ 1: pastelPalette.blue[1],
+ 2: pastelPalette.blue[4],
+ 3: pastelPalette.blue[8]
+ },
+ gray: {
+ 1: pastelPalette.gray[1],
+ 2: pastelPalette.gray[4],
+ 3: pastelPalette.gray[8]
+ },
+ green: {
+ 1: pastelPalette.green[1],
+ 2: pastelPalette.green[4],
+ 3: pastelPalette.green[8]
+ },
+ orange: {
+ 1: pastelPalette.orange[1],
+ 2: pastelPalette.orange[4],
+ 3: pastelPalette.orange[8]
+ },
+ pink: {
+ 1: pastelPalette.pink[1],
+ 2: pastelPalette.pink[4],
+ 3: pastelPalette.pink[8]
+ },
+ purple: {
+ 1: pastelPalette.purple[1],
+ 2: pastelPalette.purple[4],
+ 3: pastelPalette.purple[8]
+ },
+ red: {
+ 1: pastelPalette.red[1],
+ 2: pastelPalette.red[4],
+ 3: pastelPalette.red[8]
+ },
+ yellow: {
+ 1: pastelPalette.yellow[1],
+ 2: pastelPalette.yellow[4],
+ 3: pastelPalette.yellow[8]
+ },
+ yin: {
+ 1: pastelPalette.yin[1]
+ }
+} as const;