Skip to content

feat: add colorful variant styling for toast notifications#38

Merged
j4rviscmd merged 1 commit intomainfrom
feat/colorful-toast
Mar 24, 2026
Merged

feat: add colorful variant styling for toast notifications#38
j4rviscmd merged 1 commit intomainfrom
feat/colorful-toast

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

  • Enable Sonner's richColors mode so each toast variant (success, error, warning, info) renders with a distinct background and border color
  • Map variant colors to dedicated OKLCH theme tokens (--success-muted, --error-muted, --warning-muted, --info-muted) that adapt to light/dark modes
  • Raise toast container z-index to 9999 to prevent overlap with the scroll-to-top button
  • Add documentation comments to sonner.tsx and index.css

Test plan

  • Verify toast.success() renders with a green-tinted background in both light and dark modes
  • Verify toast.error() renders with a red-tinted background in both light and dark modes
  • Verify toast notifications appear above the scroll-to-top button
  • Verify normal (default) toast styling remains unchanged

🤖 Generated with Claude Code

Enable Sonner's richColors mode and map each toast variant
(success, error, warning, info) to dedicated OKLCH theme tokens.
This ensures toast colors stay consistent with the design system
across light and dark modes. Also raises toast z-index to prevent
overlap with the scroll-to-top button.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 24, 2026
@j4rviscmd j4rviscmd merged commit 80330bc into main Mar 24, 2026
@j4rviscmd j4rviscmd deleted the feat/colorful-toast branch March 24, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant