Skip to content

feat(themes): serve Roboto and Barlow locally - #8524

Closed
somethingwithproof wants to merge 2 commits into
feature/theme-token-skinsfrom
feature/theme-local-fonts
Closed

somethingwithproof wants to merge 2 commits into
feature/theme-token-skinsfrom
feature/theme-local-fonts

Conversation

@somethingwithproof

@somethingwithproof somethingwithproof commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Stacked on #8523; merge that first.

Midwinter names Roboto and Roboto Mono first in its font stack but never shipped them, so it only rendered in Roboto where the font happened to be installed. This bundles Roboto and Roboto Mono for Midwinter and every child, plus Barlow for Daybreak, as woff2 under include/fonts/<family>/. Each folder carries its SIL Open Font License, and the files come unmodified from the Fontsource 5.3.0 packages, Latin and Latin Extended subsets only (about 200 KiB in total). Faces use font-display: swap, and no request leaves the Cacti host, so air-gapped installs and the existing CSP are unaffected.

Coverage note: the theme job's changed CSS line gate will report the @font-face and @import lines as uncovered. Chromium's CSS coverage only records style-rule usage and never marks those at-rules as used, even when the face loads. The palette spec instead asserts that every shipped weight loads in both subsets from include/fonts/ and that no font request goes anywhere else; deleting a single woff2 file makes it fail.

Validation: palette, theme correctness and cleanup specs pass (108), headless Chrome resolves each theme's sans and mono stacks to the bundled faces, and every @import cache hash matches its file.

🤖 Generated with Claude Code

Midwinter named Roboto but never shipped it, so it only rendered where the font was installed; the OFL woff2 files (Latin and Latin Extended, from Fontsource 5.3.0) now load from include/fonts with no third-party request.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof
somethingwithproof requested a review from a team as a code owner October 26, 2026 23:44
@somethingwithproof
somethingwithproof requested review from TheWitness and removed request for a team October 26, 2026 23:44
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

@TheWitness TheWitness closed this Oct 26, 2026
@TheWitness
TheWitness deleted the feature/theme-local-fonts branch October 26, 2026 23:48
somethingwithproof added a commit that referenced this pull request Oct 26, 2026
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
somethingwithproof added a commit that referenced this pull request Oct 27, 2026
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
@somethingwithproof somethingwithproof changed the title feat(themes): serve Roboto, IBM Plex and Barlow locally feat(themes): serve Roboto and Barlow locally Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants