Skip to content

chore: update tailwind and related dependencies to latest versions#7984

Merged
alexander-akait merged 4 commits into
webpack:mainfrom
TusharThakur04:chore/update-tailwind
Mar 12, 2026
Merged

chore: update tailwind and related dependencies to latest versions#7984
alexander-akait merged 4 commits into
webpack:mainfrom
TusharThakur04:chore/update-tailwind

Conversation

@TusharThakur04
Copy link
Copy Markdown
Member

@TusharThakur04 TusharThakur04 commented Mar 11, 2026

Closes: #7974

Summary
This PR

  • updates tailwind and related dependencies to latest versions.
  • fixes breaking changes in some components.

What kind of change does this PR introduce?
chore

Did you add tests for your changes?
no

Does this PR introduce a breaking change?
yes

In Tailwind v3, utilities were NOT wrapped in @layer but in Tailwind v4, all utilities are wrapped in @layer utilities , so after upgrade unlayered styles (Scss) held higher specificity than Tailwind utilities, which were fixed on th PR
If relevant, what needs to be documented once your changes are merged or what have you already documented?

Use of AI
i have used sonet 4.6 for debugging.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Mar 12, 2026 1:03pm

Request Review

Comment thread webpack.prod.mjs
new CssMinimizerPlugin({
minify: CssMinimizerPlugin.lightningCssMinify,
}),
],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why CssMinimizerPlugin.lightningCssMinify was removed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it doesn't support the new media query syntax in v4 @media (width >= 768px)
compared to earlier one - @media (min-width: 768px)
Build was failing because of this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we need to update it or look at options, maybe we need to enable something here

render() {
return (
<section className="splash-viz dark:bg-gray-900">
<section className="splash-viz dark:bg-gray-900!">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please describe all CSS changes to understand why it was changed, thanks

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In Tailwind v3, utilities were NOT wrapped in @layer but in Tailwind v4, all utilities are wrapped in @layer utilities , so after upgrade unlayered styles (Scss) held higher specificity than Tailwind utilities, which were fixed on th PR

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Got it 👍

{link.children.map((child) => {
const classNames =
"text-blue-400 py-5 text-sm capitalize hover:text-black dark:hover:text-white";
"text-blue-400 dark:text-[#69a8ee] py-5 text-sm capitalize hover:text-black dark:hover:text-white";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why we added this?

ul,
ol {
padding-left: 30px;
list-style: revert;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why we added this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

it wasn't showing the markers
Screenshot from 2026-03-11 19-02-46

production:

Screenshot from 2026-03-11 21-39-48


img {
width: auto;
display: inline-block;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why we added this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Screenshot from 2026-03-11 19-16-17

production:

Screenshot from 2026-03-11 21-41-46

padding: 0;
font-size: inherit;
display: flex;
align-items: center;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why we added this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

}

.dropdown__arrow {
line-height: 1;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why we added this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Screenshot from 2026-03-11 03-52-02
Screenshot from 2026-03-11 03-51-57

@alexander-akait
Copy link
Copy Markdown
Member

Please remove - https://github.com/webpack/webpack.js.org/blob/main/.github/dependabot.yml#L12 and we can merge

@TusharThakur04
Copy link
Copy Markdown
Member Author

removed tailwind css and also fixed the link color

Screenshot from 2026-03-12 17-58-36

prod:
Screenshot from 2026-03-12 17-58-42

Comment thread .github/dependabot.yml
- dependencies
versioning-strategy: widen
ignore:
- dependency-name: "tailwindcss"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove ignore too, we don't have modules to ignore anymore

@alexander-akait alexander-akait merged commit 786f9e8 into webpack:main Mar 12, 2026
8 of 9 checks passed
@TusharThakur04 TusharThakur04 deleted the chore/update-tailwind branch March 12, 2026 13:20
pranjalisr pushed a commit to pranjalisr/webpack.js.org that referenced this pull request Mar 12, 2026
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.

update tailwindcss to the latest version

2 participants