Skip to content

Message box at rest: a hairline ring and shadow-xs, the glow unchanged - #2759

Open
samjulien wants to merge 1 commit into
mainfrom
claude/message-box-ring
Open

samjulien wants to merge 1 commit into
mainfrom
claude/message-box-ring

Conversation

@samjulien

@samjulien samjulien commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

@guidovizoso, this is a design-system change for you to review: the message box at rest.

One concern: the message box at rest

The message box at rest was a flat card with a 1px border. It is now a card with a hairline ring of border and shadow-xs under it, so it sits a little above the page, as the audit asked (ChatGPT, Claude and Grok Bot all give the box a soft shadow at rest).

  • At rest: border-transparent shadow-xs ring-1 ring-border. The ring is a line at the same strength as every other line. The border stays, transparent, so the glow has a border to tint.
  • While typing: your glow from A sharper look: one radius, visible lines, Linear's shadows, slate greys and Home's orb #2124 is unchanged. It is the same five classes (border-ring/60, ring-4, ring-ring/15, shadow-lg, shadow-ring/20), and each one replaces its resting value, so the result while typing is the same as before.
  • Why not a softer shadow-lg/5: shadow-ring/20 is multiplied by --tw-shadow-alpha. An opacity set at rest would stay set while typing and would turn the glow down to about a twentieth of its strength. shadow-xs sets no opacity.

Nothing else changes: no token, no primitive, no other screen.

The rules and the test

  • docs/app-guidelines.md, The look, rule 8: the message box at rest is a card with a hairline ring and shadow-xs. Rule 5 lists the message box at rest with shadow-xs.
  • app/tests/message-box-frame.test.ts (the test that holds rule 8): the resting classes, no opacity on the resting shadow, and the glow's exact classes.
  • app/tests/ui-look-guard.test.ts: the note on why the guard skips frame.ts now names that test.

Screenshots

OpenBot Desktop workbench, 1280 × 820, cropped to the box.

Before After
Home, light, at rest before after
Home, light, typing before after
Home, dark, at rest before after
Home, dark, typing before after
Conversation, light, at rest before after
Conversation, light, typing before after
Conversation, dark, at rest before after
Conversation, dark, typing before after

Checks

  • bun run typecheck, bun run lint, bun run format:check
  • bun test on message-box-frame, ui-look-guard, ui-look-theme, ui-primitives-look, design-tokens, color-scheme, skins: 89 pass
  • bun test app/tests/composer-*: 140 pass

Split out of the Home and message box PR (#2758), which leaves the box's frame alone.

Changelog

Conversations.

  • The message box sits a little above the page at rest: a hairline ring and a soft shadow in place of its border. Its glow while you type is unchanged.

The message box at rest was a flat card with a 1px border. It is now a
card with a hairline ring of `border` and `shadow-xs` under it, so it
sits a little above the page. Its border stays, transparent, so the
typing glow has a border to tint. The glow while typing is the same
five classes as before.

The resting shadow takes no opacity of its own: `shadow-ring/20`, the
glow's shadow color, is multiplied by `--tw-shadow-alpha`, so a
`shadow-lg/5` at rest would all but put the glow out.

docs/app-guidelines.md, The look: rule 8 says what the box is at rest,
and rule 5 lists the box with `shadow-xs`. message-box-frame.test.ts
holds the resting classes and the glow's exact classes.

This branch has not been deployed

No deployments
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