|
| 1 | +# Modern Web UI Follow-Up |
| 2 | + |
| 3 | +Date: 2026-05-24 |
| 4 | + |
| 5 | +Source audit: `/Users/afo/Documents/Codex/2026-05-23/i-m-watching-this-great-video/modern-css-web-ui-audit.md` |
| 6 | + |
| 7 | +## Summary |
| 8 | + |
| 9 | +The active `public-website-design-implementation` hub remains the correct owner for Greenpill Network's modern CSS/Web UI follow-up. The website already has the strongest written CSS contract among the audited repos: token-only styling, container queries, dynamic viewport units, touch target rules, reduced-motion handling, and UI verification. |
| 10 | + |
| 11 | +This report does not create a competing plan hub and does not authorize runtime changes ahead of the current P0 public map/design work. |
| 12 | + |
| 13 | +## Production Posture |
| 14 | + |
| 15 | +Already aligned with the Web UI audit: |
| 16 | + |
| 17 | +- `packages/website/src/styles/gp-tokens.css` owns cascade layers, tokens, fluid type, reduced motion, and base behavior. |
| 18 | +- `packages/website/DESIGN.md` and `packages/website/CLAUDE.md` define token-only CSS, container-query use, 44px targets, dynamic viewport units, and visual proof expectations. |
| 19 | +- `GpLayout.astro` gives page content a query-container root. |
| 20 | +- `bun run ui:verify` provides multi-width UI proof for the public site. |
| 21 | + |
| 22 | +## Follow-Up Candidates |
| 23 | + |
| 24 | +Progressive candidates: |
| 25 | + |
| 26 | +- Add `<meta name="text-scale" content="scale">` only after auditing root font-size assumptions and proving large text at 375, 1024, and 1440 widths. |
| 27 | +- Add Astro MPA View Transitions via `@view-transition { navigation: auto; }` only as progressive enhancement with reduced-motion fallback. |
| 28 | +- Use CSS scroll spy for long story, library, garden, or chapter pages with in-page navigation. |
| 29 | +- Use scroll-state queries for sticky header reveal/hide behavior only if it reduces noise without hiding orientation. |
| 30 | +- Add `closedby="any"` to simple dialogs such as HomeMap add-node only with existing escape/click fallback behavior preserved. |
| 31 | +- Review `packages/website/src/scripts/parallax.ts` against the current `GpLayout.astro` CSS-only background approach and remove or realign stale JS only through a future implementation lane. |
| 32 | + |
| 33 | +Research-only candidates: |
| 34 | + |
| 35 | +- overscroll gestures, HTML-in-Canvas, CSS `@function`, CSS `if()`, broad style-query architecture, `corner-shape`, `shape()`, `border-shape`, and `fit-text`. |
| 36 | + |
| 37 | +## Guardrails |
| 38 | + |
| 39 | +- Do not reintroduce fake map density, fake counts, or decorative-only network complexity. |
| 40 | +- Do not use modern CSS primitives to bypass the existing `DESIGN.md` standard. |
| 41 | +- Do not make Chromium-first features required for core content access. |
| 42 | +- Keep browser proof multi-width and reduced-motion aware. |
0 commit comments