diff --git a/apps/site/.postcssrc.json b/apps/site/.postcssrc.json
index f48fb87dce6e0..e192f25ec3756 100644
--- a/apps/site/.postcssrc.json
+++ b/apps/site/.postcssrc.json
@@ -3,9 +3,6 @@
"postcss-mixins": {},
"postcss-simple-vars": {},
"postcss-calc": {},
- "postcss-import": {},
- "tailwindcss/nesting": {},
- "tailwindcss": {},
- "autoprefixer": {}
+ "@tailwindcss/postcss": {}
}
}
diff --git a/apps/site/.stylelintrc.mjs b/apps/site/.stylelintrc.mjs
index 17fc884a3c41b..9530ae6c001b8 100644
--- a/apps/site/.stylelintrc.mjs
+++ b/apps/site/.stylelintrc.mjs
@@ -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,
+ 'function-no-unknown': null,
},
};
diff --git a/apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx b/apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx
index 844c9fa6753f5..9783979f7b67a 100644
--- a/apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx
+++ b/apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx
@@ -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'],
+ announcement: 'var(--color-green-900)',
+ release: 'var(--color-info-600)',
+ vulnerability: 'var(--color-warning-600)',
};
type Category = keyof typeof CATEGORY_TO_THEME_COLOUR_MAP;
diff --git a/apps/site/components/Blog/BlogHeader/index.module.css b/apps/site/components/Blog/BlogHeader/index.module.css
index b7a0764768f5f..d5dffb4bcbe29 100644
--- a/apps/site/components/Blog/BlogHeader/index.module.css
+++ b/apps/site/components/Blog/BlogHeader/index.module.css
@@ -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;
}
}
diff --git a/apps/site/components/Common/AlertBox/index.module.css b/apps/site/components/Common/AlertBox/index.module.css
index c3e31ae888704..1bc1ee6f48316 100644
--- a/apps/site/components/Common/AlertBox/index.module.css
+++ b/apps/site/components/Common/AlertBox/index.module.css
@@ -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
px-1.5;
}
diff --git a/apps/site/components/Common/AvatarGroup/Avatar/index.module.css b/apps/site/components/Common/AvatarGroup/Avatar/index.module.css
index b96dded805343..fda686c5a197f 100644
--- a/apps/site/components/Common/AvatarGroup/Avatar/index.module.css
+++ b/apps/site/components/Common/AvatarGroup/Avatar/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.item {
@apply xs:max-h-10
xs:max-w-10
diff --git a/apps/site/components/Common/AvatarGroup/Overlay/index.module.css b/apps/site/components/Common/AvatarGroup/Overlay/index.module.css
index 7c8188658b62c..22aecba575589 100644
--- a/apps/site/components/Common/AvatarGroup/Overlay/index.module.css
+++ b/apps/site/components/Common/AvatarGroup/Overlay/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.overlay {
@apply flex
min-w-56
diff --git a/apps/site/components/Common/AvatarGroup/index.module.css b/apps/site/components/Common/AvatarGroup/index.module.css
index 91766d2b7faed..28c8546d75af5 100644
--- a/apps/site/components/Common/AvatarGroup/index.module.css
+++ b/apps/site/components/Common/AvatarGroup/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.avatarGroup {
@apply flex
flex-wrap
diff --git a/apps/site/components/Common/Badge/index.module.css b/apps/site/components/Common/Badge/index.module.css
index 40c28b3285188..f593141f39f3f 100644
--- a/apps/site/components/Common/Badge/index.module.css
+++ b/apps/site/components/Common/Badge/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.wrapper {
@apply flex
w-fit
@@ -5,8 +7,8 @@
rounded-full
border
py-1
- pl-1
pr-2.5
+ pl-1
text-sm
font-medium;
diff --git a/apps/site/components/Common/Banner/index.module.css b/apps/site/components/Common/Banner/index.module.css
index f3c2b9c1ec77c..0fe2cf0a6259e 100644
--- a/apps/site/components/Common/Banner/index.module.css
+++ b/apps/site/components/Common/Banner/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.banner {
@apply flex
w-full
diff --git a/apps/site/components/Common/Blockquote/index.module.css b/apps/site/components/Common/Blockquote/index.module.css
index 410802f9cb90f..f91b5411b9aab 100644
--- a/apps/site/components/Common/Blockquote/index.module.css
+++ b/apps/site/components/Common/Blockquote/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.wrapper {
@apply flex
max-w-2xl
diff --git a/apps/site/components/Common/BlogPostCard/index.module.css b/apps/site/components/Common/BlogPostCard/index.module.css
index 178d193cda6e7..53ec2686369f0 100644
--- a/apps/site/components/Common/BlogPostCard/index.module.css
+++ b/apps/site/components/Common/BlogPostCard/index.module.css
@@ -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
diff --git a/apps/site/components/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css b/apps/site/components/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css
index bb1daa3ce8b60..26edb2fcc3701 100644
--- a/apps/site/components/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css
+++ b/apps/site/components/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.icon {
@apply size-4;
}
diff --git a/apps/site/components/Common/Breadcrumbs/BreadcrumbItem/index.module.css b/apps/site/components/Common/Breadcrumbs/BreadcrumbItem/index.module.css
index 713fad32dac39..e186268737ac3 100644
--- a/apps/site/components/Common/Breadcrumbs/BreadcrumbItem/index.module.css
+++ b/apps/site/components/Common/Breadcrumbs/BreadcrumbItem/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.item {
@apply flex
max-w-fit
diff --git a/apps/site/components/Common/Breadcrumbs/BreadcrumbLink/index.module.css b/apps/site/components/Common/Breadcrumbs/BreadcrumbLink/index.module.css
index ea0d6b9db96b5..457ca3bed841d 100644
--- a/apps/site/components/Common/Breadcrumbs/BreadcrumbLink/index.module.css
+++ b/apps/site/components/Common/Breadcrumbs/BreadcrumbLink/index.module.css
@@ -1,9 +1,11 @@
+@reference "../../../../styles/index.css";
+
.link {
@apply max-w-fit
truncate;
&.active {
- @apply rounded
+ @apply rounded-sm
bg-green-600
px-2
py-1
diff --git a/apps/site/components/Common/Breadcrumbs/BreadcrumbRoot/index.module.css b/apps/site/components/Common/Breadcrumbs/BreadcrumbRoot/index.module.css
index 51043398d4657..af186b419b4e0 100644
--- a/apps/site/components/Common/Breadcrumbs/BreadcrumbRoot/index.module.css
+++ b/apps/site/components/Common/Breadcrumbs/BreadcrumbRoot/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.list {
@apply xs:w-full
flex
diff --git a/apps/site/components/Common/Button/index.module.css b/apps/site/components/Common/Button/index.module.css
index 6f2d69b8e9bef..d69cec213a6c1 100644
--- a/apps/site/components/Common/Button/index.module.css
+++ b/apps/site/components/Common/Button/index.module.css
@@ -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
@@ -25,7 +27,7 @@
}
&.neutral {
- @apply rounded
+ @apply rounded-sm
bg-neutral-900
text-white
dark:text-neutral-200;
@@ -45,12 +47,12 @@
}
&.primary {
- @apply rounded
+ @apply rounded-sm
border
border-green-600
bg-green-600
text-white
- shadow-sm;
+ shadow-xs;
&:hover:not([aria-disabled='true']) {
@apply border-green-700
@@ -100,14 +102,14 @@
border-green-600/30
bg-green-600/10
text-white
- shadow-sm;
+ shadow-xs;
&::before {
@apply bg-gradient-glow-backdrop
absolute
- left-0
- right-0
top-0
+ right-0
+ left-0
-z-10
mx-auto
h-full
@@ -119,8 +121,8 @@
&::after {
@apply absolute
-top-px
- left-0
right-0
+ left-0
mx-auto
h-px
w-2/5
diff --git a/apps/site/components/Common/CodeBox/index.module.css b/apps/site/components/Common/CodeBox/index.module.css
index 424d721f17e29..885b185e0aa4b 100644
--- a/apps/site/components/Common/CodeBox/index.module.css
+++ b/apps/site/components/Common/CodeBox/index.module.css
@@ -1,6 +1,8 @@
+@reference "../../../styles/index.css";
+
.root {
@apply w-full
- rounded
+ rounded-sm
border
border-neutral-900
bg-neutral-950;
@@ -33,12 +35,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)]
diff --git a/apps/site/components/Common/CodeTabs/index.module.css b/apps/site/components/Common/CodeTabs/index.module.css
index 5c79f7ecd4fd4..2e49f32bdfc93 100644
--- a/apps/site/components/Common/CodeTabs/index.module.css
+++ b/apps/site/components/Common/CodeTabs/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.root {
> [role='tabpanel'] > :first-child {
@apply rounded-t-none;
diff --git a/apps/site/components/Common/CrossLink/index.module.css b/apps/site/components/Common/CrossLink/index.module.css
index 0e2d8d959e1dd..84d0831c81288 100644
--- a/apps/site/components/Common/CrossLink/index.module.css
+++ b/apps/site/components/Common/CrossLink/index.module.css
@@ -1,10 +1,12 @@
+@reference "../../../styles/index.css";
+
.crossLink {
@apply flex
flex-col
items-start
gap-2
truncate
- rounded
+ rounded-sm
border
border-solid
border-neutral-300
diff --git a/apps/site/components/Common/GlowingBackdrop/index.module.css b/apps/site/components/Common/GlowingBackdrop/index.module.css
index a7f2d817c3091..f4a8ac7fa0c12 100644
--- a/apps/site/components/Common/GlowingBackdrop/index.module.css
+++ b/apps/site/components/Common/GlowingBackdrop/index.module.css
@@ -1,7 +1,9 @@
+@reference "../../../styles/index.css";
+
.glowingBackdrop {
@apply absolute
- left-0
top-0
+ left-0
-z-10
size-full
opacity-50
diff --git a/apps/site/components/Common/LanguageDropDown/index.module.css b/apps/site/components/Common/LanguageDropDown/index.module.css
index 7f1a0d1052106..40e1a4b82b1c3 100644
--- a/apps/site/components/Common/LanguageDropDown/index.module.css
+++ b/apps/site/components/Common/LanguageDropDown/index.module.css
@@ -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
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;
diff --git a/apps/site/components/Common/LinkTabs/index.module.css b/apps/site/components/Common/LinkTabs/index.module.css
index c8f766392b409..77dcdd19e480b 100644
--- a/apps/site/components/Common/LinkTabs/index.module.css
+++ b/apps/site/components/Common/LinkTabs/index.module.css
@@ -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
diff --git a/apps/site/components/Common/NodejsLogo/index.module.css b/apps/site/components/Common/NodejsLogo/index.module.css
index 2e74ac633f684..f253c9f4f593f 100644
--- a/apps/site/components/Common/NodejsLogo/index.module.css
+++ b/apps/site/components/Common/NodejsLogo/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.nodejsLogo {
@apply h-6
w-20;
diff --git a/apps/site/components/Common/Notification/index.module.css b/apps/site/components/Common/Notification/index.module.css
index 981e1b9d03cb8..f2c2e5de40ab1 100644
--- a/apps/site/components/Common/Notification/index.module.css
+++ b/apps/site/components/Common/Notification/index.module.css
@@ -1,6 +1,8 @@
+@reference "../../../styles/index.css";
+
.root {
@apply m-6
- rounded
+ rounded-sm
border
border-neutral-200
bg-white
diff --git a/apps/site/components/Common/Pagination/Ellipsis/index.module.css b/apps/site/components/Common/Pagination/Ellipsis/index.module.css
index b4ce7ce86b786..df82c6260eb2b 100644
--- a/apps/site/components/Common/Pagination/Ellipsis/index.module.css
+++ b/apps/site/components/Common/Pagination/Ellipsis/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.ellipsis {
@apply w-10
px-3
diff --git a/apps/site/components/Common/Pagination/PaginationListItem/index.module.css b/apps/site/components/Common/Pagination/PaginationListItem/index.module.css
index ca629ffce0a31..9b64c72cf5dfe 100644
--- a/apps/site/components/Common/Pagination/PaginationListItem/index.module.css
+++ b/apps/site/components/Common/Pagination/PaginationListItem/index.module.css
@@ -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
+ rounded-sm
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;
diff --git a/apps/site/components/Common/Pagination/index.module.css b/apps/site/components/Common/Pagination/index.module.css
index 9a7b5936e7e98..ac1eacf6da0e5 100644
--- a/apps/site/components/Common/Pagination/index.module.css
+++ b/apps/site/components/Common/Pagination/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.pagination {
@apply grid
items-center
diff --git a/apps/site/components/Common/Preview/index.module.css b/apps/site/components/Common/Preview/index.module.css
index d2a68ff0df3fb..9e06cd44cb829 100644
--- a/apps/site/components/Common/Preview/index.module.css
+++ b/apps/site/components/Common/Preview/index.module.css
@@ -1,17 +1,18 @@
+@reference "../../../styles/index.css";
+
.root {
@apply @container/preview
relative
flex
aspect-[1.90/1]
items-center
- rounded
+ rounded-sm
border
border-neutral-900
bg-neutral-950;
&::after {
@apply bg-gradient-radial
- @md/preview:blur-3xl
absolute
inset-0
m-auto
@@ -19,7 +20,8 @@
w-1/3
rounded-full
blur-2xl
- content-[''];
+ content-['']
+ @md/preview:blur-3xl;
&.announcements {
@apply from-green-700/90;
@@ -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
@@ -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;
}
}
}
diff --git a/apps/site/components/Common/ProgressionSidebar/ProgressionSidebarGroup/index.module.css b/apps/site/components/Common/ProgressionSidebar/ProgressionSidebarGroup/index.module.css
index b9a9678173251..6466db43150a8 100644
--- a/apps/site/components/Common/ProgressionSidebar/ProgressionSidebarGroup/index.module.css
+++ b/apps/site/components/Common/ProgressionSidebar/ProgressionSidebarGroup/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.group {
@apply flex
flex-col
@@ -16,8 +18,8 @@
&::after {
@apply absolute
- left-[0.45rem]
top-0
+ left-[0.45rem]
z-10
h-full
w-px
@@ -40,8 +42,8 @@
&:last-child::after {
@apply absolute
- left-0
top-[calc(50%+0.25rem)]
+ left-0
h-20
w-4
bg-white
diff --git a/apps/site/components/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css b/apps/site/components/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css
index 1783a37464340..c0639b1131181 100644
--- a/apps/site/components/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css
+++ b/apps/site/components/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
a.item {
@apply font-regular
relative
diff --git a/apps/site/components/Common/ProgressionSidebar/index.module.css b/apps/site/components/Common/ProgressionSidebar/index.module.css
index c986e4572678c..bdc3584038d42 100644
--- a/apps/site/components/Common/ProgressionSidebar/index.module.css
+++ b/apps/site/components/Common/ProgressionSidebar/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.wrapper {
@apply flex
w-full
diff --git a/apps/site/components/Common/Search/utils.ts b/apps/site/components/Common/Search/utils.ts
index fdab2c893008f..ebaa909cc5263 100644
--- a/apps/site/components/Common/Search/utils.ts
+++ b/apps/site/components/Common/Search/utils.ts
@@ -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-200)',
+ '--button-text-color-secondary': 'var(--color-neutral-900)',
+ '--chat-button-border-color-gradientThree': 'var(--color-green-700)',
+ '--chat-button-border-color-gradientFour': 'var(--color-green-600)',
+ '--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-600)',
+ '--button-background-color-secondary': 'var(--color-neutral-900)',
+ '--button-background-color-secondary-hover': 'var(--color-neutral-800)',
+ '--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)',
},
},
};
diff --git a/apps/site/components/Common/Select/index.module.css b/apps/site/components/Common/Select/index.module.css
index 1e13248039a83..e8f2ce47cf8ea 100644
--- a/apps/site/components/Common/Select/index.module.css
+++ b/apps/site/components/Common/Select/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.select {
@apply inline-flex
flex-col
@@ -13,15 +15,14 @@
}
.trigger {
- @apply shadow-xs
+ @apply r
+ ounded-sm
inline-flex
h-11
w-full
min-w-[17rem]
- items-center
- justify-between
+ items-center justify-between
gap-2
- rounded
border
border-neutral-300
bg-white
@@ -31,7 +32,8 @@
text-base
font-medium
text-neutral-900
- outline-none
+ shadow-xs
+ outline-hidden
focus:border-neutral-500
focus:ring-1
focus:ring-neutral-500
@@ -72,19 +74,19 @@
dark:bg-neutral-950;
.item {
- @apply select-none
- truncate
+ @apply truncate
px-2.5
py-1.5
text-sm
- font-medium;
+ font-medium
+ select-none;
}
.text {
@apply text-neutral-800
data-[highlighted]:bg-green-500
data-[highlighted]:text-white
- data-[highlighted]:outline-none
+ data-[highlighted]:outline-hidden
dark:text-neutral-200
dark:data-[highlighted]:bg-green-600
dark:data-[highlighted]:text-white;
@@ -134,12 +136,12 @@
.text {
@apply text-neutral-900
- data-[highlighted]:bg-neutral-100
data-[disabled]:text-neutral-600
+ data-[highlighted]:bg-neutral-100
data-[highlighted]:text-neutral-900
dark:text-white
- dark:data-[highlighted]:bg-neutral-900
dark:data-[disabled]:text-neutral-700
+ dark:data-[highlighted]:bg-neutral-900
dark:data-[highlighted]:text-white;
}
diff --git a/apps/site/components/Common/Skeleton/index.module.css b/apps/site/components/Common/Skeleton/index.module.css
index 389dc00ca4499..04d3a89548e02 100644
--- a/apps/site/components/Common/Skeleton/index.module.css
+++ b/apps/site/components/Common/Skeleton/index.module.css
@@ -1,15 +1,17 @@
+@reference "../../../styles/index.css";
+
.skeleton {
@apply dark:animate-pulse-dark
pointer-events-none
animate-pulse
cursor-default
- select-none
rounded-md
border-none
bg-clip-border
text-transparent
shadow-none
- outline-none;
+ outline-hidden
+ select-none;
}
.skeleton[data-inline-skeleton] {
diff --git a/apps/site/components/Common/Tabs/index.module.css b/apps/site/components/Common/Tabs/index.module.css
index 1703d143e6b3a..02699ad79bae4 100644
--- a/apps/site/components/Common/Tabs/index.module.css
+++ b/apps/site/components/Common/Tabs/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.tabsRoot {
@apply max-w-full;
@@ -9,13 +11,13 @@
overflow-x-auto;
.tabsTrigger {
- @apply whitespace-nowrap
- border-b-2
+ @apply border-b-2
border-b-transparent
px-1
pb-[11px]
text-sm
font-semibold
+ whitespace-nowrap
text-neutral-800
dark:text-neutral-200;
diff --git a/apps/site/components/Common/ThemeToggle/index.module.css b/apps/site/components/Common/ThemeToggle/index.module.css
index c2cd6bb230a91..2d7031977e663 100644
--- a/apps/site/components/Common/ThemeToggle/index.module.css
+++ b/apps/site/components/Common/ThemeToggle/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.themeToggle {
@apply size-9
rounded-md
diff --git a/apps/site/components/Common/Tooltip/index.module.css b/apps/site/components/Common/Tooltip/index.module.css
index 475db244ae82b..041d72b0f3af1 100644
--- a/apps/site/components/Common/Tooltip/index.module.css
+++ b/apps/site/components/Common/Tooltip/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.content {
@apply rounded-md
border
diff --git a/apps/site/components/Containers/Footer/index.module.css b/apps/site/components/Containers/Footer/index.module.css
index e388fa5341dba..7ddf02a8baedf 100644
--- a/apps/site/components/Containers/Footer/index.module.css
+++ b/apps/site/components/Containers/Footer/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.footer {
@apply flex
flex-col
diff --git a/apps/site/components/Containers/MetaBar/index.module.css b/apps/site/components/Containers/MetaBar/index.module.css
index 8d867a2b2e0d1..b3cdd6e0ccbc2 100644
--- a/apps/site/components/Containers/MetaBar/index.module.css
+++ b/apps/site/components/Containers/MetaBar/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.wrapper {
@apply flex
w-full
diff --git a/apps/site/components/Containers/NavBar/NavItem/index.module.css b/apps/site/components/Containers/NavBar/NavItem/index.module.css
index 17ccfee6aab58..dab0478498032 100644
--- a/apps/site/components/Containers/NavBar/NavItem/index.module.css
+++ b/apps/site/components/Containers/NavBar/NavItem/index.module.css
@@ -1,8 +1,10 @@
+@reference "../../../../styles/index.css";
+
.navItem {
@apply inline-flex
items-center
gap-2
- rounded
+ rounded-sm
px-3
py-2
motion-safe:transition-colors;
diff --git a/apps/site/components/Containers/NavBar/index.module.css b/apps/site/components/Containers/NavBar/index.module.css
index 77f318d069a88..0d57d37162397 100644
--- a/apps/site/components/Containers/NavBar/index.module.css
+++ b/apps/site/components/Containers/NavBar/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.container {
@apply border-neutral-200
bg-white
diff --git a/apps/site/components/Containers/Sidebar/SidebarGroup/index.module.css b/apps/site/components/Containers/Sidebar/SidebarGroup/index.module.css
index 52f0d7507fadf..e45cb0219a397 100644
--- a/apps/site/components/Containers/Sidebar/SidebarGroup/index.module.css
+++ b/apps/site/components/Containers/Sidebar/SidebarGroup/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.group {
@apply flex
w-full
diff --git a/apps/site/components/Containers/Sidebar/SidebarItem/index.module.css b/apps/site/components/Containers/Sidebar/SidebarItem/index.module.css
index 38c89b9fd6028..dd4e874291cef 100644
--- a/apps/site/components/Containers/Sidebar/SidebarItem/index.module.css
+++ b/apps/site/components/Containers/Sidebar/SidebarItem/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../../styles/index.css";
+
.sideBarItem {
@apply flex
w-full
@@ -26,7 +28,7 @@
}
.active {
- @apply rounded
+ @apply rounded-sm
bg-green-600
text-white
dark:text-white;
diff --git a/apps/site/components/Containers/Sidebar/index.module.css b/apps/site/components/Containers/Sidebar/index.module.css
index 7324ae7ba9f29..0936af78362e6 100644
--- a/apps/site/components/Containers/Sidebar/index.module.css
+++ b/apps/site/components/Containers/Sidebar/index.module.css
@@ -1,3 +1,5 @@
+@reference "../../../styles/index.css";
+
.wrapper {
@apply flex
w-full
diff --git a/apps/site/components/Downloads/Release/ReleaseCodeBox.tsx b/apps/site/components/Downloads/Release/ReleaseCodeBox.tsx
index 70de6d02fc989..146c81544cdf1 100644
--- a/apps/site/components/Downloads/Release/ReleaseCodeBox.tsx
+++ b/apps/site/components/Downloads/Release/ReleaseCodeBox.tsx
@@ -94,7 +94,7 @@ const ReleaseCodeBox: FC = () => {
} = currentPlatform ?? {};
return (
-
+