fix(interface): add tailwind-radix package for spaceui#597
Conversation
WalkthroughThe pull request adds a single Tailwind CSS plugin directive to enable the ChangesTailwind Plugin Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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.
🧹 Nitpick comments (1)
interface/src/styles.css (1)
10-10: ⚡ Quick winStylelint false positive: configure to allow Tailwind directives.
The Stylelint error
scss/at-rule-no-unknownfor@pluginis a false positive. Stylelint doesn't recognize Tailwind CSS v4's custom at-rules. Consider updating.stylelintrcto allow Tailwind-specific directives.🔧 Suggested Stylelint configuration
Add to your Stylelint config to suppress false positives for Tailwind at-rules:
{ "rules": { "scss/at-rule-no-unknown": [ true, { "ignoreAtRules": [ "tailwind", "apply", "layer", "theme", "plugin", "source", "utility", "import" ] } ] } }Or if not using SCSS-specific rules:
{ "rules": { "at-rule-no-unknown": [ true, { "ignoreAtRules": [ "tailwind", "apply", "layer", "theme", "plugin", "source", "utility", "import" ] } ] } }🤖 Prompt for 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. In `@interface/src/styles.css` at line 10, Stylelint is flagging the Tailwind directive `@plugin` in interface/src/styles.css as an unknown at-rule; update your Stylelint config (.stylelintrc or equivalent) to allow Tailwind-specific at-rules by adding the Tailwind directives (e.g., "tailwind","apply","layer","theme","plugin","source","utility","import") to the ignoreAtRules option for either "scss/at-rule-no-unknown" or "at-rule-no-unknown" depending on which rule you use; ensure the config entry targets the correct rule name present in your project so `@plugin` "tailwindcss-radix"; is no longer reported as a false positive.
🤖 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.
Nitpick comments:
In `@interface/src/styles.css`:
- Line 10: Stylelint is flagging the Tailwind directive `@plugin` in
interface/src/styles.css as an unknown at-rule; update your Stylelint config
(.stylelintrc or equivalent) to allow Tailwind-specific at-rules by adding the
Tailwind directives (e.g.,
"tailwind","apply","layer","theme","plugin","source","utility","import") to the
ignoreAtRules option for either "scss/at-rule-no-unknown" or
"at-rule-no-unknown" depending on which rule you use; ensure the config entry
targets the correct rule name present in your project so `@plugin`
"tailwindcss-radix"; is no longer reported as a false positive.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0929a076-91ac-4f03-8986-29906ab8f549
⛔ Files ignored due to path filters (2)
interface/bun.lockis excluded by!**/*.lock,!**/*.lockinterface/package.jsonis excluded by!**/*.json
📒 Files selected for processing (1)
interface/src/styles.css
The toggle switches in the settings UI aren't actually toggling. Currently:

This is caused by
tailwindcss-radixbeing missing. As per SpaceUI, consumers are expected to load their own plugins, and we didn't have that package installed. I've added the relevant package to the interface's package.json and imported it in the css, and it fixes the problem.