feat(tokens): updated color docs and ring#355
feat(tokens): updated color docs and ring#355najlaskr wants to merge 3 commits intocloudflare:mainfrom
Conversation
|
/bonk review |
|
/bonk review please |
commit: |
There was a problem hiding this comment.
Thanks for this comprehensive cleanup PR! The token rename from kumo-ring to kumo-hairline is well-executed and addresses the Tailwind naming conflict effectively.
Summary
What works well:
-
Comprehensive rename - The
kumo-ring→kumo-hairlinechange is consistently applied across all 33 files including components, themes, Figma generators, documentation, and lint rules. -
Documentation alignment - USAGE.md and colors.mdx now share consistent token categorization and descriptions, creating a single source of truth.
-
Changeset accuracy - Properly identifies this as a patch change for both packages.
-
Token descriptions - The new descriptions in the Borders & Rings section clearly explain the distinction between
kumo-hairline(for flat surfaces without shadow) andkumo-line(for elevated surfaces with shadow).
Minor Notes
-
PR description typo - The description mentions the recessed dark token fix as
oklch(15% 0 0) → oklch(12% 0 0), but the actual change goes the other direction (12% → 15%). The code change is correct and consistent between config.ts and theme-kumo.css, just the description has the direction reversed. -
Unmentioned fix - The theme-kumo.css also includes a fix to
kumo-fill-hoverdark mode (changed from--color-neutral-700to--color-neutral-800). This appears to be a legitimate fix (making the fallback value match the variable), but wasn't mentioned in the changeset. Consider adding it to the changeset for completeness.
Overall, this is a solid PR that improves consistency and avoids naming conflicts. Approving with minor suggestions above.
|
I've completed the review of PR #355. Here's a summary of my findings: Review Summary✅ What's Working Well
📝 Minor Notes
The review has been submitted as a comment review on the PR. |
Docs PreviewCommit: |
|
/bonk review again |
There was a problem hiding this comment.
Review Summary
This PR successfully addresses the two stated goals:
1. Token Rename: kumo-ring → kumo-hairline
The rename is comprehensive and consistently applied across all 34 changed files:
- 12 component files - button, checkbox, input, input-group, radio, select, sensitive-input, sidebar, table, tabs, toast
- 2 theme CSS files - theme-kumo.css, theme-fedramp.css
- Theme generator config - config.ts updated with the new token name
- Figma integration - generators and parsers updated
- Component registry metadata - metadata.ts styling states updated
- Lint rules - both root and package-level no-primitive-colors.js
- Documentation - USAGE.md, colors.mdx, AGENTS.md files
- Tests - flow.test.tsx and tailwind-to-figma.test.ts
This resolves the naming conflict with Tailwind's built-in ring utility.
2. Documentation Alignment
The USAGE.md and colors.mdx now share consistent:
- Token categorization (Surface Hierarchy, Brand, Semantic Status Colors, Text Colors, Borders & Rings)
- Token descriptions
- Structure and organization
3. Additional Fixes (Correctly Documented in Changeset)
- Recessed dark token fix: Corrected from
oklch(12% 0 0)tooklch(15% 0 0)in config.ts and regenerated in theme-kumo.css - Fill-hover dark token fix: Changed from
--color-neutral-700to--color-neutral-800for consistency
Visual Regression Results
The 8 screenshots with minor pixel changes are expected - they reflect the token rename but no actual visual differences should be perceptible since the color values remain unchanged.
Changeset Accuracy
The changeset correctly identifies this as a patch change and accurately describes all modifications.
Overall: Well-executed cleanup PR that improves consistency and avoids naming conflicts. All changes are properly documented and consistently applied. Approved!
Review Complete ✅I've submitted my approval for PR #355. Here's a summary of my review: Key Findings1. Token Rename (
2. Documentation Alignment
3. Additional Fixes
4. Changeset Accuracy
Visual RegressionThe 8 screenshots with minor pixel changes are expected - they reflect the token rename but no actual visual differences since color values remain unchanged. Overall: A well-executed cleanup PR that improves consistency, resolves naming conflicts, and establishes a single source of truth for token documentation. All changes are properly documented and consistently applied. |















Summary
This PR aims to solve two problems:
kumo-ringwas introduced as a lighter border variant of kumo-line for flat surfaces, the name conflicted with Tailwind's built-in ring utilityChanges
USAGE.mdand incolors.mdxso both describe the same tokens with consistent descriptionskumo-ringtokumo-hairlineacross all kumo components and docs. No colour changes done here so there shouldn't be any visual changes donekumo-recesseddark mode value inconfig.ts(oklch(12% 0 0) → oklch(15% 0 0))