Skip to content

Commit 19b599c

Browse files
committed
setting: tailwind, shadcn, mdx, 폰트 설정
1 parent 62585c0 commit 19b599c

File tree

14 files changed

+1528
-141
lines changed

14 files changed

+1528
-141
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@
2424
},
2525
"[json]": {
2626
"editor.defaultFormatter": "biomejs.biome"
27+
},
28+
"[tailwindcss]": {
29+
"editor.defaultFormatter": "biomejs.biome"
2730
}
2831
}

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/app/globals.css",
9+
"baseColor": "stone",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

next.config.ts

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
1-
import type { NextConfig } from "next";
1+
import createMDX from '@next/mdx'
2+
import type { NextConfig } from 'next'
23

34
const nextConfig: NextConfig = {
4-
/* config options here */
5-
};
5+
pageExtensions: [
6+
'js',
7+
'jsx',
8+
'md',
9+
'mdx',
10+
'ts',
11+
'tsx',
12+
],
13+
output: 'export',
14+
}
615

7-
export default nextConfig;
16+
const withMDX = createMDX({
17+
extension: /\.(md|mdx)$/,
18+
})
19+
20+
export default withMDX(nextConfig)

package.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,27 @@
1010
"biome:staged": "biome check --write --staged --verbose"
1111
},
1212
"dependencies": {
13+
"@mdx-js/loader": "^3.1.0",
14+
"@mdx-js/react": "^3.1.0",
15+
"@next/mdx": "^15.3.5",
16+
"@types/mdx": "^2.0.13",
17+
"class-variance-authority": "^0.7.1",
18+
"clsx": "^2.1.1",
19+
"lucide-react": "^0.525.0",
20+
"next": "15.3.5",
1321
"react": "^19.0.0",
1422
"react-dom": "^19.0.0",
15-
"next": "15.3.5"
23+
"tailwind-merge": "^3.3.1"
1624
},
1725
"devDependencies": {
1826
"@biomejs/biome": "^2.0.6",
27+
"@tailwindcss/postcss": "^4",
1928
"@types/node": "^20",
2029
"@types/react": "^19",
2130
"@types/react-dom": "^19",
2231
"lefthook": "^1.12.1",
32+
"tailwindcss": "^4",
33+
"tw-animate-css": "^1.3.5",
2334
"typescript": "^5"
2435
},
2536
"packageManager": "[email protected]+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"

0 commit comments

Comments
 (0)