-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[WIP]: tailwind v4 #7507
base: main
Are you sure you want to change the base?
[WIP]: tailwind v4 #7507
Changes from all commits
120f3fa
b705d73
da25611
47c2439
198a7d3
e3eb8a5
f27c932
e1cbbd9
6966e08
e689a4d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,5 +43,7 @@ export default { | |
'import-notation': 'string', | ||
// Allow the `@apply` at rule as its part of Tailwind | ||
'at-rule-no-deprecated': [true, { ignoreAtRules: ['apply'] }], | ||
'at-rule-no-unknown': null, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We already have a rule with at-rule-unknown. Please remove this one. |
||
'function-no-unknown': null, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of disabling the rule, please provide the correct functions that should be allowlisted. |
||
}, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,13 +4,12 @@ import HexagonGrid from '@/components/Icons/HexagonGrid'; | |
import JsIconWhite from '@/components/Icons/Logos/JsIconWhite'; | ||
import { DEFAULT_CATEGORY_OG_TYPE } from '@/next.constants.mjs'; | ||
import { defaultLocale } from '@/next.locales.mjs'; | ||
import tailwindConfig from '@/tailwind.config'; | ||
import { hexToRGBA } from '@/util/hexToRGBA'; | ||
|
||
const CATEGORY_TO_THEME_COLOUR_MAP = { | ||
announcement: tailwindConfig.theme.colors.green['700'], | ||
release: tailwindConfig.theme.colors.info['600'], | ||
vulnerability: tailwindConfig.theme.colors.warning['600'], | ||
Comment on lines
-11
to
-13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I know how to make this work, I'll do it another day. |
||
announcement: 'var(--color-green-900)', | ||
release: 'var(--color-info-600)', | ||
vulnerability: 'var(--color-warning-600)', | ||
}; | ||
|
||
type Category = keyof typeof CATEGORY_TO_THEME_COLOUR_MAP; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,23 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.blogHeader { | ||
h1 { | ||
@apply inline-flex | ||
w-full | ||
items-center | ||
justify-between; | ||
@apply inline-flex w-full items-center justify-between; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please do not inline the styles. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, my auto formatter played a trick on me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (For the whole file) |
||
|
||
a { | ||
@apply inline-flex | ||
size-9 | ||
items-center | ||
justify-center | ||
rounded-md | ||
p-2; | ||
@apply inline-flex size-9 items-center justify-center rounded-md p-2; | ||
|
||
&:hover { | ||
@apply bg-neutral-100 | ||
dark:bg-neutral-900; | ||
@apply bg-neutral-100 dark:bg-neutral-900; | ||
} | ||
} | ||
|
||
svg { | ||
@apply size-6 | ||
text-neutral-500; | ||
@apply size-6 text-neutral-500; | ||
} | ||
} | ||
|
||
p { | ||
@apply text-lg | ||
font-medium | ||
text-neutral-800 | ||
dark:text-neutral-200; | ||
@apply text-lg font-medium text-neutral-800 dark:text-neutral-200; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.alertBox { | ||
@apply flex | ||
flex-row | ||
items-center | ||
gap-2 | ||
rounded | ||
rounded-sm | ||
px-4 | ||
py-3 | ||
text-sm | ||
|
@@ -31,7 +33,7 @@ | |
} | ||
|
||
.title { | ||
@apply rounded-sm | ||
@apply rounded-xs | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did the values change between xs and sm? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
px-1.5; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../../styles/index.css"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this necessary? Can you point to docs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I mean, can you write the reference of these like |
||
|
||
.item { | ||
@apply xs:max-h-10 | ||
xs:max-w-10 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../../styles/index.css"; | ||
|
||
.overlay { | ||
@apply flex | ||
min-w-56 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.avatarGroup { | ||
@apply flex | ||
flex-wrap | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.banner { | ||
@apply flex | ||
w-full | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.wrapper { | ||
@apply flex | ||
max-w-2xl | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../../styles/index.css"; | ||
|
||
.icon { | ||
@apply size-4; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../../styles/index.css"; | ||
|
||
.item { | ||
@apply flex | ||
max-w-fit | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../../styles/index.css"; | ||
|
||
.list { | ||
@apply xs:w-full | ||
flex | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.root { | ||
> [role='tabpanel'] > :first-child { | ||
@apply rounded-t-none; | ||
|
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -1,3 +1,5 @@ | ||||||||
@reference "../../../styles/index.css"; | ||||||||
|
||||||||
.languageDropdown { | ||||||||
@apply h-9 | ||||||||
w-9 | ||||||||
|
@@ -17,8 +19,7 @@ | |||||||
@apply max-h-80 | ||||||||
w-48 | ||||||||
overflow-hidden | ||||||||
rounded | ||||||||
border | ||||||||
rounded-sm border | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
border-neutral-200 | ||||||||
bg-white | ||||||||
shadow-lg | ||||||||
|
@@ -38,7 +39,7 @@ | |||||||
text-sm | ||||||||
font-medium | ||||||||
text-neutral-800 | ||||||||
outline-none | ||||||||
outline-hidden | ||||||||
data-[highlighted]:bg-green-600 | ||||||||
data-[highlighted]:text-white | ||||||||
dark:text-white; | ||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../styles/index.css"; | ||
|
||
.nodejsLogo { | ||
@apply h-6 | ||
w-20; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@reference "../../../../styles/index.css"; | ||
|
||
.ellipsis { | ||
@apply w-10 | ||
px-3 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.