Skip to content

Commit 0677605

Browse files
committed
feat: tailwindcss
1 parent a87f9db commit 0677605

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

apps/docs/app/globals.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import "tailwindcss";
2+
@import "@repo/tailwind-config";
3+
@import "nextra-theme-docs/style.css";
4+
5+
@variant dark (&:where(.dark *));

apps/docs/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "next dev --port 3000",
88
"build": "next build",
9-
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind",
9+
"postbuild": "pagefind --site .next/server/app --output-path dist/_pagefind",
1010
"start": "next start",
1111
"lint": "next lint --max-warnings 0",
1212
"check-types": "tsc --noEmit"
@@ -21,13 +21,18 @@
2121
"devDependencies": {
2222
"@next/eslint-plugin-next": "^15.3.0",
2323
"@repo/eslint-config": "workspace:*",
24+
"@repo/tailwind-config": "workspace:*",
2425
"@repo/tsconfig": "workspace:*",
26+
"@tailwindcss/postcss": "^4.1.5",
2527
"@types/mdx": "^2.0.13",
2628
"@types/node": "^22.15.3",
2729
"@types/react": "^19.1.0",
2830
"@types/react-dom": "^19.1.1",
31+
"autoprefixer": "^10.4.20",
2932
"eslint": "^9.26.0",
3033
"pagefind": "^1.3.0",
34+
"postcss": "^8.5.3",
35+
"tailwindcss": "^4.1.5",
3136
"typescript": "5.8.2"
3237
}
3338
}

apps/docs/postcss.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { postcssConfig } from "@repo/tailwind-config/postcss";
2+
3+
export default postcssConfig;

apps/docs/tsconfig.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@
66
"name": "next"
77
}
88
],
9-
"allowJs": true
9+
"allowJs": true,
10+
"baseUrl": ".",
11+
"paths": {
12+
"@/*": ["./*"]
13+
}
1014
},
1115
"include": [
1216
"**/*.ts",
1317
"**/*.tsx",
18+
".next/types/**/*.ts",
19+
"build/types/**/*.ts",
1420
"next-env.d.ts",
1521
"next.config.ts",
16-
".next/types/**/*.ts"
22+
"dist/types/**/*.ts"
1723
],
18-
"exclude": [
19-
"node_modules"
20-
]
24+
"exclude": ["node_modules"]
2125
}

0 commit comments

Comments
 (0)