fix(web): apply opacity modifiers to theme colors#1485
fix(web): apply opacity modifiers to theme colors#1485divyanshu-iitian wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughTailwind CSS-variable theme colors now support opacity modifiers through ChangesTailwind color opacity
Estimated code review effort: 3 (Moderate) | ~20 minutes 🚥 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@CHANGELOG.md`:
- Line 11: Move the `#1485` “Applied Tailwind opacity modifiers…” entry to the
bottom of the Fixed section in CHANGELOG.md, after the existing `#1474` entry,
while preserving the entry text and link.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: b3246d6d-301f-49a8-bf69-daac3738faa1
📒 Files selected for processing (3)
CHANGELOG.mdpackages/web/tailwind.config.tspackages/web/tailwindConfig.test.ts
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cfdf07f. Configure here.

Fixes #387
Tailwind treated Sourcebot's complete CSS-variable colors as opaque values, so utilities such as
text-primary/80andbg-muted/50ignored their opacity modifiers.<alpha-value>placeholder andcolor-mix()noneandinherit) unchangedTesting:
yarn workspace @sourcebot/web test --run(93 files, 1128 tests)yarn workspace @sourcebot/web lint(0 errors; 6 existing warnings)yarn workspace @sourcebot/web buildNote
Low Risk
Styling-only Tailwind theme and runtime color resolution changes with regression tests; no auth, API, or data-path impact.
Overview
Fixes Tailwind opacity utilities (e.g.
text-primary/80,bg-muted/50) being ignored for theme colors defined as raw CSS variables.Theme colors in
tailwind.config.tsnow go through awithOpacityhelper that wraps each token incolor-mix(in srgb, var(--token) calc(<alpha-value> * 100%), transparent), covering semantic, sidebar, editor, and chat palettes while leaving a few editor tokens as plainvar(...)where opacity modifiers are not needed.src/tailwind.tspost-processes the resolved config so runtime consumers (CodeMirror themes, highlighters) get fully opaque color strings without the<alpha-value>placeholder.Adds
tailwindConfig.test.tsto assert generated utility CSS and runtime color resolution, plus an unreleased CHANGELOG entry.Reviewed by Cursor Bugbot for commit e4633c6. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit