@nghitrum/dsforge 0.1.5-alpha.1 → 0.1.5-alpha.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 +22 -24
- package/dist/cli/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Your design tokens live in Figma. Your components drift from the spec. Your docs are six sprints out of date. dsforge fixes all three with one config file.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
---
|
|
7
|
+
<video src="https://github.com/user-attachments/assets/727fcfe2-9814-49e6-9160-29b8b6590b6a" autoplay loop muted playsinline></video>
|
|
10
8
|
|
|
11
9
|
## Before / After
|
|
12
10
|
|
|
@@ -58,18 +56,18 @@ Output lands in `dist-ds/`. Regenerate it any time by running `generate` again.
|
|
|
58
56
|
"global": {
|
|
59
57
|
"brand-600": "#2563eb",
|
|
60
58
|
"neutral-900": "#0f172a",
|
|
61
|
-
"neutral-0":
|
|
59
|
+
"neutral-0": "#ffffff"
|
|
62
60
|
},
|
|
63
61
|
"semantic": {
|
|
64
|
-
"color-action":
|
|
62
|
+
"color-action": "{global.brand-600}",
|
|
65
63
|
"color-text-primary": "{global.neutral-900}",
|
|
66
|
-
"color-bg-default":
|
|
64
|
+
"color-bg-default": "{global.neutral-0}"
|
|
67
65
|
}
|
|
68
66
|
},
|
|
69
67
|
"typography": {
|
|
70
68
|
"fontFamily": "Inter, system-ui, sans-serif",
|
|
71
69
|
"roles": {
|
|
72
|
-
"body":
|
|
70
|
+
"body": { "size": 16, "weight": 400, "lineHeight": 1.6 },
|
|
73
71
|
"heading": { "size": 24, "weight": 700, "lineHeight": 1.2 }
|
|
74
72
|
}
|
|
75
73
|
},
|
|
@@ -144,17 +142,17 @@ Includes live component previews with all variants and states, themed with your
|
|
|
144
142
|
|
|
145
143
|
`dsforge validate` runs nine health checks and produces a scored report:
|
|
146
144
|
|
|
147
|
-
| Check
|
|
148
|
-
|
|
|
149
|
-
| Token architecture | 15
|
|
150
|
-
| Typography
|
|
151
|
-
| Spacing
|
|
152
|
-
| Radius
|
|
153
|
-
| Elevation
|
|
154
|
-
| Motion
|
|
155
|
-
| Themes
|
|
156
|
-
| Token resolution
|
|
157
|
-
| Governance rules
|
|
145
|
+
| Check | Max score |
|
|
146
|
+
| ------------------ | --------- |
|
|
147
|
+
| Token architecture | 15 |
|
|
148
|
+
| Typography | 10 |
|
|
149
|
+
| Spacing | 10 |
|
|
150
|
+
| Radius | 5 |
|
|
151
|
+
| Elevation | 5 |
|
|
152
|
+
| Motion | 5 |
|
|
153
|
+
| Themes | 10 |
|
|
154
|
+
| Token resolution | 14 |
|
|
155
|
+
| Governance rules | 15 |
|
|
158
156
|
|
|
159
157
|
Scores below 70 are flagged as warnings. WCAG contrast is checked automatically for all color token pairs.
|
|
160
158
|
|
|
@@ -186,13 +184,13 @@ Run this before deploying a config update to understand downstream impact.
|
|
|
186
184
|
|
|
187
185
|
## Commands
|
|
188
186
|
|
|
189
|
-
| Command
|
|
190
|
-
|
|
|
191
|
-
| `dsforge init`
|
|
187
|
+
| Command | What it does |
|
|
188
|
+
| ------------------ | -------------------------------------------------------------------- |
|
|
189
|
+
| `dsforge init` | Scaffold `design-system.config.json` and `design-system.rules.json` |
|
|
192
190
|
| `dsforge generate` | Run the full pipeline — tokens, components, metadata, docs, showcase |
|
|
193
|
-
| `dsforge validate` | Run 9 health checks and score against governance rules
|
|
194
|
-
| `dsforge diff`
|
|
195
|
-
| `dsforge showcase` | Open `dist-ds/showcase.html` in your default browser
|
|
191
|
+
| `dsforge validate` | Run 9 health checks and score against governance rules |
|
|
192
|
+
| `dsforge diff` | Compare two configs — BREAKING / CHANGED / ADDED |
|
|
193
|
+
| `dsforge showcase` | Open `dist-ds/showcase.html` in your default browser |
|
|
196
194
|
|
|
197
195
|
Run `dsforge` with no arguments for an interactive menu.
|
|
198
196
|
|
package/dist/cli/index.js
CHANGED
|
@@ -5296,7 +5296,7 @@ async function runMenu() {
|
|
|
5296
5296
|
// package.json
|
|
5297
5297
|
var package_default = {
|
|
5298
5298
|
name: "@nghitrum/dsforge",
|
|
5299
|
-
version: "0.1.5-alpha.
|
|
5299
|
+
version: "0.1.5-alpha.3",
|
|
5300
5300
|
description: "AI-native design system generator \u2014 tokens \u2192 components \u2192 docs \u2192 npm",
|
|
5301
5301
|
keywords: [
|
|
5302
5302
|
"design-system",
|