feat: add dark mode example to buildCssSnippet#185
Conversation
Shows agents the correct pattern for theme-scoped styling using CSS custom properties, with an explicit WRONG comment showing that standard properties on the host won't reach shadow DOM internals. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ 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 |
Summary\n\n- Adds dark mode section to
buildCssSnippetshowing correct theme-scoped custom property pattern\n- Includes explicit WRONG comment demonstrating the anti-pattern (standard properties on host)\n- Shows both.darkand[data-theme=\"dark\"]selector patterns\n\n## Test plan\n- [x] All 33 styling-diagnostics tests pass\n- [x] All 30 styling-preflight tests pass\n- [x] Snippet only generated for components with CSS custom properties\n\n🤖 Generated with Claude Code