feat(tokens): badge and banner token updates#341
feat(tokens): badge and banner token updates#341najlaskr wants to merge 10 commits intocloudflare:mainfrom
Conversation
commit: |
Docs PreviewCommit: |
|
/bonk review pls |
|
Now let me check the visual regression report more closely and understand what's happening with the unrelated Button and Dialog changes: |
|
/bonk review ignore visual regressions and just look at the code |
|
UnknownError: ProviderInitError |
|
@stritt Bonk workflow failed. Check the logs for details. View workflow run · To retry, trigger Bonk again. |
|
/bonk review this code please |
Code Review: Badge and Banner Token UpdatesThis is a well-structured PR that successfully reworks the Badge component to use semantic-first tokens while preserving color variants for product-specific use cases. The Banner background/border adjustments are a thoughtful compensation for the token color changes. Overall Assessment✅ Approachable with minor fixes Issues Found1. Inconsistent token reference in theme-kumo.cssIn
This should be 2. Outdated documentation exampleIn return <Badge variant="neutral">New</Badge>;Since return <Badge variant="secondary">New</Badge>;3. Unnecessary type workaround in BadgeDemo.tsxIn
Consider removing this workaround and using the Badge component directly. 4. JSDoc mentions non-existent variantsIn
Please update the documentation comment to match the actual available variants. SummaryThe architectural changes are solid. These are minor cleanup items that should be addressed before merging. |
|
I've completed my review of PR #341 and posted my findings as a comment. SummaryOverall Assessment: ✅ Approvable with minor fixes The PR successfully reworks the Badge component to use semantic-first tokens ( Issues Identified:
These are all minor cleanup items—the architectural changes are solid and the implementation follows the project's conventions well. |
Issue #1: this is intentional since we don't need to create a new token that has the exact same values as the tailwind token so keeping it as is. |





































































Summary
Reworks the
Badgecomponent colour variants to be semantic-first and updates theBannerbackgrounds to align with new colour tokens.Changes
Badgesdocs with markdown styling to reflect the new semantic-first structure