Skip to content

Commit

Permalink
fix(types): add accent/monochromatic color name types
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Jan 2, 2024
1 parent 71ca10d commit 224be61
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const entriesFromObject = <T extends object>(obj: T): Entries<T> =>
export type FlavorName = "latte" | "frappe" | "macchiato" | "mocha";

/**
* All color names of Catppuccin
* Accent colors of Catppuccin.
*/
export type ColorName =
export type AccentNames =
| "rosewater"
| "flamingo"
| "pink"
Expand All @@ -29,7 +29,13 @@ export type ColorName =
| "sky"
| "sapphire"
| "blue"
| "lavender"
| "lavender";

/**
* Monochromatic colors of Catppuccin,
* from `text` to `crust`
*/
export type MonochromaticNames =
| "text"
| "subtext1"
| "subtext0"
Expand All @@ -43,6 +49,11 @@ export type ColorName =
| "mantle"
| "crust";

/**
* All color names of Catppuccin
*/
export type ColorName = AccentNames | MonochromaticNames;

/**
* Generic to map type T to all Catppuccin color names
*/
Expand Down

0 comments on commit 224be61

Please sign in to comment.