Skip to content

Chore/tailwind v4 upgrade - [INS-1653] - #9350

Merged
CurryYangxx merged 8 commits into
developfrom
chore/tailwind-upgrade
Nov 24, 2025
Merged

CurryYangxx merged 8 commits into
developfrom
chore/tailwind-upgrade

Conversation

@CurryYangxx

@CurryYangxx CurryYangxx commented Nov 6, 2025 •

Copy link
Copy Markdown
Member

Tailwind v4 upgrade: https://tailwindcss.com/docs/upgrade-guide

Tailwind v4 has some breaking changes so this upgrade has some risks. It's better to merge into the develop branch after the most recent major release (may be v12.1 or v12.2), so we have plenty of time to test and fix UI issues.

@CurryYangxx
CurryYangxx marked this pull request as draft November 6, 2025 08:53
@CurryYangxx CurryYangxx changed the title Chore/tailwind upgrade Chore/tailwind v4 upgrade Nov 6, 2025
@CurryYangxx CurryYangxx changed the title Chore/tailwind v4 upgrade Chore/tailwind v4 upgrade - [INS-1653] Nov 6, 2025
@CurryYangxx
CurryYangxx force-pushed the chore/tailwind-upgrade branch from 991f0f0 to 9990d68 Compare November 6, 2025 09:10
@CurryYangxx
CurryYangxx requested review from a team, Copilot and gatzjames November 6, 2025 09:36

Copilot AI left a comment

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.

Pull Request Overview

This PR upgrades Tailwind CSS to version 4, migrating from the JavaScript configuration file to CSS-native configuration using the new @theme and @plugin directives. The migration includes comprehensive updates to Tailwind class syntax across the codebase to align with v4's new conventions.

  • Removes tailwind.config.js and postcss.config.js in favor of CSS-native configuration
  • Adds @tailwindcss/vite plugin to Vite configuration
  • Updates CSS custom property syntax from [--var] to (--var)
  • Migrates animation/keyframe definitions from JavaScript to CSS @theme blocks
  • Updates hundreds of utility class names to v4 syntax (shrink-0, grow, outline-hidden, etc.)

Reviewed Changes

Copilot reviewed 147 out of 189 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
vite.config.ts Adds @tailwindcss/vite plugin for Tailwind v4 integration
tailwind.config.js Deleted - configuration moved to CSS
postcss.config.js Deleted - no longer required with Vite plugin
styles.css Major restructure with @import layers, @plugin, and @theme directives for v4
main.css Updates import paths and removes conflicting CSS reset rules
40+ component files Comprehensive class syntax updates for Tailwind v4 compatibility

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

@CurryYangxx
CurryYangxx requested a review from Copilot November 7, 2025 07:32

Copilot AI left a comment

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.

Pull Request Overview

Copilot reviewed 147 out of 189 changed files in this pull request and generated no new comments.


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

jackkav
jackkav previously approved these changes Nov 7, 2025

@jackkav jackkav left a comment

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.

Looks good to me, stuff like this will always have risk. I suggest we merge it as early as possible and alert the team to watch out for any UI issues they might notice.

Great job

@jackkav jackkav mentioned this pull request Nov 7, 2025
@CurryYangxx

CurryYangxx commented Nov 10, 2025 •

Copy link
Copy Markdown
Member Author

We have some in-progress features for v12.1, to avoid conflicts, plan to merge once v12.1 released.

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 148 out of 190 changed files in this pull request and generated 9 comments.


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

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 148 out of 190 changed files in this pull request and generated no new comments.


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

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 148 out of 190 changed files in this pull request and generated no new comments.


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

xiaodemen
xiaodemen previously approved these changes Nov 24, 2025

Copilot AI left a comment

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.

Copilot reviewed 148 out of 190 changed files in this pull request and generated 4 comments.


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

@CurryYangxx
CurryYangxx merged commit 8f1e3bf into develop Nov 24, 2025
14 checks passed
@CurryYangxx
CurryYangxx deleted the chore/tailwind-upgrade branch November 24, 2025 10:06
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.

4 participants