Skip to content

Commit 3d415e7

Browse files
authoredJan 2, 2024
fix(types): add accent/monochromatic color name types (#65)
1 parent 71ca10d commit 3d415e7

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed
 

‎mod.ts

+14-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ const entriesFromObject = <T extends object>(obj: T): Entries<T> =>
1313
export type FlavorName = "latte" | "frappe" | "macchiato" | "mocha";
1414

1515
/**
16-
* All color names of Catppuccin
16+
* Accent colors of Catppuccin.
1717
*/
18-
export type ColorName =
18+
export type AccentNames =
1919
| "rosewater"
2020
| "flamingo"
2121
| "pink"
@@ -29,7 +29,13 @@ export type ColorName =
2929
| "sky"
3030
| "sapphire"
3131
| "blue"
32-
| "lavender"
32+
| "lavender";
33+
34+
/**
35+
* Monochromatic colors of Catppuccin,
36+
* from `text` to `crust`
37+
*/
38+
export type MonochromaticNames =
3339
| "text"
3440
| "subtext1"
3541
| "subtext0"
@@ -43,6 +49,11 @@ export type ColorName =
4349
| "mantle"
4450
| "crust";
4551

52+
/**
53+
* All color names of Catppuccin
54+
*/
55+
export type ColorName = AccentNames | MonochromaticNames;
56+
4657
/**
4758
* Generic to map type T to all Catppuccin color names
4859
*/

0 commit comments

Comments
 (0)
Please sign in to comment.