Skip to content

feat: publish sonner toasts - #27

Merged
zyx1121 merged 1 commit into
mainfrom
feat/sonner
Oct 7, 2026
Merged

zyx1121 merged 1 commit into
mainfrom
feat/sonner

Conversation

@zyx1121

@zyx1121 zyx1121 commented Oct 7, 2026

Copy link
Copy Markdown
Member

Summary

Portal calls toast 434 times (error 252, success 150, warning 13, loading 8, message 7, info 4).

  • sonner: unstyled: true plus token classes instead of the stock inline style (which tokens:check rejects). Frosted surface like the other overlays, p-6 + rounded-surface around 40px action / cancel buttons, medium title, muted description. Icons: success text-success, error text-destructive, warning text-warning, info / loading muted. No next-themes dependency.
  • Site: <Toaster /> in the layout; a 通知 section fires success, error (with a 重試 action), warning and message toasts.

Test plan

  • Sandbox: all checks, compose healthy
  • Chromium light and dark: toast radius 40px, transparent with blur(12px), 24px padding; 重試 button 40px; two toasts stack; no console errors
  • CI green

🤖 Generated with Claude Code

Unstyled sonner styled with the tokens only (the stock wrapper sets
colors through an inline style): frosted surface, p-6 and
rounded-surface around 40px action / cancel buttons, title in medium
weight, description muted, and status icons in success, destructive,
warning and muted. The site mounts a Toaster and shows four kinds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zyx1121
zyx1121 merged commit 8913216 into main Oct 7, 2026
2 checks passed
@zyx1121
zyx1121 deleted the feat/sonner branch October 7, 2026 07:17
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