jig-ui 0.2.0 → 0.3.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 +16 -4
- package/dist/index.js +1794 -22
- package/package.json +1 -1
- package/templates/command-metadata.json +2 -2
- package/tokens/brand.default.css +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jig-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "A design system for coding agents. 104 numbered UI rules, brand x mode design tokens, and an installer for Claude Code, Codex, Cursor and opencode.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"init": {
|
|
13
13
|
"description": "Set up Jig in this project: detect the CSS system, derive or interview for brand values, validate them against the token contract, and write tokens plus jig.config.json.",
|
|
14
|
-
"argumentHint": "",
|
|
15
|
-
"status": "
|
|
14
|
+
"argumentHint": "[--yes]",
|
|
15
|
+
"status": "available"
|
|
16
16
|
},
|
|
17
17
|
"check": {
|
|
18
18
|
"description": "Check changed files or a named target against the rule set. Reports violations by rule id.",
|
package/tokens/brand.default.css
CHANGED
|
@@ -54,12 +54,19 @@
|
|
|
54
54
|
/* ================= SYSTEM COLOURS =================
|
|
55
55
|
Three, with familiar traffic-light meanings. Four variations each.
|
|
56
56
|
Never the only signal — pair with an icon and text (C-20).
|
|
57
|
+
|
|
58
|
+
Requirements when you replace one:
|
|
59
|
+
- text (100%) >= 4.5:1 against --color-bg-base AND --color-bg-raised
|
|
60
|
+
- stroke-strong (80%) >= 3:1 against the same two, composited
|
|
61
|
+
- stroke-weak and fill are decorative and have no floor
|
|
62
|
+
These are not style preferences. A system colour that fails them is
|
|
63
|
+
unreadable to the people the colour exists to warn.
|
|
57
64
|
Each colour is one h/s/l triple (plus a fill alpha, which differs between
|
|
58
65
|
light and dark) referenced by all four variations below, so changing the
|
|
59
66
|
colour means changing it in one place instead of 4–5. */
|
|
60
67
|
--error-h: 0; --error-s: 71%; --error-l: 44%; --error-fill-a: 5%;
|
|
61
|
-
--warning-h: 42; --warning-s: 82%; --warning-l:
|
|
62
|
-
--success-h: 162; --success-s: 95%; --success-l:
|
|
68
|
+
--warning-h: 42; --warning-s: 82%; --warning-l: 29%; --warning-fill-a: 5%;
|
|
69
|
+
--success-h: 162; --success-s: 95%; --success-l: 23%; --success-fill-a: 5%;
|
|
63
70
|
/* info is NOT in the reference's set of three. Kept as an optional fourth. */
|
|
64
71
|
--info-h: 220; --info-s: 70%; --info-l: 42%; --info-fill-a: 5%;
|
|
65
72
|
|