Skip to content

feat: add dark mode example to buildCssSnippet#185

Merged
himerus merged 4 commits intodevfrom
feat/dark-mode-snippet
Mar 21, 2026
Merged

feat: add dark mode example to buildCssSnippet#185
himerus merged 4 commits intodevfrom
feat/dark-mode-snippet

Conversation

@himerus
Copy link
Copy Markdown
Contributor

@himerus himerus commented Mar 21, 2026

Summary\n\n- Adds dark mode section to buildCssSnippet showing correct theme-scoped custom property pattern\n- Includes explicit WRONG comment demonstrating the anti-pattern (standard properties on host)\n- Shows both .dark and [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

himerus and others added 4 commits March 21, 2026 05:01
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>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 21, 2026

Warning

Rate limit exceeded

@himerus has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 29 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: cd789e96-6b95-4e1c-8214-d35939a2dd22

📥 Commits

Reviewing files that changed from the base of the PR and between d8e1412 and 1a3787a.

📒 Files selected for processing (3)
  • .changeset/dark-mode-snippet.md
  • packages/core/src/handlers/styling-diagnostics.ts
  • tests/__fixtures__/benchmark-results/latest-benchmark.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/dark-mode-snippet

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@himerus himerus merged commit d7e915b into dev Mar 21, 2026
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant