Skip to content

Implement pixel/CRT identity and responsive design for PixelChat - #2

Merged
ZeroElemental merged 4 commits into
mainfrom
dev
Aug 27, 2026
Merged

ZeroElemental merged 4 commits into
mainfrom
dev

Conversation

@ZeroElemental

Copy link
Copy Markdown
Owner

This pull request introduces a comprehensive visual and structural redesign across the application, focusing on a distinctive "pixel UI" style. The changes unify the look and feel with square corners, pixel fonts, themed colors, and animated backgrounds, while also improving mobile usability and accessibility.

The app was still wearing the shadcn scaffold: untouched oklch neutrals, no
font loaded at all, and a landing page of one heading and two buttons. Nothing
connected the interface to the name.

Drive the look from tokens so it propagates instead of being painted on:

- Load Silkscreen (identity), IBM Plex Sans (body) and IBM Plex Mono. The pixel
  face is reserved for the wordmark, headings and control labels -- it stops
  being readable at body sizes and at length.
- Repalette both themes: paper-and-ink light, phosphor-on-CRT dark. Set
  --radius to 0, which squares every shadcn primitive from one line, and add
  offset zero-blur shadow tokens.
- Add --link, because the bright phosphor green fails as text on a pale ground
  (2.0:1) even though it passes as a button fill with dark text (9.5:1).
- Add --presence, replacing the one hardcoded bg-green-500.
- Drop the --chart-* and --sidebar-* tokens; nothing referenced them.

Buttons, cards and inputs take 2px borders and hard shadows, and buttons shift
into their shadow on :active so a press reads as physical.

Focus rings needed outline-solid spelled out: Tailwind's outline-2 sets only
the width, so with the base outline-none the ring was computing to
outline-style: none and rendering nothing at all.

Both themes now pass AA throughout -- 5.03:1 light, 10.5:1 dark.
Square everything that rounded-full kept circular -- avatars, the presence
dot, the unread badge, the friend-request dot. Those five were the only
elements the --radius change could not reach, since rounded-full is a literal
9999px rather than a token.

Message bubbles were already square by inheritance, so they take borders and a
hard shadow instead. Timestamps and the unread count move to the mono face.
Structural edges (sidebar, thread header, composer) go to 2px so they read as
deliberate rather than hairline.

Sidebar rows get a transparent 2px border that fills in on hover, which avoids
the row shifting when the border appears. Buttons and inputs gain restrained
hover feedback: buttons lift a pixel into a deeper shadow before sinking into
it on press, fields brighten their border.

Dialogs match cards -- 2px border, hard shadow, Silkscreen title.

Message timestamps were failing AA at opacity-60 (3.96:1 light, 4.29:1 dark);
at opacity-80 they clear it. Verified from a clean page load per theme rather
than by toggling the dark class, because toggling reads ancestor backgrounds
one step stale and reports failures that are not real -- the sidebar preview
measures 6.22:1, not the 1.91:1 an in-place toggle claimed.
Two things the redesign left broken.

Tailwind v4 dropped the opinionated cursor: pointer on buttons, so every
control was showing the plain arrow. A single base rule restores it for
buttons, role="button" and labels -- that reaches the Radix triggers too,
which spraying cursor-pointer across components would have missed -- and
disabled buttons get not-allowed.

The chat was unusable below about 700px: a fixed 288px rail against a 390px
viewport left roughly 100px for messages, so the thread was squeezed off
screen. Below md the shell now shows one pane at a time -- the conversation
list, or the open thread with a back arrow -- and both panes side by side from
md up. Verified at 390 (no horizontal overflow, composer intact) and at 1280
(288 + 992, back arrow hidden).

h-screen becomes h-dvh so mobile browser chrome cannot clip the composer.
Pics/ holds screenshots used to report UI issues; they are local scratch and
should never reach the remote. Also covers the Playwright output directory and
the capture files this branch generated while checking each surface.
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
pixel-chat Ready Ready Preview Aug 27, 2026 6:03pm
pixelchat-app Ready Ready Preview Aug 27, 2026 6:03pm

@ZeroElemental
ZeroElemental merged commit 9f46e1f into main Aug 27, 2026
5 checks passed

This branch was successfully deployed

2 active deployments
Preview – pixel-chat — 9a53e05f Deployed Aug 27, 2026 by vercel[bot]
Preview – pixelchat-app — 9a53e05f Deployed Aug 27, 2026 by vercel[bot]
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.

1 participant