cloudflare/kumo
Publicmirrored fromhttps://github.com/cloudflare/kumoAvailable
packages/kumo-docs-astro/src/kumo-colors.d.ts
23lines · modecode
| 1 | /** |
| 2 | * Type declarations for virtual:kumo-colors module. |
| 3 | * Provides color token data parsed from CSS files. |
| 4 | */ |
| 5 | declare module "virtual:kumo-colors" { |
| 6 | export type TokenType = "semantic" | "global" | "override"; |
| 7 | |
| 8 | export interface ColorToken { |
| 9 | /** Token name with -- prefix (e.g., "--color-surface") */ |
| 10 | name: string; |
| 11 | /** Light mode value */ |
| 12 | light: string; |
| 13 | /** Dark mode value */ |
| 14 | dark: string; |
| 15 | /** Theme this token belongs to */ |
| 16 | theme: string; |
| 17 | /** Token type: semantic, global, or override */ |
| 18 | tokenType: TokenType; |
| 19 | } |
| 20 | |
| 21 | /** All color tokens parsed from CSS files */ |
| 22 | export const kumoColors: ColorToken[]; |
| 23 | } |
| 24 | |