Files
chandra/wit/theme.wit
T
2026-11-24 23:51:26 +00:00

32 lines
669 B
Plaintext

package moonplasma:desktop@0.1.0;
/// Look-and-feel design tokens (Plasma "Look and Feel"/colour scheme analogue).
interface theme {
use types.{color};
record palette {
desktop-top: color,
desktop-bottom: color,
surface: color,
surface-hover: color,
surface-popup: color,
foreground: color,
foreground-muted: color,
accent: color,
accent-foreground: color,
border: color,
}
record tokens {
name: string,
palette: palette,
font-size: u32,
radius: u32,
spacing: u32,
panel-height: u32,
}
/// Read on every render so a theme swap shows up on the next frame.
get-tokens: func() -> tokens;
}