waybetter/packages
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
..
create-waybetter create-waybetter: a new app's shell is the framework's shell frame 2026-09-29 05:47:18 +00:00
runtime runtime + host: the theme engine (theme documents, choice catalog, page runtime, fonts; native theme state) 2026-09-29 06:07:59 +00:00
shell shell: the shell frame, createShell(site) (moved from wayBetter for X) 2026-09-29 05:47:10 +00:00
waybetter docs: the shell frame in the framework (what a site supplies, styles, words, native commands) 2026-09-29 05:47:19 +00:00