Skip to content

Commit a689eee

Browse files
authored
migrate to tailwind 4
1 parent 48847aa commit a689eee

File tree

71 files changed

+1008
-791
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+1008
-791
lines changed

apps/site/.postcssrc.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"postcss-mixins": {},
44
"postcss-simple-vars": {},
55
"postcss-calc": {},
6-
"postcss-import": {},
7-
"tailwindcss/nesting": {},
8-
"tailwindcss": {},
9-
"autoprefixer": {}
6+
"@tailwindcss/postcss": {}
107
}
118
}

apps/site/.stylelintrc.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,7 @@ export default {
4343
'import-notation': 'string',
4444
// Allow the `@apply` at rule as its part of Tailwind
4545
'at-rule-no-deprecated': [true, { ignoreAtRules: ['apply'] }],
46+
'at-rule-no-unknown': null,
47+
'function-no-unknown': null,
4648
},
4749
};

apps/site/app/[locale]/next-data/og/[category]/[title]/route.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import HexagonGrid from '@/components/Icons/HexagonGrid';
44
import JsIconWhite from '@/components/Icons/Logos/JsIconWhite';
55
import { DEFAULT_CATEGORY_OG_TYPE } from '@/next.constants.mjs';
66
import { defaultLocale } from '@/next.locales.mjs';
7-
import tailwindConfig from '@/tailwind.config';
87
import { hexToRGBA } from '@/util/hexToRGBA';
98

109
const CATEGORY_TO_THEME_COLOUR_MAP = {
11-
announcement: tailwindConfig.theme.colors.green['700'],
12-
release: tailwindConfig.theme.colors.info['600'],
13-
vulnerability: tailwindConfig.theme.colors.warning['600'],
10+
announcement: 'var(--color-green-900)',
11+
release: 'var(--color-info-600)',
12+
vulnerability: 'var(--color-warning-600)',
1413
};
1514

1615
type Category = keyof typeof CATEGORY_TO_THEME_COLOUR_MAP;

apps/site/components/Blog/BlogHeader/index.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@reference "../../../styles/index.css";
2+
13
.blogHeader {
24
h1 {
35
@apply inline-flex

apps/site/components/Common/AlertBox/index.module.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
@reference "../../../styles/index.css";
2+
13
.alertBox {
24
@apply flex
35
flex-row
46
items-center
57
gap-2
6-
rounded
8+
rounded-sm
79
px-4
810
py-3
911
text-sm
@@ -31,7 +33,7 @@
3133
}
3234

3335
.title {
34-
@apply rounded-sm
36+
@apply rounded-xs
3537
px-1.5;
3638
}
3739

apps/site/components/Common/AvatarGroup/Avatar/index.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@reference "../../../../styles/index.css";
2+
13
.item {
24
@apply xs:max-h-10
35
xs:max-w-10

apps/site/components/Common/AvatarGroup/Overlay/index.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@reference "../../../../styles/index.css";
2+
13
.overlay {
24
@apply flex
35
min-w-56

apps/site/components/Common/AvatarGroup/index.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@reference "../../../styles/index.css";
2+
13
.avatarGroup {
24
@apply flex
35
flex-wrap

apps/site/components/Common/Badge/index.module.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
@reference "../../../styles/index.css";
2+
13
.wrapper {
24
@apply flex
35
w-fit
46
items-center
57
rounded-full
68
border
79
py-1
8-
pl-1
910
pr-2.5
11+
pl-1
1012
text-sm
1113
font-medium;
1214

apps/site/components/Common/Banner/index.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@reference "../../../styles/index.css";
2+
13
.banner {
24
@apply flex
35
w-full

0 commit comments

Comments
 (0)