From e5362d56fc451daf316a2e4427094af7a01b8a52 Mon Sep 17 00:00:00 2001 From: jamey Date: Fri, 20 Feb 2026 17:14:01 +0000 Subject: [PATCH] add admin font loading plan doc Documents the missing @font-face and font-family on admin/setup pages, the cache miss path resolver bug, and options for fixing. Co-Authored-By: Claude Opus 4.6 --- PROGRESS.md | 4 +- docs/plans/admin-font-loading.md | 70 ++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 docs/plans/admin-font-loading.md diff --git a/PROGRESS.md b/PROGRESS.md index 343bf37..1e0288e 100644 --- a/PROGRESS.md +++ b/PROGRESS.md @@ -27,7 +27,7 @@ Ordered by dependency level — admin shell chain first (unblocks most downstream work). -Plans: [admin-redesign.md](docs/plans/admin-redesign.md) | [setup-wizard.md](docs/plans/setup-wizard.md) | [setup-and-launch.md](docs/plans/setup-and-launch.md) | [search.md](docs/plans/search.md) | [products-refactor.md](/home/jamey/.claude/plans/snug-roaming-zebra.md) | [shipping-sync.md](docs/plans/shipping-sync.md) | [printful-integration.md](docs/plans/printful-integration.md) | [provider-strategy.md](docs/plans/provider-strategy.md) | [css-migration.md](docs/plans/css-migration.md) +Plans: [admin-redesign.md](docs/plans/admin-redesign.md) | [admin-font-loading.md](docs/plans/admin-font-loading.md) | [setup-wizard.md](docs/plans/setup-wizard.md) | [setup-and-launch.md](docs/plans/setup-and-launch.md) | [search.md](docs/plans/search.md) | [products-refactor.md](/home/jamey/.claude/plans/snug-roaming-zebra.md) | [shipping-sync.md](docs/plans/shipping-sync.md) | [printful-integration.md](docs/plans/printful-integration.md) | [provider-strategy.md](docs/plans/provider-strategy.md) | [css-migration.md](docs/plans/css-migration.md) | # | Task | Depends on | Est | Status | |---|------|------------|-----|--------| @@ -79,6 +79,8 @@ Plans: [admin-redesign.md](docs/plans/admin-redesign.md) | [setup-wizard.md](doc | ~~38~~ | ~~Phase 6: Replace DaisyUI (admin)~~ | 37 | 3h | done | | ~~39~~ | ~~Phase 7: Remove Tailwind entirely~~ | 38 | 1.5h | done | | 40 | Phase 8: Optimisation + modern enhancements | 39 | 2.5h | | +| | **Bugs / polish** | | | | +| 49 | Admin font loading + cache miss path resolver ([plan](docs/plans/admin-font-loading.md)) | — | 1h | | **Total remaining: ~7 hours across ~3-4 sessions** (Printful tests, CSS optimisation) diff --git a/docs/plans/admin-font-loading.md b/docs/plans/admin-font-loading.md new file mode 100644 index 0000000..36ed4f6 --- /dev/null +++ b/docs/plans/admin-font-loading.md @@ -0,0 +1,70 @@ +# Admin font loading + +Status: Open — needs discussion + +## Problem + +Custom fonts don't load on admin or setup pages. The setup page at `/setup` renders in the browser's default serif font on production. + +### Root cause + +The admin CSS (`admin.css`) has **no `@font-face` declarations** and **no `font-family` on body/root**. Font family CSS variables are defined in `theme-primitives.css` (e.g. `--p-font-inter: 'Inter', system-ui, sans-serif`) but the actual woff2 font files are only loaded via `@font-face` rules generated at runtime by `CSSGenerator` for shop pages (injected into `