mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: color types
This commit is contained in:
1 parent
9491e7651a
commit
ef7655ab5d
1 file changed
+1
-1
@@ -2,7 +2,7 @@ import * as ColorsRaw from '@radix-ui/colors';
|
|||||||
|
|
||||||
type ExcludeSuffix<T> =
|
type ExcludeSuffix<T> =
|
||||||
T extends `${string}${'A' | `${'P3' | 'Dark'}${'' | 'A'}`}` ? never : 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 =
|
export type VarName =
|
||||||
| `color-${'background' | `panel-${'solid' | 'translucent'}` | 'surface' | 'overlay'}`
|
| `color-${'background' | `panel-${'solid' | 'translucent'}` | 'surface' | 'overlay'}`
|
||||||
|
|||||||
Reference in new issue
Block a user