Set color-scheme on theme roots for native widget styling - #41
thiagoburgo wants to merge 1 commit into
Conversation
Keeps browser-painted controls in sync with light and dark themes.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe CSS now declares light or dark ChangesTheme color-scheme support
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change is limited to matching browser-painted controls to each supported theme and presents no identified merge-blocking risk. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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 |
Browser-painted controls (scrollbars, form widgets, unstyled button fallbacks) did not follow the active FigUI theme. On dark themes, some native UI could still render with light UA defaults.
This adds
color-scheme: lighton:rootandcolor-scheme: darkon.dark,.anthracite-dark, and.midnight-darkinsrc/index.css. The property tells the browser which palette to use for native controls without affecting FigUI's custom CSS variables.Test plan
Summary by CodeRabbit