fix(styles): improve edge visibility in dark mode#2891
Conversation
🦋 Changeset detectedLatest commit: 5014d34 The changes in this PR will be included in the next version bump. This PR includes changesets to release 21 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📝 WalkthroughWalkthroughAdded a changeset marking a patch release for Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Increase pathBg stroke-opacity in dark mode for better edge contrast. Dark backgrounds require higher opacity for perceptual parity with light mode. Dark mode values (light mode unchanged): - Default: 0.25 (light: 0.08) - Hover: 0.45 (light: 0.2) - Selected: 0.5 (light: 0.25) - Selected+Hover: 0.65 (light: 0.4) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
adb115f to
5014d34
Compare
Summary
pathBg) stroke opacity in dark mode for better contrast against the dark canvaspathBgis a wider, semi-transparent stroke behind each edge that creates a subtle glow/halo effect. In dark mode, the same low opacity values used in light mode result in nearly invisible halos due to lower contrast ratios against dark backgroundsBefore / After (zoomed, dark mode)
Changes
styled-system/preset/src/recipes/edgePath.ts—pathBgslot:Test plan
[data-mantine-color-scheme=dark]rulescomputedStyle.strokeOpacityreturns0.25in dark mode🤖 Generated with Claude Code