Skip to content

Conversation

@timothyis
Copy link
Member

Upgrades tailwind to v4 for the test-app

Copilot AI review requested due to automatic review settings December 23, 2025 18:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR upgrades Tailwind CSS from version 3.3.3 to 4.1.18 in the test-app, modernizing the styling infrastructure with Tailwind v4's new features and syntax.

Key Changes:

  • Migrated from v3 config-based setup to v4's CSS-first approach with @theme directive
  • Updated PostCSS configuration to use @tailwindcss/postcss plugin
  • Replaced deprecated utility classes (flex-shrink-0shrink-0, mx-[-1px]-mx-px, h-[48px]h-12, gap-0.25gap-px)
  • Added border color compatibility layer to maintain v3 styling defaults

Reviewed changes

Copilot reviewed 18 out of 19 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pnpm-lock.yaml Updated dependencies for Tailwind v4 and related packages, including jiti upgrade to v2
packages/test-app/tailwind.config.ts Removed (Tailwind v4 uses CSS-based configuration)
packages/test-app/src/app/globals.css Migrated to v4 syntax with @import 'tailwindcss' and @theme directive; added border color compatibility
packages/test-app/postcss.config.js Updated to use @tailwindcss/postcss plugin instead of separate tailwindcss and autoprefixer
packages/test-app/package.json Added @tailwindcss/postcss, upgraded tailwindcss to 4.1.18, removed autoprefixer
packages/test-app/src/app/**/*.tsx Updated class names for v4 compatibility and applied code formatting improvements
packages/eslint-config/base.ts Updated CSS parser from tailwind3 to tailwind4 for proper linting
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@timothyis timothyis merged commit 6a561fb into main Dec 23, 2025
1 check passed
@timothyis timothyis deleted the chore/use-tailwind-4 branch December 23, 2025 18:25
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