fix(types): use singular for color name types (#67)

This commit is contained in:
winston 2024-01-02 23:36:55 +01:00 committed by GitHub
parent 6ce9a87b9b
commit 7c73188ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

6
mod.ts
View File

@ -15,7 +15,7 @@ export type FlavorName = "latte" | "frappe" | "macchiato" | "mocha";
/** /**
* Accent colors of Catppuccin. * Accent colors of Catppuccin.
*/ */
export type AccentNames = export type AccentName =
| "rosewater" | "rosewater"
| "flamingo" | "flamingo"
| "pink" | "pink"
@ -35,7 +35,7 @@ export type AccentNames =
* Monochromatic colors of Catppuccin, * Monochromatic colors of Catppuccin,
* from `text` to `crust` * from `text` to `crust`
*/ */
export type MonochromaticNames = export type MonochromaticName =
| "text" | "text"
| "subtext1" | "subtext1"
| "subtext0" | "subtext0"
@ -52,7 +52,7 @@ export type MonochromaticNames =
/** /**
* All color names of Catppuccin * All color names of Catppuccin
*/ */
export type ColorName = AccentNames | MonochromaticNames; export type ColorName = AccentName | MonochromaticName;
/** /**
* Generic to map type T to all Catppuccin color names * Generic to map type T to all Catppuccin color names