Skip to content

feat: focus and quiet (focus, avatar-stack, countdown, expand-row, number-ticker, spring motion) - #63

Merged
zyx1121 merged 1 commit into
mainfrom
feat/focus-and-quiet
Oct 9, 2026
Merged

zyx1121 merged 1 commit into
mainfrom
feat/focus-and-quiet

Conversation

@zyx1121

@zyx1121 zyx1121 commented Oct 9, 2026

Copy link
Copy Markdown
Member

Loki chose the direction from the comparison page (https://claude.ai/artifact/5f3SP6BMTgiqKh6GTEwGfL): direction C (a living surface) set against A (quiet precision). Every app page gets one loud thing; the rest stays quiet.

DESIGN.md

  • New Focus and quiet section: one focus block per page, under the header; only it uses primary-colored text, the spring and rolling numbers. Pages with nothing pressing have no focus. Rows with more to say open in place.
  • Motion: adds duration-spring (500ms, 10% overshoot, as a CSS linear() curve), animate-rise (the focus rises on load) and stagger-rise (a list's rows rise 30ms apart, 200ms each). Reduced motion turns rising into fading and stops digits rolling.

New items

  • number-ticker (ui): digits roll to the new value; screen readers get the plain number.
  • focus (block): Focus, FocusLabel, FocusTitle, FocusHighlight, FocusMeta.
  • avatar-stack (block): overlapping 40px avatars that spread on hover or focus, names in tooltips, +N past max.
  • countdown (block): time left to the minute with rolling digits; SSR-safe through useSyncExternalStore.
  • expand-row (block): a list row opening in place on the spring (Base UI Collapsible), actions outside the toggle.

Each has a doc page and demo (demos use roles, not names).

Verified

On the sandbox: typecheck, lint, format, theme:check, tokens:check and shadcn build && next build pass. In Peck against the static build: /focus shows the countdown rolling (a stretch bug in the digit column was found and fixed), /expand-row opens in place.

🤖 Generated with Claude Code

…mber-ticker, spring motion

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zyx1121
zyx1121 merged commit ed6e1c3 into main Oct 9, 2026
2 checks passed
@zyx1121
zyx1121 deleted the feat/focus-and-quiet branch October 9, 2026 13:29
zyx1121 added a commit that referenced this pull request Oct 10, 2026
…smoke test (#70)

Two checks the zyx registry already runs:

- theme:check also fails when an @Utility or @Keyframes that a registry
  item ships is missing from app/globals.css, so the site cannot render an
  item differently from a project that installed it
- the smoke test adds every ui, component and block item from the built
  registry after the hand-written assertions; the seven items since #63
  (focus, avatar-stack, countdown, expand-row, number-ticker, chart,
  signature-pad) were never installed in CI

README lists those seven items and no longer says a combobox menu is as
wide as its trigger (#67).


Claude-Session: https://claude.ai/code/session_01DNMgVpzJEQhK39qSpfRJvU

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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