fix: complete Tailwind CSS v3 → v4 migration#174
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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; dropautoprefixer(built into v4)src/styles/index.css:@tailwind base/components/utilities→@import "tailwindcss"+@plugin "tailwind-scrollbar"package.json: add@tailwindcss/postcss, bumptailwindcssto^4.2.2tailwind.config.jsis 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@plugindirective.Screenshot
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.