You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+32-7
Original file line number
Diff line number
Diff line change
@@ -6,16 +6,21 @@
6
6
[![JSDocs][jsdocs-src]][jsdocs-href]
7
7
[![License][license-src]][license-href]
8
8
9
-
Use [shadcn/ui](https://ui.shadcn.com) or [shadcn-vue](https://shadcn-vue.com) with [UnoCSS](https://unocss.dev)
9
+
Use [shadcn/ui](https://ui.shadcn.com) or [shadcn-vue](https://shadcn-vue.com)or [shadcn-svelte](https://www.shadcn-svelte.com)with [UnoCSS](https://unocss.dev)
10
10
11
11
1. Based on [fisand/unocss-preset-shadcn](https://github.com/fisand/unocss-preset-shadcn)
12
12
1. Theme can be easily customized
13
13
14
14
## Usage
15
15
16
-
Follow the [Install and configure Vite guide](https://ui.shadcn.com/docs/installation/vite) to setup shadcn/ui, or [Install and configure Vite](https://www.shadcn-vue.com/docs/installation/vite.html) to setup shadcn-vue.
16
+
Follow official guide to setup shadcn/ui, shadcn-vue or shadcn-svelte.
17
17
18
-
Replace the second step with the following operation after setup [UnoCSS](https://unocss.dev/integrations/vite):
- Run `ni lucide-vue-next radix-vue class-variance-authority clsx tailwind-merge` if you are using shadcn-vue.
60
+
-`ni lucide-vue-next radix-vue class-variance-authority clsx tailwind-merge` for shadcn-vue.
61
+
-`ni lucide-svelte tailwind-variants clsx tailwind-merge` for shadcn-svelte.
56
62
1. copy `utils.ts` into your project at `src/lib`
57
63
1. create `components.json` in your project root and modify as needed
58
64
1.`npx shadcn-ui@latest add button`
59
-
- Run `npx shadcn-vue@latest add button` if you are using shadcn-vue.
65
+
-`npx shadcn-vue@latest add button` for shadcn-vue.
66
+
-`npx shadcn-svelte@latest add button` for shadcn-svelte.
60
67
61
68
> [!WARNING]
62
69
> If you encounter problems adjusting animation property, this may be because [tailwind-animate](https://github.com/jamiebuilds/tailwindcss-animate) has [duplicate rules about animation and transition](https://github.com/jamiebuilds/tailwindcss-animate/pull/46). You can refer to [Migration Guide from Animations Preset for UnoCSS](https://unocss-preset-animations.aelita.me/guide/migration.html) to solve this problem.
0 commit comments