Skip to content

feat: draw the Frostyard themes in Inter, with text that follows the desktop (ADR-0011) - #18

Merged
bketelsen merged 1 commit into
mainfrom
feat/frostyard-themes
Nov 11, 2026
Merged

bketelsen merged 1 commit into
mainfrom
feat/frostyard-themes

Conversation

@bketelsen

Copy link
Copy Markdown
Contributor

Summary

Phase 1 of the Frostyard look: the kit's own themes, colors and text, per ADR-0011, which this PR marks Accepted.

  • Themes. Adapt sets Frostyard (dark) or Frostyard light, following the theme MyGo picked for the desktop. The desktop's high contrast and text size still apply; its accent no longer does, including in unfocused windows. FrostyardTheme(dark) is for apps with their own appearance setting. A theme that is already Frostyard is kept.

  • Colors MyGo's theme has no field for. ThemeColors and ColorsOf(t) hold them: chrome, panel and its gradient, selected fill and text, hover text, the primary gradient, label, tag, code, and a fill and a line per tone. ColorsOf finds them by the theme's Dark and Background, which preferences and SoftSelection don't change. For any other theme it derives the old surfaces. Chrome, Panel and ToneFill read it; ToneLine is new.

  • Font. Inter 4.001 (upright and italic variable, OFL-1.1, taken unchanged from Debian's fonts-inter-variable 4.1+ds-1) is embedded under fonts/ with OFL.txt, listed in NOTICE, and registered on the first Adapt, never at init. Each app binary grows by about 1.8 MB.

  • Text. The text styles scale with the theme's FontSize through TextSize, so the desktop's text size reaches them. Label draws the brand's uppercase monospace label and keeps the text as written as its accessible name.

  • Docs and tests. A new spec lists every value. Values the design system lacked were chosen and measured here, then added back to it:

    • the hover and pressed faces for MyGo's own widgets
    • Selection
    • Scrollbar
    • the neutral fill
    • white AccentText on the light accent

    frostyard_test.go checks contrast, the color lookup, Adapt, the font and the label. The design doc's theming section, the API changes, api.txt, README, AGENTS.md and the README pictures are updated.

Components keep their shapes until phase 2 (radii, outlined pills, buttons, the rail's selection, which fixes #15).

Closes #16

Risk tier

Risk tier: 2 — a behavior change in code. Every app that calls Adapt (all three) draws the new colors and font after it bumps frostui. No security, release or CI paths change.

Docs housekeeping

  • New docs started from their category's TEMPLATE.md (the spec)
  • Every new doc indexed in docs/README.md
  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan)
  • New or edited ADRs are fact-only: ADR-0011's status is Accepted, and its references name the spec
  • Conformance aliases and canonical symlinks are unchanged

Verification

  • make verify green
  • make ci BASE=origin/main green: verify, the js/wasm tests, the race detector and every cross-build target. Under wasm the font test skips, because that runner's text system has no engine to add fonts to.
  • TestFrostyardContrast passes for both themes, with and without high contrast. The weakest pair is 4.64:1 (Frostyard light, muted text on the pressed face).
  • TestAdaptRegistersInter shows Inter registered and its weights drawn on Linux (Pango). DirectWrite, Core Text and the browser canvas are only cross-compiled, as the plan's open question says.
  • make snapshot draws the three examples in both themes in Inter; the light ones replace docs/images/.

…desktop (ADR-0011)

Adapt now sets the kit's own themes: Frostyard when MyGo picked a dark
theme for the desktop, Frostyard light otherwise, with the desktop's high
contrast and text size applied and its accent not. FrostyardTheme returns
either theme for an app with its own appearance setting.

ThemeColors holds the roles ui.Theme has no field for (chrome, panel and
its gradient, selection, hover text, the primary gradient, label, tag,
code, a fill and a line per tone); ColorsOf finds them by the theme's
background and derives the former surfaces for any other theme. Chrome,
Panel and ToneFill read it, and ToneLine is new.

Inter 4.001 (OFL-1.1) is embedded under fonts/ and registered on the first
Adapt. The text styles scale with the theme's font size through TextSize,
and Label draws the brand's uppercase monospace label.

The spec lists every value, and frostyard_test.go holds every text pair of
both themes, with and without high contrast, to 4.5:1 and the focus ring
to 3:1. ADR-0011 is accepted; the design doc, README, NOTICE, AGENTS.md,
the API list and the README pictures follow.

Refs #16
@github-actions github-actions Bot added level:L2 Read the diff risk:high Touches a path in .github/risk-paths.json (core ADR-0068) labels Nov 11, 2026
@bketelsen
bketelsen merged commit af08087 into main Nov 11, 2026
9 checks passed
@bketelsen
bketelsen deleted the feat/frostyard-themes branch November 11, 2026 23:31
bketelsen pushed a commit that referenced this pull request Nov 13, 2026
The Frostyard look's phases 1 to 5 all landed (frostui #18 and #19,
released in v0.5.0; frostyard/chairlift#295, frostyard/frostmail#277,
frostyard/frostnotes#202). Add a status line with that evidence, and
point its open "Later" items to #32, #33 and #34. The README and
store screenshots item landed in frostyard/chairlift#296,
frostyard/frostmail#281 and frostyard/frostnotes#204.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L2 Read the diff risk:high Touches a path in .github/risk-paths.json (core ADR-0068)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Theme: MyGo's default colors miss WCAG contrast in pills, the focus ring and accent text Rail: an Accent badge vanishes on the selected item

1 participant