Skip to content

Match HTML first paint to the plastic lobby HUD - #11

Merged
devteapot merged 4 commits into
mainfrom
cursor/plastic-html-first-paint-f60b
Aug 26, 2026
Merged

Match HTML first paint to the plastic lobby HUD#11
devteapot merged 4 commits into
mainfrom
cursor/plastic-html-first-paint-f60b

Conversation

@devteapot

@devteapot devteapot commented Aug 26, 2026

Copy link
Copy Markdown
Owner

The wasm client is already the plastic pass from #10, but opening the site still flashes teal-on-black. This is HTML/CSS first paint only — same JS, API, and copy. Same plastic as the hex tiles, not a new palette.

What changed

  • deployment/vercel/index.html — production lobby (https://of.carlid.dev) restyled to the Bevy lobby palette in crates/game-client/src/lobby.rs: purple scrim/card, pink line, cream text, cyan accent.
  • Chrome is rounded like the tiles: --r-panel: 24px on .panel, --r-chip: 16px on inputs/selects/rows/empty, --r-pill: 999px on CREATE / JOIN / LEAVE. Top-left cream gloss, bottom purple shade.
  • Buttons keep cyan type on field-purple fill with that inset — not a flat outline. Disabled stays muted cream (no mint wash).
  • Loading is a pill chip, not raw text on the void: lobby empty/loading states and Loading WebGPU client….
  • crates/game-client/web/index.html — wasm splash uses the same purple/plastic first paint.

No gameplay, hover, strip, fillet, lip, or mobilization changes. Production JS is unchanged; the lobby-row shot is a screenshot stub so GitHub can show JOIN/LEAVE.

Palette (from lobby.rs)

Token Bevy CSS
SCRIM srgba(0.10, 0.04, 0.18, 0.88) #1a0a2e
CARD srgba(0.14, 0.05, 0.24, 0.985) rgba(36, 13, 61, .985)
FIELD srgb(0.22, 0.08, 0.32) #381452
LINE srgba(1.0, 0.42, 0.78, 0.58) rgba(255, 107, 199, .58)
TEXT srgb(1.0, 0.97, 0.92) #fff7eb
MUTED srgb(0.92, 0.78, 0.98) #ebc7fa
CYAN srgb(0.22, 0.98, 0.92) #38faeb
ACTIVE srgb(0.22, 0.12, 0.42) #381f6b
DISABLED srgb(0.12, 0.08, 0.14) #1f1424

How to tell it’s done

Opening the lobby HTML without WebGPU still reads as the plastic identity, not teal-on-black. Chrome is round with a top-left gloss. A lobby row shows LEAVE + disabled JOIN (muted, not mint) and an open JOIN stays cyan.

Production lobby HTML with rounded plastic chrome

WebGPU loading splash as a pill chip

Open in Web Open in Cursor 

The production lobby and wasm splash were still teal-on-black, so opening
of.carlid.dev or waiting for WebGPU flashed the old identity. Same purple
scrim/card, pink line, cream text, and cyan accent as lobby.rs. No JS,
API, or copy changes.

Co-authored-by: Diego Carlino <devteapot@users.noreply.github.com>
@devteapot
devteapot marked this pull request as ready for review August 26, 2026 16:32
cursoragent and others added 3 commits August 26, 2026 16:33
Lobby and wasm splash belong in docs/playtests/screenshots/ so the PR
can render the plastic identity from github.com.

Co-authored-by: Diego Carlino <devteapot@users.noreply.github.com>
Disabled JOIN was still mint because opacity left the cyan label on.
Muted purple/cream now; CREATE, LEAVE, and JOIN stay cyan when they
are live. The GitHub shot shows a row so the disabled styling can be
reviewed.

Co-authored-by: Diego Carlino <devteapot@users.noreply.github.com>
Same plastic as the tiles: 24 on the panel, 16 on chips, pills on
CREATE/JOIN/LEAVE, and the loading copy sits in a chip instead of
on the void. Cream highlight on the top lip, purple shade underneath.
Disabled stays muted cream.

Co-authored-by: Diego Carlino <devteapot@users.noreply.github.com>
@devteapot
devteapot merged commit f186bfa into main Aug 26, 2026
2 checks passed
@devteapot
devteapot deleted the cursor/plastic-html-first-paint-f60b branch August 26, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants