Repository navigation
Implement pixel/CRT identity and responsive design for PixelChat - #2
Merged
Merged
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.