One bar component everywhere: the mockup's glass morph, shared by tabs, tools, text bar, block bar, sheets and toasts #269

Closed
opened 2026-10-14 12:27:04 +00:00 by kayg · 1 comment
Owner

kayg: "every time I looked at the tab bar / formatting toolbar / block toolbar, I always kept thinking why is it not in production yet." Production's bar must look and move like the mockup's glassy bar morph.

Requirement: everything that lives in the bar area is one component in code, shared, with one set of glass, opacity, blur and spring values. That covers:

  • the tabs;
  • the note tools;
  • the text formatting bar;
  • the block bar;
  • the sheets that grow out of it;
  • the in-bar toasts;
  • the ask prompt.

Every surface then looks right automatically.

Built the plugin way: each mode is a small registered "bar mode" with its content, label and actions. The shell picks the mode by context (#268's rule). New modes (multi-select #212, block toolbar #256) plug in without touching the shell. One home for the tokens, in packages/ui, shared by the mockup and the app, with no copies.

Evidence:

  • a side-by-side of mockup and production at 390 and 1440, light and dark, in every mode;
  • frame strips of the morph;
  • no change to the #268 focus behaviour.
kayg: "every time I looked at the tab bar / formatting toolbar / block toolbar, I always kept thinking why is it not in production yet." Production's bar must look and move like the mockup's glassy bar morph. **Requirement:** everything that lives in the bar area is **one component in code**, shared, with one set of glass, opacity, blur and spring values. That covers: - the tabs; - the note tools; - the text formatting bar; - the block bar; - the sheets that grow out of it; - the in-bar toasts; - the ask prompt. Every surface then looks right automatically. **Built the plugin way:** each mode is a small registered "bar mode" with its content, label and actions. The shell picks the mode by context (#268's rule). New modes (multi-select #212, block toolbar #256) plug in without touching the shell. One home for the tokens, in packages/ui, shared by the mockup and the app, with no copies. **Evidence:** - a side-by-side of mockup and production at 390 and 1440, light and dark, in every mode; - frame strips of the morph; - no change to the #268 focus behaviour.
Author
Owner

PR #283 is built on #280 (#268).

Side by side: the mockup on preview.calternal.cloud (left) and this PR (right), at 390 and 1440, light and dark. Each row is the same step in both apps: just opened, a word selected, Esc, then the kind pill opening Style. Each app shows the mode its rules give for that step, so a row's two halves aren't always the same mode. The capsule's glass, edge, blur and spring are the same in both: they were already one Morph and one set of tokens. This PR makes the rest of the bar one component too.
chromium-390-light-side-by-side.png
chromium-390-dark-side-by-side.png
chromium-1440-light-side-by-side.png
chromium-1440-dark-side-by-side.png

Frame strips of the shared bar morphing. First tabs → tools → text bar → Style, then tools → toast → Undo → Undone → back.
chromium-strip.png
chromium-toast-strip.png

The #268 focus behaviour is unchanged. e2e/bar-focus.spec.ts passes on this branch at 390 and 430, in Chromium and WebKit.

PR #283 is built on #280 (#268). **Side by side:** the mockup on preview.calternal.cloud (left) and this PR (right), at 390 and 1440, light and dark. Each row is the same step in both apps: just opened, a word selected, Esc, then the kind pill opening Style. Each app shows the mode its rules give for that step, so a row's two halves aren't always the same mode. The capsule's glass, edge, blur and spring are the same in both: they were already one Morph and one set of tokens. This PR makes the rest of the bar one component too. ![chromium-390-light-side-by-side.png](https://git.kayg.org/attachments/0fd3dfe2-63c2-4180-86e5-114be9f367c9) ![chromium-390-dark-side-by-side.png](https://git.kayg.org/attachments/2c0d6bba-8905-48ca-8393-7bf990cdfdee) ![chromium-1440-light-side-by-side.png](https://git.kayg.org/attachments/0ff01527-6e7f-4be0-94e1-eba2ad2fef05) ![chromium-1440-dark-side-by-side.png](https://git.kayg.org/attachments/07caf4dd-4e93-46d2-975f-0a26cb3f7a82) **Frame strips** of the shared bar morphing. First tabs → tools → text bar → Style, then tools → toast → Undo → Undone → back. ![chromium-strip.png](https://git.kayg.org/attachments/3f001846-bd65-48a1-8cfd-021d7ffc3991) ![chromium-toast-strip.png](https://git.kayg.org/attachments/27b9b7e1-7f5e-455d-9fc1-ae75b0cde328) The #268 focus behaviour is unchanged. `e2e/bar-focus.spec.ts` passes on this branch at 390 and 430, in Chromium and WebKit.
kayg closed this issue 2026-10-14 17:39:31 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#269
No description provided.