-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
feat(tailwind): migrate to v4 #7507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5b7e7b7
chore(tailwind): update to v4
bjohansebas 8a48794
fix: dark theme
AugustinMauroy c3eebdd
simplify postcss
AugustinMauroy bd6a61f
fix: using good source
AugustinMauroy 9a68a4f
fix: lock-file
AugustinMauroy c52e14b
chore: cleaned package.json
ovflowd b81ff43
Merge branch 'main' of https://github.com/nodejs/nodejs.org into tail…
bjohansebas 7d3047a
fix some bugs and add missing comment
bjohansebas 36e1669
fix(ui-components): remove unnecessary aspect ratio utility from Prev…
bjohansebas 43fb46e
fix(ui-components): update shadow variables to use --alpha for transp…
bjohansebas 88c6740
fix(ui-components): adjust shadow variables to ensure proper fallback…
bjohansebas ecacb80
fix fonts?
bjohansebas 9d9f921
fix(route): add TODO to use CSS variables instead of absolute values
bjohansebas 4495637
fix(effects): update background image from turtle.png to smoke.gif
bjohansebas 24b20ab
fix: storybook postcss implementation
AugustinMauroy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,11 +1,6 @@ | ||
{ | ||
"plugins": { | ||
"postcss-mixins": {}, | ||
"postcss-simple-vars": {}, | ||
"postcss-calc": {}, | ||
"postcss-import": {}, | ||
"tailwindcss/nesting": {}, | ||
"tailwindcss": {}, | ||
"autoprefixer": {} | ||
"@tailwindcss/postcss": {} | ||
} | ||
} |
This file contains hidden or 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 hidden or 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 hidden or 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,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.blogHeader { | ||
h1 { | ||
@apply inline-flex | ||
|
This file contains hidden or 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,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.container { | ||
@apply max-w-full | ||
flex-1; | ||
|
This file contains hidden or 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,46 +1,43 @@ | ||
import tailwindConfig from '@/tailwind.config'; | ||
|
||
const colors = tailwindConfig.theme.colors; | ||
export const themeConfig = { | ||
typography: { | ||
'--font-primary': 'var(--font-open-sans)', | ||
}, | ||
colors: { | ||
light: { | ||
'--text-color-primary': colors.neutral[900], | ||
'--text-color-accent': colors.green[600], | ||
'--background-color-secondary': colors.neutral[100], | ||
'--background-color-tertiary': colors.neutral[300], | ||
'--border-color-accent': colors.green[600], | ||
'--border-color-primary': colors.neutral[200], | ||
'--border-color-tertiary': colors.green[700], | ||
'--button-background-color-primary': colors.green[600], | ||
'--button-background-color-secondary': colors.white, | ||
'--button-background-color-secondary-hover': colors.neutral[100], | ||
'--button-border-color-secondary': colors.neutral[300], | ||
'--button-text-color-secondary': colors.neutral[900], | ||
'--chat-button-border-color-gradientThree': colors.green[400], | ||
'--chat-button-border-color-gradientFour': colors.green[700], | ||
'--chat-button-background-color-gradientOne': colors.green[600], | ||
'--chat-button-background-color-gradientTwo': colors.green[300], | ||
'--text-color-primary': 'var(--color-neutral-900)', | ||
'--text-color-accent': 'var(--color-green-600)', | ||
'--background-color-secondary': 'var(--color-neutral-100)', | ||
'--background-color-tertiary': 'var(--color-neutral-300)', | ||
'--border-color-accent': 'var(--color-green-600)', | ||
'--border-color-primary': 'var(--color-neutral-200)', | ||
'--border-color-tertiary': 'var(--color-green-700)', | ||
'--button-background-color-primary': 'var(--color-green-600)', | ||
'--button-background-color-secondary': 'var(--color-white)', | ||
'--button-background-color-secondary-hover': 'var(--color-neutral-100)', | ||
'--button-border-color-secondary': 'var(--color-neutral-300)', | ||
'--button-text-color-secondary': 'var(--color-neutral-900)', | ||
'--chat-button-border-color-gradientThree': 'var(--color-green-400)', | ||
'--chat-button-border-color-gradientFour': 'var(--color-green-700)', | ||
'--chat-button-background-color-gradientOne': 'var(--color-green-600)', | ||
'--chat-button-background-color-gradientTwo': 'var(--color-green-300)', | ||
}, | ||
dark: { | ||
'--text-color-primary': colors.neutral[100], | ||
'--text-color-accent': colors.green[400], | ||
'--background-color-secondary': colors.neutral[950], | ||
'--background-color-tertiary': colors.neutral[900], | ||
'--border-color-accent': colors.green[400], | ||
'--border-color-primary': colors.neutral[900], | ||
'--border-color-tertiary': colors.green[300], | ||
'--button-background-color-primary': colors.green[400], | ||
'--button-background-color-secondary': colors.neutral[950], | ||
'--button-background-color-secondary-hover': colors.neutral[900], | ||
'--button-border-color-secondary': colors.neutral[900], | ||
'--button-text-color-secondary': colors.neutral[200], | ||
'--chat-button-border-color-gradientThree': colors.green[400], | ||
'--chat-button-border-color-gradientFour': colors.green[700], | ||
'--chat-button-background-color-gradientOne': colors.green[400], | ||
'--chat-button-background-color-gradientTwo': colors.green[800], | ||
'--text-color-primary': 'var(--color-neutral-100)', | ||
'--text-color-accent': 'var(--color-green-400)', | ||
'--background-color-secondary': 'var(--color-neutral-950)', | ||
'--background-color-tertiary': 'var(--color-neutral-900)', | ||
'--border-color-accent': 'var(--color-green-400)', | ||
'--border-color-primary': 'var(--color-neutral-900)', | ||
'--border-color-tertiary': 'var(--color-green-300)', | ||
'--button-background-color-primary': 'var(--color-green-400)', | ||
'--button-background-color-secondary': 'var(--color-neutral-950)', | ||
'--button-background-color-secondary-hover': 'var(--color-neutral-900)', | ||
'--button-border-color-secondary': 'var(--color-neutral-900)', | ||
'--button-text-color-secondary': 'var(--color-neutral-200)', | ||
'--chat-button-border-color-gradientThree': 'var(--color-green-400)', | ||
'--chat-button-border-color-gradientFour': 'var(--color-green-700)', | ||
'--chat-button-background-color-gradientOne': 'var(--color-green-400)', | ||
'--chat-button-background-color-gradientTwo': 'var(--color-green-800)', | ||
}, | ||
}, | ||
}; |
2 changes: 2 additions & 0 deletions
2
apps/site/components/Downloads/DownloadButton/index.module.css
This file contains hidden or 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,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.downloadButton { | ||
@apply justify-center; | ||
|
||
|
This file contains hidden or 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,5 @@ | ||
@reference "../../../../styles/index.css"; | ||
|
||
.event { | ||
@apply flex | ||
w-fit | ||
|
This file contains hidden or 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,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.events { | ||
@apply flex | ||
flex-col | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.