tokvista 1.4.2 → 1.4.3
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 +14 -10
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +32 -2
- package/dist/index.d.ts +32 -2
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -74,10 +74,10 @@ Then run:
|
|
|
74
74
|
npx tokvista
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
### Option B: React Component Library
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
npm install tokvista
|
|
77
|
+
### Option B: React Component Library
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npm install tokvista
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
```tsx
|
|
@@ -85,12 +85,16 @@ import { TokenDocumentation } from 'tokvista';
|
|
|
85
85
|
import 'tokvista/styles.css';
|
|
86
86
|
import tokens from './tokens.json';
|
|
87
87
|
|
|
88
|
-
export default function DesignSystem() {
|
|
89
|
-
return <TokenDocumentation tokens={tokens} />;
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
###
|
|
88
|
+
export default function DesignSystem() {
|
|
89
|
+
return <TokenDocumentation tokens={tokens} />;
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Migration from `@nibin-org/tokens`
|
|
94
|
+
|
|
95
|
+
`tokvista` is the successor package. Update your install/imports to `tokvista` and use the npm changelog or git history for version-specific migration notes.
|
|
96
|
+
|
|
97
|
+
### CLI Options
|
|
94
98
|
|
|
95
99
|
- `tokvista init` - Interactive setup for `tokvista.config.ts` + auto preview
|
|
96
100
|
- `tokvista [tokens.json]` - Token file path (default: `./tokens.json`)
|