zaravand-ui 1.0.0
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 +44 -0
- package/dist/index.cjs +50 -0
- package/dist/index.css +3 -0
- package/dist/index.js +15871 -0
- package/package.json +68 -0
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# zaravand-ui
|
|
2
|
+
|
|
3
|
+
Reusable React UI library with centralized theme tokens.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i zaravand-ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
import "zaravand-ui/styles.css"
|
|
15
|
+
import { Button, applyTheme } from "zaravand-ui"
|
|
16
|
+
|
|
17
|
+
applyTheme({
|
|
18
|
+
primary: "#2563EB",
|
|
19
|
+
secondary: "#0891B2",
|
|
20
|
+
text: "#F8FAFC",
|
|
21
|
+
success: "#16A34A",
|
|
22
|
+
warning: "#EAB308",
|
|
23
|
+
danger: "#DC2626",
|
|
24
|
+
surface: "#0F172A",
|
|
25
|
+
mutedSurface: "#1E293B",
|
|
26
|
+
tooltipSurface: "#0B1120",
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
export function Example() {
|
|
30
|
+
return <Button label="Save" />
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Scripts
|
|
35
|
+
|
|
36
|
+
- `npm run build`
|
|
37
|
+
- `npm run docs:dev`
|
|
38
|
+
- `npm run docs:build`
|
|
39
|
+
- `npm run docs:preview`
|
|
40
|
+
|
|
41
|
+
## Documentation
|
|
42
|
+
|
|
43
|
+
- Developer docs (VitePress): `docs/`
|
|
44
|
+
- Full integration guide: `ZARAVAND_UI_INTEGRATION_GUIDE.md`
|