shadcn-chart 0.2.0 → 0.2.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.
- package/README.md +13 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,14 +24,14 @@ Add individual chart components directly to your project:
|
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
26
|
# Install a single chart
|
|
27
|
-
npx shadcn add https://mnhtng.github.io/shadcn-chart/r/area-chart.json
|
|
27
|
+
npx shadcn add https://mnhtng.github.io/shadcn-chart/public/r/area-chart.json
|
|
28
28
|
|
|
29
29
|
# Or install all charts
|
|
30
|
-
npx shadcn add https://mnhtng.github.io/shadcn-chart/r/area-chart.json \
|
|
31
|
-
https://mnhtng.github.io/shadcn-chart/r/bar-chart.json \
|
|
32
|
-
https://mnhtng.github.io/shadcn-chart/r/line-chart.json \
|
|
33
|
-
https://mnhtng.github.io/shadcn-chart/r/pie-chart.json \
|
|
34
|
-
https://mnhtng.github.io/shadcn-chart/r/radial-chart.json
|
|
30
|
+
npx shadcn add https://mnhtng.github.io/shadcn-chart/public/r/area-chart.json \
|
|
31
|
+
https://mnhtng.github.io/shadcn-chart/public/r/bar-chart.json \
|
|
32
|
+
https://mnhtng.github.io/shadcn-chart/public/r/line-chart.json \
|
|
33
|
+
https://mnhtng.github.io/shadcn-chart/public/r/pie-chart.json \
|
|
34
|
+
https://mnhtng.github.io/shadcn-chart/public/r/radial-chart.json
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
This copies the component source to your project, allowing full customization.
|
|
@@ -189,7 +189,13 @@ The package uses CSS variables for theming. Override these in your CSS:
|
|
|
189
189
|
|
|
190
190
|
### Tailwind v4
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
If you're using a bundler like Vite with `@tailwindcss/vite`, you need to add a `@source` directive so Tailwind can scan the package's utility classes:
|
|
193
|
+
|
|
194
|
+
```css
|
|
195
|
+
@import "tailwindcss";
|
|
196
|
+
|
|
197
|
+
@source "../node_modules/shadcn-chart";
|
|
198
|
+
```
|
|
193
199
|
|
|
194
200
|
### Tailwind v3
|
|
195
201
|
|