Skip to content

fix: complete Tailwind CSS v3 → v4 migration#174

Merged
sunny0826 merged 2 commits into
mainfrom
copilot/fix-issue-in-playground-171
Mar 24, 2026
Merged

fix: complete Tailwind CSS v3 → v4 migration#174
sunny0826 merged 2 commits into
mainfrom
copilot/fix-issue-in-playground-171

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 24, 2026

Dependabot's tailwindcss 3→4 bump (#171) broke the build because Tailwind v4 extracted the PostCSS plugin into @tailwindcss/postcss.

Changes

  • postcss.config.js: tailwindcss@tailwindcss/postcss; drop autoprefixer (built into v4)
  • src/styles/index.css: @tailwind base/components/utilities@import "tailwindcss" + @plugin "tailwind-scrollbar"
  • package.json: add @tailwindcss/postcss, bump tailwindcss to ^4.2.2
/* before (v3) */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* after (v4) */
@import "tailwindcss";
@plugin "tailwind-scrollbar";

tailwind.config.js is left in place but no longer loaded — v4 defaults cover all prior settings (class-based dark mode, automatic content detection). The scrollbar plugin is now loaded via CSS @plugin directive.

Screenshot

Homepage with Tailwind v4


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

- Replace `tailwindcss` PostCSS plugin with `@tailwindcss/postcss` (v4)
- Replace `@tailwind` directives with `@import "tailwindcss"`
- Add `@plugin "tailwind-scrollbar"` for v4 CSS-first plugin loading
- Remove `autoprefixer` from PostCSS config (built into v4)
- Add `@tailwindcss/postcss` dependency, bump tailwindcss to ^4.2.2

Co-authored-by: sunny0826 <24563928+sunny0826@users.noreply.github.com>
Agent-Logs-Url: https://github.com/KWDB/playground/sessions/143fbfe0-1f16-46fd-b88d-1e925b95fab4
Copilot AI changed the title [WIP] Fix issue in playground fix: complete Tailwind CSS v3 → v4 migration Mar 24, 2026
Copilot AI requested a review from sunny0826 March 24, 2026 01:45
@sunny0826 sunny0826 marked this pull request as ready for review March 24, 2026 02:16
@sunny0826 sunny0826 merged commit 4e8d5a2 into main Mar 24, 2026
5 checks passed
@sunny0826 sunny0826 deleted the copilot/fix-issue-in-playground-171 branch March 24, 2026 02:16
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.

2 participants