fix: color types

This commit is contained in:
tresabhi committed 2025-03-20 00:53:47 -05:00
1 parent 9491e7651a
commit ef7655ab5d
1 file changed
+1 -1
+1 -1
View File
@@ -2,7 +2,7 @@ import * as ColorsRaw from '@radix-ui/colors';
type ExcludeSuffix<T> =
T extends `${string}${'A' | `${'P3' | 'Dark'}${'' | 'A'}`}` ? never : T;
type RadixColor = ExcludeSuffix<keyof typeof ColorsRaw>;
type RadixColor = ExcludeSuffix<keyof typeof ColorsRaw> | 'black' | 'white';
export type VarName =
| `color-${'background' | `panel-${'solid' | 'translucent'}` | 'surface' | 'overlay'}`