fix(theme): self-host DM Mono — the site loaded it nowhere #133
No reviewers
Labels
No labels
priority
P1
priority
P2
priority
P3
priority
P4
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Toilville/toilville-design!133
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/rituals-hero-and-contact"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every mono label on toilville.com names 'DM Mono' — eyebrows, breadcrumbs,
form labels, the footer, fourteen blocks in all — and nothing loaded it:
theme.json declared the family with no fontFace, and neither theme nor plugin
enqueues fonts. Production would have shown Courier New throughout.
Nobody saw it because the preview harness pulled Sora and DM Mono from Google
Fonts, so every render showed the real face. The harness now loads exactly what
the theme loads — @font-face rules built from theme.json's fontFace entries,
served from the theme's own files — so a preview can no longer flatter
production. A family with no fontFace gets none there either.
DM Mono 300/400/500 are vendored from google/fonts (SIL OFL 1.1, licence
alongside), named like the theme's Sora files. This implements the brand's
existing typography spec — DM Mono is the documented mono face — rather than
choosing a new one. (An earlier commit of mine declared the family without a
face on the theory that it only served five footer labels; the gate below found
fourteen blocks.)
New gate: every web font a block's CSS names must be loaded by a theme.json
fontFace, and every fontFace must point at a file that exists. Verified red:
without the faces it lists 'dm mono' against all fourteen blocks.
Scope
Testing
Impact Statement
Docs
Pull request closed