-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade tailwindcss from 3.4.17 to 4.0.8.
As per the recommendations at https://tailwindcss.com/docs/upgrade-guide, I used `npx @tailwindcss/upgrade` to perform the upgrade.
- Loading branch information
1 parent
b21ab43
commit 68c1a19
Showing
8 changed files
with
32 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"devDependencies": { | ||
"@tailwindcss/typography": "0.5.16", | ||
"tailwindcss": "3.4.17" | ||
"tailwindcss": "4.0.8" | ||
}, | ||
"scripts": { | ||
"build:css": "npx tailwindcss -i ./src/assets/css/tailwind.css -o ./src/assets/css/main.css --minify", | ||
"build:css": "npx @tailwindcss/cli -i ./src/assets/css/tailwind.css -o ./src/assets/css/main.css --minify", | ||
"format:md": "npx prettier --write \"src/**/*.md\"" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@import 'tailwindcss'; | ||
|
||
@plugin '@tailwindcss/typography'; | ||
|
||
/* | ||
The default border color has changed to `currentColor` in Tailwind CSS v4, | ||
so we've added these compatibility styles to make sure everything still | ||
looks the same as it did with Tailwind CSS v3. | ||
If we ever want to remove these styles, we need to add an explicit border | ||
color utility to any element that depends on these defaults. | ||
*/ | ||
@layer base { | ||
*, | ||
::after, | ||
::before, | ||
::backdrop, | ||
::file-selector-button { | ||
border-color: var(--color-gray-200, currentColor); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.