Skip to content

Commit 53aee64

Browse files
committed
feat: trying to add shadcn setup
1 parent 6a35761 commit 53aee64

5 files changed

Lines changed: 27 additions & 2 deletions

File tree

packages/ui/postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

packages/ui/src/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
/* ... */

packages/ui/tailwind.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ["./index.html", "./src/**/*.{ts,tsx,js,jsx}"],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
}

packages/ui/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"esModuleInterop": false,
66
"allowSyntheticDefaultImports": true,
77
"strict": true,
8-
"types": ["vite/client", "vitest"]
8+
"types": ["vite/client", "vitest"],
9+
"paths": {
10+
"@/*": ["./src/lib/*"]
11+
}
912
},
1013
"files": [],
1114
"include": [],

packages/ui/tsconfig.lib.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"@nx/react/typings/cssmodule.d.ts",
88
"@nx/react/typings/image.d.ts",
99
"vite/client"
10-
]
10+
],
11+
"paths": {
12+
"@/*": ["./src/lib/*"]
13+
}
1114
},
1215
"exclude": [
1316
"**/*.spec.ts",

0 commit comments

Comments
 (0)