shadcn-vue 2.4.3 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +80 -3
  2. package/dist/api-CZg0j5Cq.d.ts +1312 -0
  3. package/dist/api-CZg0j5Cq.d.ts.map +1 -0
  4. package/dist/get-config-C_76heH9.d.ts +9 -0
  5. package/dist/get-config-C_76heH9.d.ts.map +1 -0
  6. package/dist/icons/index.d.ts +49 -0
  7. package/dist/icons/index.d.ts.map +1 -0
  8. package/dist/icons/index.js +47 -0
  9. package/dist/icons/index.js.map +1 -0
  10. package/dist/index-CZsBVEJ6.d.ts +3983 -0
  11. package/dist/index-CZsBVEJ6.d.ts.map +1 -0
  12. package/dist/index.d.ts +4 -3
  13. package/dist/index.js +1064 -64
  14. package/dist/index.js.map +1 -1
  15. package/dist/mcp/index.js +4 -3
  16. package/dist/{mcp-9eE0BYQA.js → mcp-DdGsinaO.js} +2 -2
  17. package/dist/{mcp-9eE0BYQA.js.map → mcp-DdGsinaO.js.map} +1 -1
  18. package/dist/registry/index.d.ts +3 -2
  19. package/dist/registry/index.d.ts.map +1 -1
  20. package/dist/registry/index.js +3 -2
  21. package/dist/{registry-ClmPjtrG.js → registry-MpSC1wlI.js} +339 -145
  22. package/dist/registry-MpSC1wlI.js.map +1 -0
  23. package/dist/schema/index.d.ts +2 -2
  24. package/dist/schema/index.js +2 -2
  25. package/dist/{schema-Brc22MYG.js → schema-DANtXGPk.js} +95 -48
  26. package/dist/schema-DANtXGPk.js.map +1 -0
  27. package/dist/transform-menu-CfHtcBZK.js +422 -0
  28. package/dist/transform-menu-CfHtcBZK.js.map +1 -0
  29. package/dist/utils/index.d.ts +41 -0
  30. package/dist/utils/index.d.ts.map +1 -0
  31. package/dist/utils/index.js +345 -0
  32. package/dist/utils/index.js.map +1 -0
  33. package/package.json +17 -2
  34. package/dist/api-0c_jvwiW.d.ts +0 -313
  35. package/dist/api-0c_jvwiW.d.ts.map +0 -1
  36. package/dist/index-BW6V-RlM.d.ts +0 -1450
  37. package/dist/index-BW6V-RlM.d.ts.map +0 -1
  38. package/dist/registry-ClmPjtrG.js.map +0 -1
  39. package/dist/schema-Brc22MYG.js.map +0 -1
package/README.md CHANGED
@@ -4,7 +4,48 @@ A CLI for adding components to your project.
4
4
 
5
5
  ## Usage
6
6
 
7
- Use the `init` command to initialize dependencies for a new project.
7
+ ### create
8
+
9
+ Use the `create` command to scaffold a new Vue project with shadcn-vue pre-configured.
10
+
11
+ ```bash
12
+ npx shadcn-vue create
13
+ ```
14
+
15
+ The `create` command will:
16
+ - Create a new Vue project (Nuxt, Vite, or Vite + Vue Router)
17
+ - Configure Tailwind CSS
18
+ - Set up shadcn-vue with your chosen design system
19
+
20
+ #### Options
21
+
22
+ | Option | Description |
23
+ |--------|-------------|
24
+ | `-t, --template <template>` | Framework template: `nuxt`, `vite`, or `vite-router` |
25
+ | `-p, --preset <preset>` | Use a preset: `reka-vega`, `reka-nova`, `reka-maia`, `reka-lyra`, `reka-mira` |
26
+ | `--base <base>` | Component library: `reka` |
27
+ | `--style <style>` | Visual style: `vega`, `nova`, `maia`, `lyra`, `mira` |
28
+ | `--icon-library <lib>` | Icon library: `lucide`, `tabler`, `hugeicons`, `phosphor`, `remixicon` |
29
+ | `--font <font>` | Font: `inter`, `figtree`, `jetbrains-mono`, `geist`, `geist-mono` |
30
+ | `-b, --base-color <color>` | Base color: `neutral`, `gray`, `zinc`, `stone`, `slate` |
31
+ | `-y, --yes` | Skip confirmation prompts |
32
+
33
+ #### Examples
34
+
35
+ ```bash
36
+ # Interactive mode
37
+ npx shadcn-vue create
38
+
39
+ # Use a preset
40
+ npx shadcn-vue create --preset reka-nova
41
+
42
+ # Full customization
43
+ npx shadcn-vue create --template nuxt --style maia --icon-library hugeicons --font figtree
44
+ ```
45
+
46
+ ### init
47
+
48
+ Use the `init` command to initialize dependencies for an existing project.
8
49
 
9
50
  The `init` command installs dependencies, adds the `cn` util, configures `tailwind.config.js`, and CSS variables for the project.
10
51
 
@@ -12,7 +53,19 @@ The `init` command installs dependencies, adds the `cn` util, configures `tailwi
12
53
  npx shadcn-vue init
13
54
  ```
14
55
 
15
- ## add
56
+ #### Options
57
+
58
+ | Option | Description |
59
+ |--------|-------------|
60
+ | `--base <base>` | Component library: `reka` |
61
+ | `--style <style>` | Visual style: `vega`, `nova`, `maia`, `lyra`, `mira` |
62
+ | `--icon-library <lib>` | Icon library: `lucide`, `tabler`, `hugeicons`, `phosphor`, `remixicon` |
63
+ | `--font <font>` | Font: `inter`, `figtree`, `jetbrains-mono`, `geist`, `geist-mono` |
64
+ | `-b, --base-color <color>` | Base color: `neutral`, `gray`, `zinc`, `stone`, `slate` |
65
+ | `-d, --defaults` | Use default configuration |
66
+ | `-y, --yes` | Skip confirmation prompts |
67
+
68
+ ### add
16
69
 
17
70
  Use the `add` command to add components to your project.
18
71
 
@@ -22,7 +75,7 @@ The `add` command adds a component to your project and installs all required dep
22
75
  npx shadcn-vue add [component]
23
76
  ```
24
77
 
25
- ### Example
78
+ #### Example
26
79
 
27
80
  ```bash
28
81
  npx shadcn-vue add alert-dialog
@@ -34,6 +87,30 @@ You can also run the command without any arguments to view a list of all availab
34
87
  npx shadcn-vue add
35
88
  ```
36
89
 
90
+ ## Visual Styles
91
+
92
+ shadcn-vue supports 5 visual styles that transform how components look:
93
+
94
+ | Style | Description |
95
+ |-------|-------------|
96
+ | **Vega** | The classic shadcn/ui look. Clean, neutral, and familiar. |
97
+ | **Nova** | Reduced padding and margins for compact layouts. |
98
+ | **Maia** | Soft and rounded, with generous spacing. |
99
+ | **Lyra** | Boxy and sharp. Pairs well with mono fonts. |
100
+ | **Mira** | Compact. Made for dense interfaces. |
101
+
102
+ ## Presets
103
+
104
+ Presets are pre-configured combinations of style, icons, and fonts:
105
+
106
+ | Preset | Style | Icons | Font |
107
+ |--------|-------|-------|------|
108
+ | `reka-vega` | Vega | Lucide | Inter |
109
+ | `reka-nova` | Nova | Hugeicons | Inter |
110
+ | `reka-maia` | Maia | Hugeicons | Figtree |
111
+ | `reka-lyra` | Lyra | Hugeicons | JetBrains Mono |
112
+ | `reka-mira` | Mira | Hugeicons | Inter |
113
+
37
114
  ## Documentation
38
115
 
39
116
  Visit http://shadcn-vue.com to view the documentation.