Skip to content

Commit fa15391

Browse files
committed
added shadcn
1 parent 2f63ecf commit fa15391

File tree

6 files changed

+519
-8
lines changed

6 files changed

+519
-8
lines changed

Diff for: @/lib/utils.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ClassValue, clsx } from 'clsx'
2+
import { twMerge } from 'tailwind-merge'
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs))
6+
}

Diff for: components.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://shadcn-vue.com/schema.json",
3+
"style": "default",
4+
"typescript": true,
5+
"tsConfigPath": "./tsconfig.json",
6+
"tailwind": {
7+
"config": "tailwind.config.mjs",
8+
"css": "src/styles/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"framework": "astro",
14+
"aliases": {
15+
"components": "@/components",
16+
"utils": "@/lib/utils"
17+
}
18+
}

0 commit comments

Comments
 (0)