Skip to content

Commit

Permalink
fix(@angular/build): allow tailwindcss 4.x as a peer dependency
Browse files Browse the repository at this point in the history
To support usage of the newly released Tailwind CSS 4.0.0, the peer dependency
range has been update to include `^4.0.0`. This prevents potential installation
warnings/error when using various package managers.
Use of Tailwind CSS 4+ requires either the `application` (new project default) or
`browser-esbuild` builder. Both of which support custom postcss configuration
via a `.postcssrc.json` file.

For instructions on the setup of Tailwind CSS with Angular, please see the
Tailwind CSS documentation here: https://tailwindcss.com/docs/installation/framework-guides/angular

(cherry picked from commit 694ef8e)
clydin committed Jan 27, 2025
1 parent 2011d34 commit d53d25f
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/angular/build/package.json
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@
"less": "^4.2.0",
"ng-packagr": "^19.0.0",
"postcss": "^8.4.0",
"tailwindcss": "^2.0.0 || ^3.0.0",
"tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
"typescript": ">=5.5 <5.8"
},
"peerDependenciesMeta": {
2 changes: 1 addition & 1 deletion packages/angular_devkit/build_angular/package.json
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@
"karma": "^6.3.0",
"ng-packagr": "^19.0.0",
"protractor": "^7.0.0",
"tailwindcss": "^2.0.0 || ^3.0.0",
"tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0",
"typescript": ">=5.5 <5.8"
},
"peerDependenciesMeta": {

0 comments on commit d53d25f

Please sign in to comment.