feat: enhance styling_preflight to run all 7 CSS validators#170
Conversation
Previously styling_preflight only ran shadow DOM and theme compatibility checks. Agents calling it thought they were fully validated but were missing 5 critical checkers. Now runs all CSS validators in a single call: - Shadow DOM anti-patterns (existing) - Theme compatibility (existing) - Token fallbacks (NEW) — var() without fallbacks - Scope validation (NEW) — tokens on :root not host - Shorthand + var() (NEW) — risky combinations - Color contrast (NEW) — low-contrast pairs - CSS specificity (NEW) — !important, ID selectors Also refactors token-fallback-checker and scope-checker to expose *FromMeta variants that accept ComponentMetadata directly, avoiding redundant CEM re-parsing. 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 (6)
✨ 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 |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
checkTokenFallbacksandcheckCssScopeto expose*FromMetavariants that acceptComponentMetadatadirectly, avoiding redundant CEM re-parsingNew validators added to preflight:
var()without fallback values:rootinstead of hostshorthand + var()combinations!important, ID selectors, deep nestingTest plan
🤖 Generated with Claude Code