GitHub Copilot identified that CSS custom properties were defined at :root
level while themes were scoped, creating global variable conflicts since all
theme files are loaded via @use at build time.
Changes:
- Moved CSS custom properties from :root to inside theme selectors
- pink-theme: --lighter, --base, --dark, --darker now scoped to html[data-theme='pink']
- one-dark-theme: --light, --lighter, --lightest, --base, --dark, --darker now scoped to html[data-theme='one-dark']
Benefits:
- Eliminates global variable conflicts between themes
- Provides proper encapsulation of theme variables
- Maintains CSS inheritance for descendant elements
- Compatible with existing var(--lighter) usage in explorer.scss
Thanks to @github-copilot for the excellent suggestion\!
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>