Skip to content

chore: bump tailwind-variants version#5634

Closed
wingkwong wants to merge 2 commits into
canaryfrom
chore/eng-2767
Closed

chore: bump tailwind-variants version#5634
wingkwong wants to merge 2 commits into
canaryfrom
chore/eng-2767

Conversation

@wingkwong
Copy link
Copy Markdown
Member

@wingkwong wingkwong commented Aug 25, 2025

Closes #

📝 Description

⛳️ Current behavior (updates)

🚀 New behavior

💣 Is this a breaking change (Yes/No):

📝 Additional Information

Summary by CodeRabbit

  • Chores
    • Upgraded tailwind-variants to 3.0.0 across docs and core packages.
    • Bumped Tailwind-related tooling (tailwindcss, @tailwindcss/postcss, @tailwindcss/vite) to 4.1.12 in docs, storybook, and related packages.
    • Added changeset files recording patch bumps for the affected packages.
    • No public API changes or user-facing behavior changes expected.

@wingkwong wingkwong requested a review from jrgarciadev as a code owner August 25, 2025 08:27
@linear
Copy link
Copy Markdown

linear Bot commented Aug 25, 2025

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Aug 25, 2025

🦋 Changeset detected

Latest commit: 86df653

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 38 packages
Name Type
@heroui/system-rsc Patch
@heroui/theme Patch
@heroui/code Patch
@heroui/divider Patch
@heroui/kbd Patch
@heroui/spacer Patch
@heroui/spinner Patch
@heroui/system Patch
@heroui/accordion Patch
@heroui/alert Patch
@heroui/autocomplete Patch
@heroui/button Patch
@heroui/calendar Patch
@heroui/checkbox Patch
@heroui/date-input Patch
@heroui/date-picker Patch
@heroui/drawer Patch
@heroui/dropdown Patch
@heroui/form Patch
@heroui/input-otp Patch
@heroui/input Patch
@heroui/listbox Patch
@heroui/menu Patch
@heroui/modal Patch
@heroui/navbar Patch
@heroui/number-input Patch
@heroui/popover Patch
@heroui/radio Patch
@heroui/select Patch
@heroui/slider Patch
@heroui/snippet Patch
@heroui/table Patch
@heroui/tabs Patch
@heroui/toast Patch
@heroui/tooltip Patch
@heroui/react Patch
@heroui/aria-utils Patch
@heroui/framer-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Aug 25, 2025

Walkthrough

Bumps tailwind-variants from 2.0.1 to 3.0.0 and updates Tailwind-related devDependencies (minor patch bumps) across docs, core, and storybook packages; adds two changeset files declaring patch releases for @heroui/system-rsc and @heroui/theme. No source code or public API changes.

Changes

Cohort / File(s) Summary
Changesets
.changeset/wet-tigers-argue.md, .changeset/chilly-garlics-lick.md
Add changeset entries declaring patch bumps for @heroui/system-rsc and @heroui/theme due to dependency updates.
Docs app manifest
apps/docs/package.json
Update dependency tailwind-variants 2.0.1 -> 3.0.0; bump @tailwindcss/postcss and tailwindcss 4.1.11 -> 4.1.12 in devDependencies.
Docs sandpack hook
apps/docs/components/sandpack/use-sandpack.ts
Update referenced Tailwind-related devDependency versions to 4.1.12 (tailwindcss, @tailwindcss/postcss, @tailwindcss/vite).
Core packages
packages/core/theme/package.json, packages/core/system-rsc/package.json
Bump tailwind-variants 2.0.1 -> 3.0.0 (dependency in theme, devDependency in system-rsc); bump tailwindcss devDependency in theme 4.1.11 -> 4.1.12.
Storybook package
packages/storybook/package.json
Bump devDependencies: tailwindcss, @tailwindcss/postcss, @tailwindcss/vite 4.1.11 -> 4.1.12.

Sequence Diagram(s)

(No sequence diagram; changes are dependency/version updates and do not modify runtime control flow.)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • winchesHe
  • jrgarciadev

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/eng-2767

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
heroui Ready Ready Preview Comment Aug 25, 2025 8:39am
heroui-sb Ready Ready Preview Comment Aug 25, 2025 8:39am

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Aug 25, 2025

Open in StackBlitz

@heroui/accordion

npm i https://pkg.pr.new/@heroui/accordion@5634

@heroui/alert

npm i https://pkg.pr.new/@heroui/alert@5634

@heroui/autocomplete

npm i https://pkg.pr.new/@heroui/autocomplete@5634

@heroui/avatar

npm i https://pkg.pr.new/@heroui/avatar@5634

@heroui/badge

npm i https://pkg.pr.new/@heroui/badge@5634

@heroui/breadcrumbs

npm i https://pkg.pr.new/@heroui/breadcrumbs@5634

@heroui/button

npm i https://pkg.pr.new/@heroui/button@5634

@heroui/calendar

npm i https://pkg.pr.new/@heroui/calendar@5634

@heroui/card

npm i https://pkg.pr.new/@heroui/card@5634

@heroui/checkbox

npm i https://pkg.pr.new/@heroui/checkbox@5634

@heroui/chip

npm i https://pkg.pr.new/@heroui/chip@5634

@heroui/code

npm i https://pkg.pr.new/@heroui/code@5634

@heroui/date-input

npm i https://pkg.pr.new/@heroui/date-input@5634

@heroui/date-picker

npm i https://pkg.pr.new/@heroui/date-picker@5634

@heroui/divider

npm i https://pkg.pr.new/@heroui/divider@5634

@heroui/drawer

npm i https://pkg.pr.new/@heroui/drawer@5634

@heroui/dropdown

npm i https://pkg.pr.new/@heroui/dropdown@5634

@heroui/form

npm i https://pkg.pr.new/@heroui/form@5634

@heroui/image

npm i https://pkg.pr.new/@heroui/image@5634

@heroui/input

npm i https://pkg.pr.new/@heroui/input@5634

@heroui/input-otp

npm i https://pkg.pr.new/@heroui/input-otp@5634

@heroui/kbd

npm i https://pkg.pr.new/@heroui/kbd@5634

@heroui/link

npm i https://pkg.pr.new/@heroui/link@5634

@heroui/listbox

npm i https://pkg.pr.new/@heroui/listbox@5634

@heroui/menu

npm i https://pkg.pr.new/@heroui/menu@5634

@heroui/modal

npm i https://pkg.pr.new/@heroui/modal@5634

@heroui/navbar

npm i https://pkg.pr.new/@heroui/navbar@5634

@heroui/number-input

npm i https://pkg.pr.new/@heroui/number-input@5634

@heroui/pagination

npm i https://pkg.pr.new/@heroui/pagination@5634

@heroui/popover

npm i https://pkg.pr.new/@heroui/popover@5634

@heroui/progress

npm i https://pkg.pr.new/@heroui/progress@5634

@heroui/radio

npm i https://pkg.pr.new/@heroui/radio@5634

@heroui/ripple

npm i https://pkg.pr.new/@heroui/ripple@5634

@heroui/scroll-shadow

npm i https://pkg.pr.new/@heroui/scroll-shadow@5634

@heroui/select

npm i https://pkg.pr.new/@heroui/select@5634

@heroui/skeleton

npm i https://pkg.pr.new/@heroui/skeleton@5634

@heroui/slider

npm i https://pkg.pr.new/@heroui/slider@5634

@heroui/snippet

npm i https://pkg.pr.new/@heroui/snippet@5634

@heroui/spacer

npm i https://pkg.pr.new/@heroui/spacer@5634

@heroui/spinner

npm i https://pkg.pr.new/@heroui/spinner@5634

@heroui/switch

npm i https://pkg.pr.new/@heroui/switch@5634

@heroui/table

npm i https://pkg.pr.new/@heroui/table@5634

@heroui/tabs

npm i https://pkg.pr.new/@heroui/tabs@5634

@heroui/toast

npm i https://pkg.pr.new/@heroui/toast@5634

@heroui/tooltip

npm i https://pkg.pr.new/@heroui/tooltip@5634

@heroui/user

npm i https://pkg.pr.new/@heroui/user@5634

@heroui/react

npm i https://pkg.pr.new/@heroui/react@5634

@heroui/system

npm i https://pkg.pr.new/@heroui/system@5634

@heroui/system-rsc

npm i https://pkg.pr.new/@heroui/system-rsc@5634

@heroui/theme

npm i https://pkg.pr.new/@heroui/theme@5634

@heroui/use-aria-accordion

npm i https://pkg.pr.new/@heroui/use-aria-accordion@5634

@heroui/use-aria-accordion-item

npm i https://pkg.pr.new/@heroui/use-aria-accordion-item@5634

@heroui/use-aria-button

npm i https://pkg.pr.new/@heroui/use-aria-button@5634

@heroui/use-aria-link

npm i https://pkg.pr.new/@heroui/use-aria-link@5634

@heroui/use-aria-modal-overlay

npm i https://pkg.pr.new/@heroui/use-aria-modal-overlay@5634

@heroui/use-aria-multiselect

npm i https://pkg.pr.new/@heroui/use-aria-multiselect@5634

@heroui/use-aria-overlay

npm i https://pkg.pr.new/@heroui/use-aria-overlay@5634

@heroui/use-callback-ref

npm i https://pkg.pr.new/@heroui/use-callback-ref@5634

@heroui/use-clipboard

npm i https://pkg.pr.new/@heroui/use-clipboard@5634

@heroui/use-data-scroll-overflow

npm i https://pkg.pr.new/@heroui/use-data-scroll-overflow@5634

@heroui/use-disclosure

npm i https://pkg.pr.new/@heroui/use-disclosure@5634

@heroui/use-draggable

npm i https://pkg.pr.new/@heroui/use-draggable@5634

@heroui/use-form-reset

npm i https://pkg.pr.new/@heroui/use-form-reset@5634

@heroui/use-image

npm i https://pkg.pr.new/@heroui/use-image@5634

@heroui/use-infinite-scroll

npm i https://pkg.pr.new/@heroui/use-infinite-scroll@5634

@heroui/use-intersection-observer

npm i https://pkg.pr.new/@heroui/use-intersection-observer@5634

@heroui/use-is-mobile

npm i https://pkg.pr.new/@heroui/use-is-mobile@5634

@heroui/use-is-mounted

npm i https://pkg.pr.new/@heroui/use-is-mounted@5634

@heroui/use-measure

npm i https://pkg.pr.new/@heroui/use-measure@5634

@heroui/use-pagination

npm i https://pkg.pr.new/@heroui/use-pagination@5634

@heroui/use-real-shape

npm i https://pkg.pr.new/@heroui/use-real-shape@5634

@heroui/use-ref-state

npm i https://pkg.pr.new/@heroui/use-ref-state@5634

@heroui/use-resize

npm i https://pkg.pr.new/@heroui/use-resize@5634

@heroui/use-safe-layout-effect

npm i https://pkg.pr.new/@heroui/use-safe-layout-effect@5634

@heroui/use-scroll-position

npm i https://pkg.pr.new/@heroui/use-scroll-position@5634

@heroui/use-ssr

npm i https://pkg.pr.new/@heroui/use-ssr@5634

@heroui/use-theme

npm i https://pkg.pr.new/@heroui/use-theme@5634

@heroui/use-update-effect

npm i https://pkg.pr.new/@heroui/use-update-effect@5634

@heroui/use-viewport-size

npm i https://pkg.pr.new/@heroui/use-viewport-size@5634

@heroui/aria-utils

npm i https://pkg.pr.new/@heroui/aria-utils@5634

@heroui/dom-animation

npm i https://pkg.pr.new/@heroui/dom-animation@5634

@heroui/framer-utils

npm i https://pkg.pr.new/@heroui/framer-utils@5634

@heroui/react-rsc-utils

npm i https://pkg.pr.new/@heroui/react-rsc-utils@5634

@heroui/react-utils

npm i https://pkg.pr.new/@heroui/react-utils@5634

@heroui/shared-icons

npm i https://pkg.pr.new/@heroui/shared-icons@5634

@heroui/shared-utils

npm i https://pkg.pr.new/@heroui/shared-utils@5634

@heroui/stories-utils

npm i https://pkg.pr.new/@heroui/stories-utils@5634

@heroui/test-utils

npm i https://pkg.pr.new/@heroui/test-utils@5634

commit: 86df653

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (2)
.changeset/wet-tigers-argue.md (1)

1-7: Add a brief rationale to the changeset for future readers.

Consider noting that this is an internal dependency bump with no public API changes, and that it aligns with Tailwind CSS v4 + tailwind-merge v3 in the repo. Optional, but helps future archaeology.

Suggested tweak:

 ---
 "@heroui/system-rsc": patch
 "@heroui/theme": patch
 ---
 
-chore: bump tailwind-variants version
+chore: bump tailwind-variants to 3.0.0
+
+Internal dependency update only (no public API changes). Aligns packages with Tailwind CSS v4 and tailwind-merge v3 used in the monorepo.
apps/docs/package.json (1)

84-84: Docs dep bump is fine; consider semver range if you want to pick up patch fixes automatically.

Pinning to 3.0.0 is acceptable for reproducibility. If you prefer to auto-receive patch updates from tailwind-variants in the docs app, switch to ^3.0.0. Totally optional—follow the repo’s prevailing convention.

Optional diff:

-    "tailwind-variants": "3.0.0",
+    "tailwind-variants": "^3.0.0",
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between f8fbe4b and 4842259.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (4)
  • .changeset/wet-tigers-argue.md (1 hunks)
  • apps/docs/package.json (1 hunks)
  • packages/core/system-rsc/package.json (1 hunks)
  • packages/core/theme/package.json (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: Prettier
  • GitHub Check: TypeScript
  • GitHub Check: Continuous Release
  • GitHub Check: Tests
  • GitHub Check: ESLint
  • GitHub Check: Build
🔇 Additional comments (3)
packages/core/system-rsc/package.json (1)

45-45: Verified: No runtime imports of tailwind-variants; devDependency is safe

The only reference to “tailwind-variants” is an import type in extend-variants.d.ts, which is stripped out at compile time. No runtime import or require calls were found in source or (nonexistent) build output.

apps/docs/package.json (1)

84-84: No breaking changes in docs’ tv() usage after upgrading to tailwind-variants v3

All grep’d tv() calls in apps/docs use only the supported options (base, variants, slots, extend) and import the default build of tv (which retains full tailwind-merge behavior). Tailwind-variants v3’s only breaking change is the introduction of a separate “lite” entrypoint that drops merge-config support—examples importing from "tailwind-variants" without a second-argument config remain fully compatible. (github.com)

packages/core/theme/package.json (1)

54-54: ✅ Dependency bump to tailwind-variants@3.0.0 verified

  • Peer dependencies for tailwind-variants@3.0.0 include tailwind-merge: ">=3.0.0" and tailwindcss: "*", and the theme package pins tailwind-merge to 3.3.1, satisfying this requirement.
  • No runtime calls to tv() were found in packages/core/theme/src; only type imports and the tv wrapper in utils/tv.ts reference it.
  • The custom tv wrapper’s signature and default twMerge configuration align with the v3 API, so the public theme API remains unchanged.

All checks pass—no further action needed.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
packages/storybook/package.json (1)

12-16: Fix broken entry points in packages/storybook/package.json

The main field currently points to src/index.ts, but the files array only includes dist. As a result, consumers installing the published package won’t receive the source file and will encounter a missing entry point.

• File needing update: packages/storybook/package.json (around lines 12–16)

Apply the following changes to align your exports with the built outputs:

-  "main": "src/index.ts",
+  "main": "dist/index.js",
+  "module": "dist/index.mjs",
+  "types": "dist/index.d.ts",
+  "exports": {
+    ".": {
+      "types": "./dist/index.d.ts",
+      "import": "./dist/index.mjs",
+      "require": "./dist/index.js"
+    }
+  },

If this package is intended for internal/storybook-only use and shouldn’t be published, consider adding "private": true instead to prevent accidental publishes.

🧹 Nitpick comments (1)
packages/storybook/package.json (1)

20-24: Repository.directory path appears incorrect

This file lives at packages/storybook/package.json, but repository.directory points to packages/components/storybook. This breaks npm repo links and source mapping on package registries.

Proposed fix:

-    "directory": "packages/components/storybook"
+    "directory": "packages/storybook"
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 4842259 and 86df653.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (5)
  • .changeset/chilly-garlics-lick.md (1 hunks)
  • apps/docs/components/sandpack/use-sandpack.ts (1 hunks)
  • apps/docs/package.json (3 hunks)
  • packages/core/theme/package.json (2 hunks)
  • packages/storybook/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (2)
  • apps/docs/components/sandpack/use-sandpack.ts
  • .changeset/chilly-garlics-lick.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/docs/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Continuous Release
  • GitHub Check: Build
  • GitHub Check: TypeScript
🔇 Additional comments (2)
packages/core/theme/package.json (2)

54-56: Confirm tailwind-variants@3.0.0 compatibility

This upgrade is a semver-major bump—tailwind-variants@3.0.0 may remove or rename APIs or change TypeScript signatures. In our theme package, you can see:

  • Imports from "tailwind-variants" in
    • packages/core/theme/src/utils/tv.ts (both type TV and tv as tvBase)
    • packages/core/theme/src/utils/types.ts (type ClassValue)
    • packages/core/theme/src/index.ts (re-exporting tv and VariantProps)
    • And type imports of VariantProps in every component file under src/components
  • Direct calls to tv({ … }) (and use of extend/compose in a few places) in all ~50 component definitions under packages/core/theme/src/components

Please:

  • Run a full TypeScript type-check (yarn workspace @heroui/theme tsc --noEmit) and resolve any errors.
  • Spot-check critical components (e.g., button, modal, dropdown) in Storybook or locally to catch any runtime styling regressions.
  • Review the tailwind-variants 3.0.0 changelog for any removed/renamed options or typing changes that affect slots, variants, compoundVariants, extend/compose, etc.

If you’d prefer to receive future patch releases automatically, consider loosening to a caret range:

-   "tailwind-variants": "3.0.0",
+   "tailwind-variants": "^3.0.0",

Otherwise, pinning to exactly 3.0.0 is fine for full determinism.


62-66: Ensure Node engine compatibility after Tailwind v4 bump

I’ve verified that there are no legacy tailwind.config.* files in packages/core/theme and that your build scripts (tsup) do not invoke tailwindcss directly. However, the package’s package.json does not declare any "engines" field to pin a Node version, which is important because Tailwind v4 has a minimum Node requirement.

• No tailwind.config.* files found under packages/core/theme
• Build scripts in package.json ("build", "build:fast", "dev") do not reference tailwindcss
packages/core/theme/package.json is missing an "engines": { "node": "…" } declaration

Please confirm that your development and CI environments are running a Node version that satisfies Tailwind v4’s requirements, and consider adding an appropriate "engines.node" entry (e.g. "node": ">=16.8.0") to packages/core/theme/package.json.

Comment on lines +54 to 58
"tailwindcss": "4.1.12",
"vite": "^5.4.11",
"@tailwindcss/postcss": "4.1.11",
"@tailwindcss/vite": "4.1.11"
"@tailwindcss/postcss": "4.1.12",
"@tailwindcss/vite": "4.1.12"
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Tailwind v4.1.12 bump: check Storybook/Vite plugin wiring and workspace consistency

The version bumps look correct. Please verify:

  • Storybook’s Vite config imports and uses @tailwindcss/vite (not legacy tailwindcss plugin).
  • There are no lingering tailwind.config.{js,ts} files in this package; Tailwind v4 uses the PostCSS plugin (@tailwindcss/postcss) and the new content discovery.
  • All workspace packages pin Tailwind-related devDeps to the same 4.1.12 to avoid transitive mismatches.

Run the following to confirm plugin usage and version alignment:

If you want to make the versions resilient to patch updates, consider caret ranges:

-    "tailwindcss": "4.1.12",
+    "tailwindcss": "^4.1.12",
-    "@tailwindcss/postcss": "4.1.12",
+    "@tailwindcss/postcss": "^4.1.12",
-    "@tailwindcss/vite": "4.1.12"
+    "@tailwindcss/vite": "^4.1.12"

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "1) Check for legacy Tailwind config files (should be none under packages/storybook):"
fd -H -a -t f -g 'tailwind.config.*' packages/storybook || true

echo -e "\n2) Search for @tailwindcss/vite usage (should be present in Vite config used by Storybook):"
rg -nP '@tailwindcss/vite|tailwindcss/vite' -C2 -- packages || true

echo -e "\n3) Print Tailwind versions across the monorepo to ensure consistency:"
fd -H -a -t f -g package.json | xargs -I{} jq -r '.name + " :: " + (.devDependencies.tailwindcss // .dependencies.tailwindcss // "—")' {} | rg -n 'heroui|docs|storybook|theme|system|—'

Length of output: 4003


Tailwind v4.1.12 bump: remove legacy config file, plugin wiring correct, versions aligned

  • Legacy Tailwind config detected at packages/storybook/tailwind.config.js – please remove this outdated file.
  • Vite config in packages/storybook/vite.config.ts correctly imports and uses @tailwindcss/vite.
  • Tailwind CSS is consistently pinned to 4.1.12 in all relevant workspace packages (@heroui/docs, @heroui/theme, @heroui/storybook); no mismatches found.

Optional: to allow patch upgrades without manual bumps, consider switching to caret ranges:

-    "tailwindcss": "4.1.12",
+    "tailwindcss": "^4.1.12",
-    "@tailwindcss/postcss": "4.1.12",
+    "@tailwindcss/postcss": "^4.1.12",
-    "@tailwindcss/vite": "4.1.12"
+    "@tailwindcss/vite": "^4.1.12"
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"tailwindcss": "4.1.12",
"vite": "^5.4.11",
"@tailwindcss/postcss": "4.1.11",
"@tailwindcss/vite": "4.1.11"
"@tailwindcss/postcss": "4.1.12",
"@tailwindcss/vite": "4.1.12"
},
"tailwindcss": "^4.1.12",
"vite": "^5.4.11",
"@tailwindcss/postcss": "^4.1.12",
"@tailwindcss/vite": "^4.1.12"
},
🤖 Prompt for AI Agents
In packages/storybook/package.json around lines 54 to 58, a legacy Tailwind v3
config file packages/storybook/tailwind.config.js remains and should be removed;
delete that file from the repository and remove any direct imports or references
to it (search the package for require/import or build references) so the new
@tailwindcss/vite-based setup in packages/storybook/vite.config.ts is the sole
Tailwind config path, then run a quick local build or Storybook start to confirm
no config-resolution errors.

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