Repository navigation
feat: draw the Frostyard themes in Inter, with text that follows the desktop (ADR-0011) - #18
Merged
Merged
Conversation
…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
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 1 of the Frostyard look: the kit's own themes, colors and text, per ADR-0011, which this PR marks Accepted.
Themes.
Adaptsets 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.
ThemeColorsandColorsOf(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.ColorsOffinds them by the theme'sDarkandBackground, which preferences andSoftSelectiondon't change. For any other theme it derives the old surfaces.Chrome,PanelandToneFillread it;ToneLineis new.Font. Inter 4.001 (upright and italic variable, OFL-1.1, taken unchanged from Debian's
fonts-inter-variable4.1+ds-1) is embedded underfonts/withOFL.txt, listed inNOTICE, and registered on the firstAdapt, never at init. Each app binary grows by about 1.8 MB.Text. The text styles scale with the theme's
FontSizethroughTextSize, so the desktop's text size reaches them.Labeldraws 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:
SelectionScrollbarAccentTexton the light accentfrostyard_test.gochecks 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
TEMPLATE.md(the spec)docs/README.mdVerification
make verifygreenmake ci BASE=origin/maingreen: 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.TestFrostyardContrastpasses for both themes, with and without high contrast. The weakest pair is 4.64:1 (Frostyard light, muted text on the pressed face).TestAdaptRegistersIntershows 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 snapshotdraws the three examples in both themes in Inter; the light ones replacedocs/images/.