~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

The authorization pages in Monolith's look

Merged
Merged chadtmiller.com asked to merge into docs/landing from chadtmiller.com/monolith:web/monolith-look

The OAuth sign-in pages now share the landing page's and docs' look: its near-black and paper palette, Space Grotesk and JetBrains Mono, and square edges. Only the look changes; what each view shows and does stays as spec/OAUTH-PAGES.md says. This is stacked on the Monolith pull, so it all lands on main together.

Claude Opus 5.5 · high

What changes

Tokens (web/src/tokens.css), so every component changes together:

  • Dark: #050505 page, #0d0d0c card, #e8e8e4 text, #bdbdb7 and #8a8a84 for quieter text.
  • Light: #fafaf8 paper, #f3f3ef card, #111110 ink.
  • Primary button: the text colour itself, so it is the strongest thing on the page in either mode. Blue is gone; the only hue left is red, for errors.
  • Type and edges: --font-sans is Space Grotesk and --font-mono JetBrains Mono. A tracking scale (--tracking-mono, --tracking-wide, --tracking-tight) is new. Every radius but the avatars' round one is 0.

Fonts (web/src/app.css): both faces are served from the pages' own build, under /oauth/assets/, as the Content-Security-Policy's font-src 'self' and the spec's .woff2 asset type allow. Their OFL licences sit beside them in web/src/assets/fonts/.

Components:

  • Buttons are set in mono, in sentence case as the house rules ask; account rows stay in the text face.
  • The card's host line is quiet mono, like the landing page's nav, on no chip.
  • The heading is weight 500.
  • The tab icon is light ink on near-black.

Why

Monolith gets one look across the landing page, the docs and the screens people sign in on. Nothing in the spec fixes the palette, typefaces or corners ("Not compared: how the pages look"). It does fix following the browser's light or dark setting and 4.5:1 text contrast in both, so there is a light variant as well as the dark one.

How it was checked

  • harness/contrast.mjs: all 40 text-on-surface pairs at least 4.5:1, in light and dark.

  • harness/layers.mjs passes, and npm run check (svelte-check) reports 0 errors and 0 warnings.

  • just look: every view and state, in desktop light, phone dark, phone light and desktop dark:

    • sign-in, with and without a hint
    • wrong password, rate-limited, busy
    • the email code
    • choosing an account
    • consent: the default scope, a broad scope, and Technical details open
    • ended, and the error page

    No view is wider than the screen.

  • A fresh agent critiqued the pictures against the house rules. It found nothing the restyle introduced; what it raised already happens on main (below).

  • The --pages harness run is the gates workflow's, once this reaches main's pull.

Shortcomings

The critique's findings, all already true before this change and left for their own pulls:

  • Error page: no action, and it shows the raw protocol message, under a vague heading.
  • Pre-filled sign-in: the handle field looks disabled.
  • Ended: "Back" sits under "Go back to the app".
  • Rate-limited: the primary button stays live.
  • Consent: "What it asks for" is smaller than the items under it, and the handle is larger than elsewhere.
  • Desktop: the card hangs at the top of the screen.

Only the Latin subsets of the fonts are bundled. Other scripts fall back to the system fonts.

Review

The pictures. The diff is mostly tokens.css.

consent-desktop-dark.png

consent-desktop-light.png

sign-in-phone-dark.png

choose-phone-dark.png

wrong-password-desktop-light.png

email-code-desktop-dark.png

error-desktop-light.png

Approved

The pull restyles the OAuth pages to Monolith's look: new tokens for the palette, type and square edges, two bundled variable fonts with their OFL licences, and small changes to Button.svelte, Card.svelte and the tab icon. I found nothing that must change.

  • Spec and docs: only the look changes, and the pull says the spec leaves it open ("Not compared: how the pages look"). I did not open the spec to confirm that. No spec/ or docs/ change is needed.
  • Fonts: both faces are served from the pages' own build, which fits font-src 'self'. I did not run the build, so I did not check that Vite emits them as files under /oauth/assets/. Small assets can be inlined as data: URIs, which that policy would block. Both Latin subsets should be well over Vite's inline limit. Confirm in the gates run that the font requests succeed.
  • Contrast: the new --faint and --mute values look fine in both modes. The author's harness/contrast.mjs run covers this.
  • Harness, server code and conformance.yaml: untouched.
Approved

Carried forward: the change this pull makes at d10632408c56a50bd00d45c98a2f0dacedbd9eef is the one reviewed at 874d7457d94e7312b60ca68a192df46174f62899, so that review stands. What is new comes from its base.

Approved

Carried forward: the change this pull makes at dfd089659840e3ff2fd42c6fa3a97581759e8ece is the one reviewed at d10632408c56a50bd00d45c98a2f0dacedbd9eef, so that review stands. What is new comes from its base.

Approved

Carried forward: the change this pull makes at 0474995bbdb4ee8e7d2f86dc2c628b8a44bd9149 is the one reviewed at dfd089659840e3ff2fd42c6fa3a97581759e8ece, so that review stands. What is new comes from its base.

Approved

Carried forward: the change this pull makes at 3078d512c39f979041f54479589fa2504046dce2 is the one reviewed at 0474995bbdb4ee8e7d2f86dc2c628b8a44bd9149, so that review stands. What is new comes from its base.

Merged as 2330319