fix(tokens): kumo-hairline dark mode#394
Conversation
commit: |
Docs PreviewCommit: |
|
/bonk review |
There was a problem hiding this comment.
Review Summary
This PR effectively fixes the token swap issue where kumo-line and kumo-hairline were inverted in dark mode, causing invisible lines.
Key Changes Reviewed
Token Values (config.ts & theme-kumo.css) ✅
kumo-linedark mode: Now useskumo-neutral-750(32% lightness) — lighter, more visiblekumo-hairlinedark mode: Now usesneutral-800(26.9% lightness) — darker, as intended for hairlines- New
--color-kumo-neutral-750variable added to binding CSS
Semantic Token Usage ✅
The PR correctly applies the rule from AGENTS.md:
- Non-shadowed surfaces →
ring-kumo-hairline(borders/ring on flat surfaces) - Shadowed surfaces (Dialog, Combobox, Select, Dropdown, Toast) →
ring-kumo-line(crisp borders alongside shadows)
Component Updates ✅
- Most components correctly migrated from
kumo-line→kumo-hairlinefor borders/rings - Dialog, Combobox, Select, Dropdown, Toast appropriately keep
kumo-linefor shadowed surfaces - MenuBar visibility improved with
bg-kumo-elevatedand added ring
Test Updates ✅
- Select test updated to expect
bg-kumo-hairlinefor separator
Visual Regression ✅
- 36 screenshots show expected changes (mostly Dialog borders)
- Changes are subtle and align with the fix intent
Changeset ✅
- Proper changeset included for both packages
- Clear description of the changes
Minor Note
The InputGroup change from focus-within:ring-kumo-hairline to focus-within:ring-kumo-line is consistent with the shadowed surface rule since InputGroup uses shadow-xs.
LGTM — approving for merge.
|
I've completed my review of PR #394 and submitted an approval. SummaryThis PR effectively fixes the token swap issue where Key findings:Token values fixed:
Correct semantic token usage:
All 70 files properly updated:
The visual regression shows 36 screenshots with expected subtle changes. The fix follows the project's AGENTS.md conventions and is ready to merge. |






































































































Fixes invisible lines in #389
Problem
Tokens are swapped in
dark:wherekumo-lineis darker thankumo-hairline, which is the opposite of its intended usage – leading to lines being invisible indark:Changes
kumo-lineandkumo-hairlinekumo-linewithkumo-hairlineon surfaces where the component doesn't include a shadowkumo-linein components with a shadow background (i.e.DialogandCombobox) to maintain the crisp bordermenuBarcolour to be more visible indark:pnpm lintandpnpm typecheck, including visual updates in code and in docs