Skip to content

Refresh the web UI with shadcn-style StyleX components - #45

Merged
srctl merged 4 commits into
mainfrom
claude/visual-refresh
Nov 19, 2026
Merged

srctl merged 4 commits into
mainfrom
claude/visual-refresh

Conversation

@srctl

@srctl srctl commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Requested by Scott · project thread

Summary

A visual pass to make the web UI feel more modern and clean, built on StyleX and shadcn components.

StyleX + shadcn approach: the repo already adapts shadcn's Base UI components by hand and swaps their Tailwind classes for StyleX (see docs/development.md). This PR keeps that approach and doesn't add Tailwind. The new components are locally owned copies of shadcn components with StyleX styles.

  • Tokens (styles/tokens.stylex.ts): new fonts, radii, and shadows vars. Shadows mix in the active foreground color, so they work with every custom theme. The --roost-* palette contract is unchanged; the only palette change is a slightly less yellow default light sidebar (#F2F2E9 → #F6F6F1).
  • Font: Inter is now bundled via @fontsource-variable/inter (5.3.0). Before this, the stack named Inter but fell back to Arial or the system font on machines that don't have Inter installed.
  • shadcn components (components/ui): Button gets variant (ghost stays the default, so the ~165 existing call sites look the same; adds default, secondary, outline, destructive) and size. New Card, Input (Base UI), and Badge.
  • Surfaces:
    • Sidebar: active row is a raised pill, tighter rhythm, Settings link has an icon.
    • Agent header: Chat/Note/Jobs/Dashboard tabs are now a segmented control.
    • Home: agents are shown as a card grid, with a primary "Create agent" button.
    • Composer: floating, rounded, with a focus ring and an accent send button.
    • Tool activity: status uses Badge.
    • Settings: Input-styled search, quieter nav, segmented appearance picker, theme cards with a selection ring, polished Switch.
    • Feed and Jobs: segmented filters and outline header actions.
    • Create agent: inputs and character cards restyled.

Light and dark both work, and so does mobile. Message text in the chat screenshots is blurred because they were taken against real data.

Screenshots (before → after)

Home

home

Chat

chat

Chat (dark)

chat dark

Chat (mobile)

chat mobile

Dashboard

dashboard

Feed

feed

Settings

settings

Settings (mobile)

settings mobile

Create agent

new

Testing

  • pnpm lint and pnpm --filter @roost/web typecheck are clean.
  • pnpm --filter @roost/web test: 429 passed, 0 failed.
  • Checked in Chrome against the dev server (light, dark, and 390px mobile).
  • Not run: the production build and the browser and mobile production suites.

🤖 Generated with Claude Code

Add shared font, radius, and shadow tokens, bundle Inter, and extend the
local shadcn set with Button variants and sizes, Card, Input, and Badge.
Apply them to the sidebar, agent header tabs, home, composer, tool
activity, settings, feed, and jobs filters. Before/after screenshots
are in docs/visual-refresh-evidence.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@srctl srctl self-assigned this Nov 19, 2026
exe.dev user and others added 3 commits November 19, 2026 18:46
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@srctl
srctl merged commit 126a606 into main Nov 19, 2026
2 checks passed
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