waybetter/crates/waybetter-host
CRT 7568126f2b runtime + host: the theme engine (theme documents, choice catalog, page runtime, fonts; native theme state)
The site-independent theme engine moves from wayBetter for X into the framework:
- runtime/themeSpec.ts: theme document types, the schema's defaults (BASE_*), sanitizing,
  import, overrides, ensureContrast, font roles/stacks, font choices, backgrounds.
- runtime/themeChoice.ts: ThemeChoice and createThemeCatalog(builtins) (normalize, base,
  resolve, palette, all), choiceForId, serializeChoice.
- runtime/themeRuntime.ts: installThemeRuntime(win, site) (live CSS over the site's rules,
  --wb-* vars, site color mode, first-frame snapshot), collectRules, resolvedFonts.
- runtime/fonts.ts: bundled fonts and owner-downloaded Google Fonts from bytes.
- themeApi exports hexToRgb, mix and MONO_FAMILIES (one copy: themeTokens and themeSpec use them).
- host theme.rs: ThemeChoice/ThemeScopes over a site's ThemeSite (envelope checks against
  theme.schema.json, which theme a tab shows, page color, delivery script).
2026-09-29 06:07:59 +00:00
..
examples create-waybetter: npm create waybetter scaffolds plugins (JS/TS), themes and whole apps 2026-09-28 16:17:32 +00:00
src runtime + host: the theme engine (theme documents, choice catalog, page runtime, fonts; native theme state) 2026-09-29 06:07:59 +00:00
tests host: self-hosted Google Fonts (gfonts) and the font cache (fonts) 2026-09-29 04:15:10 +00:00
Cargo.lock host: run_app — the window, shell, tab webviews and generic commands for every app 2026-09-29 04:51:24 +00:00
Cargo.toml host: run_app — the window, shell, tab webviews and generic commands for every app 2026-09-29 04:51:24 +00:00
tab-bridge.js host: the tab bridge ships from waybetter-host; create-waybetter uses it 2026-09-29 04:22:54 +00:00