mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: start of tier list
This commit is contained in:
1 parent
b54d4a59cf
commit
28e6b0eb98
5 files changed
+71
-6
No files matched your search
@@ -4,7 +4,7 @@ type ExcludeSuffix<T> =
|
||||
T extends `${string}${'A' | `${'P3' | 'Dark'}${'' | 'A'}`}` ? never : T;
|
||||
type RadixColor = ExcludeSuffix<keyof typeof ColorsRaw>;
|
||||
|
||||
type Name =
|
||||
export type VarName =
|
||||
| `color-${'background' | `panel-${'solid' | 'translucent'}` | 'surface' | 'overlay'}`
|
||||
| `radius-${1 | 2 | 3 | 4 | 5 | 6 | 'full'}`
|
||||
| `space-${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9}`
|
||||
@@ -27,6 +27,6 @@ type Name =
|
||||
| 'track'
|
||||
| 'contrast'}`;
|
||||
|
||||
export function Var(name: Name) {
|
||||
export function Var(name: VarName) {
|
||||
return `var(--${name})`;
|
||||
}
|
||||
Reference in new issue
Block a user