M0: WIT package, MoonBit components, JS host, docs, CI (#1)
CI / test (push) Successful in 19s

This commit was merged in pull request #1.
This commit is contained in:
nandi committed 2026-11-24 23:51:26 +00:00
1 parent e5548fc067
commit 880ecd4102
141 files changed
+9681 -1

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
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;
}