feat(toast): add success and info variants with semantic token styling#199
Merged
mattrothenberg merged 5 commits intocloudflare:mainfrom Mar 19, 2026
Merged
Conversation
Add success (green, CheckCircleIcon) and info (blue, InfoIcon) toast variants. Migrate existing error/warning variants from raw light-dark() CSS to semantic tokens (text-kumo-danger, text-kumo-warning). All status variants now have a colored left border accent and subtle tinted background for better visual distinction. Update docs page and demos accordingly.
commit: |
Contributor
Docs PreviewCommit: |
Contributor
mattrothenberg
requested changes
Mar 10, 2026
awhobbs87
commented
Mar 10, 2026
Contributor
Author
There was a problem hiding this comment.
Fixed both:
-
Border color: Replaced
border-kumo-fillwith the variant color (border-kumo-success,border-kumo-danger, etc.) so the border matches the variant instead of using gray. -
Extra left spacing: Removed the
border-l-[3px]left accent entirely. All sides now use a uniform 1px border from the baseborderclass, which eliminates the asymmetric thicker-left-border look.
Collaborator
|
@awhobbs87 could you resolve the conflict and then we can merge? thanks! |
mattrothenberg
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






























































Summary
success(green, CheckCircleIcon) andinfo(blue, InfoIcon) toast variantserror/warningvariants from rawlight-dark()CSS to semantic tokens (text-kumo-danger,text-kumo-warning) for consistent themingVariants
defaulttext-kumo-defaultsuccesstext-kumo-successerrortext-kumo-dangerwarningtext-kumo-warninginfotext-kumo-infoFiles changed
packages/kumo/src/components/toast/toast.tsx— new variants, semantic tokens, tinted backgroundspackages/kumo-docs-astro/src/components/demos/ToastDemo.tsx— updated success demo, added info demopackages/kumo-docs-astro/src/pages/components/toast.astro— new doc sections, updated API tablepackages/kumo/ai/*— auto-generated registry/schema updates from build