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

The console takes a look of its own, and signs in from a dialog

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:web/look

What changes

The console has a look of its own. All of it is in tokens.css and app.css, so every page takes it at once:

  • Colour: warm paper with soft, lifted cards, and one colour that acts, terracotta (--primary). Dark mode is warm too.
  • Type: headings in the system's rounded face, with a larger type scale. The console's CSP loads no fonts, so it's the system's own.
  • Controls: fields with a soft focus ring, and buttons with round ends. A button that undoes, removes or turns down is quiet: an outline, beside the one to press.
  • Lists: a component's list shows as rows with dividers, the forms acting on each beside it. Rules are numbered in the accent colour.
  • Sections: each part of a page is a card, through a new molecule, Section (heading and contents), on the group, settings and moderation pages. An empty state inside a card is said quietly.
  • A group's page: its banner across the top, its avatar over the banner's foot, then its name and handle. Settings and moderation are pill links.
  • Lists of groups: a card with each group's avatar, which changes colour on hover.
  • The header: sticky and blurred, with the wordmark.

Signing in is a dialog, as in knotless. The header's Sign in opens it over the dimmed page, as do the pages that ask someone to sign in. It has a word on what an Atmosphere account is, the handle, and Cancel or Continue. It's a popover (a new Dialog molecule, with SignInDialog in the header), so it opens and closes with no script; a small handler moves focus to the handle as it opens. It signs in through the host's /console/login as before, coming back to the page it was opened on. The e2e flows sign in through it.

AGENTS.md said the pages stay plain until the look comes; it now gives the look's rules. A page takes its look from the shared rules, never from styles of its own, and a button that undoes something is class="quiet".

Why

You asked for the console to look nicer, in a look of its own rather than knotless's or the prototype's. It is styled all at once, as AGENTS.md asks, rather than one page ahead of the rest.

How it was checked

I took screenshots of every page and the sign-in dialog in just dev, in light and dark, signed out and signed in, with a group given an avatar and a banner. All 24 e2e flows pass, and so do svelte-check and the layer check.

Shortcomings

  • No theme switch. The scheme follows the system's.
  • Wide tables untested. Nothing on the pages needs one yet, so the look hasn't been tried on one.

🤖 Generated with Claude Code

Asked for changes

This restyles the console through tokens.css and app.css. It adds the Section card molecule, marks undo, remove and turn-down buttons quiet, and gives the group page a banner and avatar. It also rewrites the AGENTS.md console rule. The layering, the token use and the quiet assignments look right. The Section import in web/src/routes/g/[handle]/+page.svelte is a molecule used from a page, which is allowed.

Two accessibility findings, one blocking:

  1. Keyboard focus is almost invisible on buttons, links and checkboxes. The global focus style is a 3px --primary-soft outline. In light mode that is #f8e3da on a #f6f1ea page, which is barely visible. Fields also get a --primary border, but nothing else does. Make the outline use --primary, or give buttons and links a solid ring.
  2. --faint in light mode is too pale for the footer. #8e8070 on #f6f1ea is about 3.4:1, and the footer sets it at 12px. The old value passed 4.5:1. Darken it a little. I'd run theme_check-style contrast over the new palette. Dark mode looks fine.

I did not read the Rust, docs, e2e or lexicon files in the diff (blobs.rs, console_login.rs, lib.rs, group_config.rs, groups.md, config.md, flows.spec.mjs, world.mjs, defs.json, settings/+page.server.ts). They belong to the base pull (pictures and visibility), which this pull builds on, and they are not part of the look.

web/src/app.cssline 15Outdated

These lines can no longer be read.

review.knotless.dev

This focus ring is --primary-soft, a pale wash on the paper background (#f8e3da on #f6f1ea), so buttons, links and checkboxes show almost no keyboard focus. Use --primary for the outline, or keep the soft ring and add a solid edge, as fields do.

web/src/tokens.cssline 32Outdated

These lines can no longer be read.

review.knotless.dev

--faint #8e8070 on --bg #f6f1ea is about 3.4:1, below 4.5:1 for the 12px footer text that uses it. Darken it.

Asked for changes

Since my last review the pull added a sign-in dialog. A Dialog molecule and a SignInDialog organism now sit behind a SignIn button, and the e2e signIn helper was updated to match. The dialog code looks sound. It is a popover with no script beyond the focus handler, and the layering and tokens are respected.

Neither of my two earlier findings has been addressed. The diff since my review does not touch either line:

  1. Focus ring: web/src/app.css:15 is still a --primary-soft outline, about #f8e3da on #f6f1ea. Keyboard focus on buttons, links and checkboxes is nearly invisible. The new Sign in, Cancel, Continue and close buttons depend on this rule too.
  2. --faint: it is still #8e8070 on #f6f1ea in light mode, about 3.4:1, for the 12px footer. It needs to reach 4.5:1.

Please fix both. The first is the blocking one.

web/src/app.cssline 15Outdated

These lines can no longer be read.

review.knotless.dev

Still --primary-soft, a pale wash on the paper. Use --primary for the outline, or add a solid edge.

chadtmiller.com

Fixed in 5b8e67d: :focus-visible is now a 2px solid outline of --primary, 2px off (4.7:1 on the paper; 7.6:1 in dark).

web/src/tokens.cssline 32Outdated

These lines can no longer be read.

review.knotless.dev

Light-mode --faint #8e8070 on #f6f1ea is about 3.4:1, below 4.5:1 for the 12px footer. Darken it.

chadtmiller.com

Fixed in 5b8e67d: light --faint is #6f6153, 5.3:1 on the paper and 5.9:1 on a card; --mute went a step darker (#5c5045) so the two still differ. Dark --faint is 5.0:1.

Approved

Both findings from my earlier rounds are fixed at 5b8e67d. web/src/app.css:15 now draws :focus-visible as a 2px solid --primary outline, offset 2px. Buttons, links and checkboxes, including the new dialog buttons, now show keyboard focus. Light-mode --faint in tokens.css is now #6f6153, which should clear 4.5:1 for the 12px footer. I took that ratio from the author's reply and did not compute it, and I did not recheck the dark values (#918271). I'm approving. I did not re-read the rest of the diff this round, only the two fixes.

Merged as f67d11d