Skip to content

chore(misc): migrate tailwind v3 to v4#35594

Open
jaysoo wants to merge 1 commit intomasterfrom
NXC-4430
Open

chore(misc): migrate tailwind v3 to v4#35594
jaysoo wants to merge 1 commit intomasterfrom
NXC-4430

Conversation

@jaysoo
Copy link
Copy Markdown
Member

@jaysoo jaysoo commented May 6, 2026

Current Behavior

graph apps and nx-dev pin tailwindcss 3.4.4 with JS configs and v3 directives.

Expected Behavior

tailwindcss 4.1.11 via @tailwindcss/postcss. JS configs replaced with CSS-based @import 'tailwindcss', @plugin, @source, @custom-variant. astro-docs already on v4.

v3 utility renames applied across graph + nx-dev sources (per the Tailwind v4 upgrade guide) so visuals don't shift:

  • shadow-sm -> shadow-xs, shadow -> shadow-sm
  • drop-shadow-sm -> drop-shadow-xs, drop-shadow -> drop-shadow-sm
  • rounded-sm -> rounded-xs, rounded -> rounded-sm
  • blur-sm -> blur-xs, blur -> blur-sm
  • backdrop-blur-sm -> backdrop-blur-xs, backdrop-blur -> backdrop-blur-sm

v3 default border-color (gray-200) preserved via @layer base compat shim per the upgrade guide's default border color note, since explicit border-color isn't always paired in existing markup.

Related Issue(s)

NXC-4430

@jaysoo jaysoo requested a review from a team as a code owner May 6, 2026 15:50
@jaysoo jaysoo requested a review from AgentEnder May 6, 2026 15:50
@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 6f5eb98
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69fb9e6ddb94400008e39a6d
😎 Deploy Preview https://deploy-preview-35594--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 6f5eb98
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69fb9e6deb2b120008eba193
😎 Deploy Preview https://deploy-preview-35594--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented May 6, 2026

View your CI Pipeline Execution ↗ for commit 6f5eb98

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 21m 4s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 4s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 16s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 21s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 7s View ↗

☁️ Nx Cloud last updated this comment at 2026-05-06 21:55:41 UTC

nx-cloud[bot]

This comment was marked as outdated.

graph apps and nx-dev pin tailwindcss 3.4.4 with JS configs and v3 directives.

tailwindcss 4.1.11 via @tailwindcss/postcss. Configs converted to CSS via @import 'tailwindcss', @plugin, @source, @custom-variant. JS tailwind.config.js files removed. Drops @tailwindcss/aspect-ratio (built-in).

NXC-4430
@socket-security
Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm entities is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: pnpm-lock.yamlnpm/entities@4.5.0

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/entities@4.5.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm entities is 91.0% likely obfuscated

Confidence: 0.91

Location: Package overview

From: pnpm-lock.yamlnpm/entities@6.0.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/entities@6.0.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud Bot left a comment

Choose a reason for hiding this comment

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

Important

At least one additional CI pipeline execution has run since the conclusion below was written and it may no longer be applicable.

Nx Cloud has identified a possible root cause for your failed CI:

We classified this failure as an environment/pre-existing issue rather than a code change because the failing e2e-gradle test encounters Kotlin compilation errors (Unresolved reference 'LinkedList') in fixture template files that were not touched by this PR. Our diff contains only Tailwind CSS configs, PostCSS configs, and TSX class-name updates — none of which could cause Kotlin's compiler to fail resolving standard library references in Gradle e2e templates.

No code changes were suggested for this issue.

Trigger a rerun:

Rerun CI

Nx Cloud View detailed reasoning on Nx Cloud ↗

🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.


🎓 Learn more about Self-Healing CI on nx.dev

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.

1 participant