Skip to content
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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions apps/site/.postcssrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"postcss-mixins": {},
"postcss-simple-vars": {},
"postcss-calc": {},
"postcss-import": {},
"tailwindcss/nesting": {},
"tailwindcss": {},
"autoprefixer": {}
"@tailwindcss/postcss": {}
}
}
2 changes: 2 additions & 0 deletions apps/site/.stylelintrc.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ export default {
'media-feature-range-notation': 'prefix',
// Adopts the import notation from `postcss-import`
'import-notation': 'string',
'at-rule-no-unknown': null,
'function-no-unknown': null,
},
};
25 changes: 7 additions & 18 deletions apps/site/components/Blog/BlogHeader/index.module.css
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;

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;
}
}
2 changes: 2 additions & 0 deletions apps/site/components/Common/AlertBox/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.alertBox {
@apply flex
flex-row
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../../styles/index.css";

.item {
@apply xs:max-h-10
xs:max-w-10
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../../styles/index.css";

.overlay {
@apply flex
min-w-56
Expand Down
2 changes: 2 additions & 0 deletions apps/site/components/Common/AvatarGroup/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.avatarGroup {
@apply flex
flex-wrap
Expand Down
4 changes: 3 additions & 1 deletion apps/site/components/Common/Badge/index.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
@reference "../../../styles/index.css";

.wrapper {
@apply flex
w-fit
items-center
rounded-full
border
py-1
pl-1
pr-2.5
pl-1
text-sm
font-medium;

Expand Down
2 changes: 2 additions & 0 deletions apps/site/components/Common/Banner/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.banner {
@apply flex
w-full
Expand Down
2 changes: 2 additions & 0 deletions apps/site/components/Common/Blockquote/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.wrapper {
@apply flex
max-w-2xl
Expand Down
6 changes: 4 additions & 2 deletions apps/site/components/Common/BlogPostCard/index.module.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
@reference "../../../styles/index.css";

.container {
@apply max-w-full
flex-1;
}

.subtitle {
@apply mb-2
mt-6
@apply mt-6
mb-2
inline-block
text-xs
font-semibold
Expand Down
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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../../styles/index.css";

.link {
@apply max-w-fit
truncate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../../styles/index.css";

.list {
@apply xs:w-full
flex
Expand Down
12 changes: 7 additions & 5 deletions apps/site/components/Common/Button/index.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@reference "../../../styles/index.css";

.button {
@apply px-4.5
relative
@apply relative
inline-flex
items-center
justify-center
gap-2
px-4.5
py-2.5
text-center
font-semibold
Expand Down Expand Up @@ -105,9 +107,9 @@
&::before {
@apply bg-gradient-glow-backdrop
absolute
left-0
right-0
top-0
right-0
left-0
-z-10
mx-auto
h-full
Expand All @@ -119,8 +121,8 @@
&::after {
@apply absolute
-top-px
left-0
right-0
left-0
mx-auto
h-px
w-2/5
Expand Down
8 changes: 5 additions & 3 deletions apps/site/components/Common/CodeBox/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.root {
@apply w-full
rounded
Expand Down Expand Up @@ -32,12 +34,12 @@
}

&:not(:empty:last-child)::after {
@apply w-4.5
font-ibm-plex-mono
@apply font-ibm-plex-mono
absolute
left-0
top-0
left-0
mr-4
w-4.5
text-right
text-neutral-600
[content:counter(line)]
Expand Down
2 changes: 2 additions & 0 deletions apps/site/components/Common/CodeTabs/index.module.css
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;
Expand Down
2 changes: 2 additions & 0 deletions apps/site/components/Common/CrossLink/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.crossLink {
@apply flex
flex-col
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
@reference "../../../styles/index.css";

.glowingBackdrop {
@apply absolute
left-0
top-0
left-0
-z-10
size-full
opacity-50
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.languageDropdown {
@apply h-9
w-9
Expand Down
4 changes: 3 additions & 1 deletion apps/site/components/Common/LinkTabs/index.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
@reference "../../../styles/index.css";

.tabsList {
@apply font-open-sans
max-xs:hidden
mb-6
mt-10
mb-6
flex
gap-2
border-b
Expand Down
2 changes: 2 additions & 0 deletions apps/site/components/Common/NodejsLogo/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.nodejsLogo {
@apply h-6
w-20;
Expand Down
2 changes: 2 additions & 0 deletions apps/site/components/Common/Notification/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.root {
@apply m-6
rounded
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../../styles/index.css";

.ellipsis {
@apply w-10
px-3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
@reference "../../../../styles/index.css";

.listItem,
.listItem:link,
.listItem:active {
@apply aria-current:bg-green-600
aria-current:text-white
flex
@apply flex
size-10
items-center
justify-center
rounded
px-3
py-2.5
text-neutral-800
aria-current:bg-green-600
aria-current:text-white
motion-safe:transition-colors
dark:text-neutral-200;

Expand Down
2 changes: 2 additions & 0 deletions apps/site/components/Common/Pagination/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.pagination {
@apply grid
items-center
Expand Down
46 changes: 24 additions & 22 deletions apps/site/components/Common/Preview/index.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@reference "../../../styles/index.css";

.root {
@apply @container/preview
relative
Expand All @@ -11,15 +13,15 @@

&::after {
@apply bg-gradient-radial
@md/preview:blur-3xl
absolute
inset-0
m-auto
aspect-square
w-1/3
rounded-full
blur-2xl
content-[''];
content-['']
@md/preview:blur-3xl;

&.announcements {
@apply from-green-700/90;
Expand All @@ -35,15 +37,7 @@
}

.container {
@apply @sm/preview:text-base
@md/preview:gap-6
@md/preview:text-lg
@lg/preview:gap-8
@lg/preview:text-xl
@xl/preview:gap-12
@xl/preview:text-2xl
@2xl/preview:text-3xl
z-10
@apply z-10
mx-auto
flex
w-2/3
Expand All @@ -53,29 +47,37 @@
text-center
text-xs
font-semibold
text-white;
text-white
@sm/preview:text-base
@md/preview:gap-6
@md/preview:text-lg
@lg/preview:gap-8
@lg/preview:text-xl
@xl/preview:gap-12
@xl/preview:text-2xl
@2xl/preview:text-3xl;

.hexagon {
@apply @md/preview:h-3/5
@apply absolute
inset-0
m-auto
size-full
@md/preview:h-3/5
@md/preview:w-3/5
@lg/preview:h-2/3
@lg/preview:w-2/3
@xl/preview:h-3/5
@xl/preview:w-3/5
@2xl/preview:h-2/3
@2xl/preview:w-2/3
absolute
inset-0
m-auto
size-full;
@2xl/preview:w-2/3;
}

.logo {
@apply @md/preview:size-14
@apply mx-auto
size-6
@md/preview:size-14
@lg/preview:size-16
@xl/preview:size-20
mx-auto
size-6;
@xl/preview:size-20;
}
}
}
Loading