diff --git a/src/themes.ts b/src/themes.ts index 131635c..5fc9200 100644 --- a/src/themes.ts +++ b/src/themes.ts @@ -7,9 +7,10 @@ function oklchCoords(color: string) { type ColorGroup = "primary" | "neutral" | "danger"; type ColorLevel = 0 | 1 | 2 | 3 | 4 | 5; -type ColorFamily = { - [P in `--color-${T}-${ColorLevel}`]: string; -}; +type ColorFamily = Record< + `--color-${T}-${ColorLevel}`, + string +>; interface Theme extends ColorFamily {}