Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

Tailwind CSS v4 moved the PostCSS plugin to a separate package @tailwindcss/postcss. The build was failing with:

[postcss] It looks like you're trying to use `tailwindcss` directly as a PostCSS plugin.
The PostCSS plugin has moved to a separate package

Changes

PostCSS Configuration

  • Install @tailwindcss/postcss package across workspace
  • Update postcss.config.js files to reference @tailwindcss/postcss instead of tailwindcss

CSS Syntax Migration

  • Replace @tailwind directives with @import "tailwindcss" (v4 syntax)
  • Replace @apply border-border with border-color: hsl(var(--border)) where @apply references custom theme values
  • Maintain existing CSS custom properties for theming

Example:

- @tailwind base;
- @tailwind components;
- @tailwind utilities;
+ @import "tailwindcss";

  @layer base {
    * {
-     @apply border-border;
+     border-color: hsl(var(--border));
    }
  }

Package Dependencies

  • Update peerDependencies to support both v3 and v4: "tailwindcss": "^3.0.0 || ^4.0.0"
Original prompt

引用: https://github.com/objectstack-ai/objectui/actions/runs/21031227714/job/60467556908#step:6:1


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

dependabot bot and others added 2 commits January 15, 2026 12:25
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss/tree/HEAD/packages/tailwindcss) from 3.4.19 to 4.1.18.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/commits/v4.1.18/packages/tailwindcss)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-version: 4.1.18
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
- Install @tailwindcss/postcss package
- Update PostCSS configs to use @tailwindcss/postcss
- Update CSS files to use Tailwind v4 syntax (@import "tailwindcss")
- Replace @apply directives with direct CSS properties
- Add @theme directive for custom colors
- Update peerDependencies to support Tailwind v4

Co-authored-by: hotlong <[email protected]>
Based on code review feedback, removed the @theme directive since
the theme is already configured via tailwind.config.js and CSS
custom properties. This avoids duplication and potential inconsistencies.

Co-authored-by: hotlong <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/tailwindcss-4.1.18 branch from 3b389ba to 50038f0 Compare January 15, 2026 13:13
@hotlong hotlong marked this pull request as ready for review January 15, 2026 13:13
@github-actions
Copy link

✅ All checks passed!

  • ✅ Type check passed
  • ✅ Tests passed
  • ✅ Lint check completed

Copilot AI changed the title [WIP] Fix action run issue in ObjectUI Migrate to Tailwind CSS v4 PostCSS architecture Jan 15, 2026
Copilot AI requested a review from hotlong January 15, 2026 13:22
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/tailwindcss-4.1.18 branch 2 times, most recently from fb53ff1 to cd4186f Compare January 16, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants