-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website: migrate tailwindcss v3 to v4
- Loading branch information
Showing
13 changed files
with
379 additions
and
197 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,44 +1,68 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
@import "tailwindcss"; | ||
|
||
html, | ||
body { | ||
height: 100%; | ||
@theme { | ||
--background-image-gradient-radial: radial-gradient(var(--tw-gradient-stops)); | ||
--background-image-gradient-conic: conic-gradient( | ||
from 180deg at 50% 50%, | ||
var(--tw-gradient-stops) | ||
); | ||
} | ||
|
||
/*:root {*/ | ||
/* --foreground-rgb: 0, 0, 0;*/ | ||
/* --background-start-rgb: 255, 240, 251;*/ | ||
/* --background-end-rgb: 255, 255, 255;*/ | ||
/*}*/ | ||
/* | ||
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. | ||
:root { | ||
--foreground-rgb: 255, 255, 255; | ||
--background-start-rgb: 0, 0, 0; | ||
--background-end-rgb: 0, 0, 0; | ||
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); | ||
} | ||
} | ||
|
||
@utility text-balance { | ||
text-wrap: balance; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
@layer utilities { | ||
html, | ||
body { | ||
height: 100%; | ||
} | ||
|
||
/*:root {*/ | ||
/* --foreground-rgb: 0, 0, 0;*/ | ||
/* --background-start-rgb: 255, 240, 251;*/ | ||
/* --background-end-rgb: 255, 255, 255;*/ | ||
/*}*/ | ||
|
||
:root { | ||
--foreground-rgb: 255, 255, 255; | ||
--background-start-rgb: 0, 0, 0; | ||
--background-end-rgb: 0, 0, 0; | ||
} | ||
} | ||
|
||
body { | ||
color: rgb(var(--foreground-rgb)); | ||
background: linear-gradient( | ||
to bottom, | ||
transparent, | ||
rgb(var(--background-end-rgb)) | ||
) | ||
rgb(var(--background-start-rgb)); | ||
} | ||
@media (prefers-color-scheme: dark) { | ||
:root { | ||
--foreground-rgb: 255, 255, 255; | ||
--background-start-rgb: 0, 0, 0; | ||
--background-end-rgb: 0, 0, 0; | ||
} | ||
} | ||
|
||
@layer utilities { | ||
.text-balance { | ||
text-wrap: balance; | ||
body { | ||
color: rgb(var(--foreground-rgb)); | ||
background: linear-gradient( | ||
to bottom, | ||
transparent, | ||
rgb(var(--background-end-rgb)) | ||
) | ||
rgb(var(--background-start-rgb)); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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