jig-ui 0.18.8 → 0.18.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.9 (2026-09-25)
4
+
5
+ Each theme names its colour scheme, and no release summary names a rule by its
6
+ id.
7
+
8
+ ### Changed
9
+
10
+ - **No release summary names a rule by its id.** jig-site's Versions page shows
11
+ each summary, and the site keeps rule ids out of its interface. Three named a
12
+ rule as `A-05`, `I-118` or `H-47`; they now name it in words. A test keeps ids
13
+ out of summaries.
14
+
15
+ ### Fixed
16
+
17
+ - **Each theme names its `color-scheme`.** The default brand file's `:root`
18
+ said `color-scheme: light dark`, which follows the device, and its dark blocks
19
+ set tokens only. jig-site added a theme toggle and a reader who chose the
20
+ other theme got the right page inside the device's scrollbars and form
21
+ controls. Both dark blocks now set `color-scheme: dark`, `[data-theme="light"]`
22
+ sets `light`, and `T-09` says why. A project whose brand file predates this
23
+ adds the same three declarations.
24
+
3
25
  ## 0.18.8 (2026-09-25)
4
26
 
5
27
  Two runs writing one manifest no longer lose an entry.
@@ -121,7 +143,7 @@ for jig-site's Versions page.
121
143
  ## 0.18.1 (2026-09-25)
122
144
 
123
145
  Two fixes found by jig-site's fourth round: the probe misread a `<details>`
124
- menu, and `A-05` missed an arrow that renders as an emoji.
146
+ menu, and the emoji rule missed an arrow that renders as an emoji.
125
147
 
126
148
  ### Fixed
127
149
 
@@ -539,7 +561,7 @@ Meaning before presentation, and one fewer step anyone can skip.
539
561
 
540
562
  ## 0.12.0 (2026-09-18)
541
563
 
542
- One new rule: no em dashes in interface text (`I-118`), with a detector.
564
+ One new rule: no em dashes in interface text, with a detector.
543
565
 
544
566
  ### Added
545
567
 
@@ -666,8 +688,8 @@ runs with Haiku.
666
688
 
667
689
  ## 0.9.0 (2026-09-13)
668
690
 
669
- One new rule and one amended correction, both about the same blind spot: H-47's
670
- correction always pointed an agent at a token.
691
+ One new rule and one amended correction, both about the same blind spot: a
692
+ rule's correction always pointed an agent at a token.
671
693
 
672
694
  ### Added
673
695
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jig-ui",
3
- "version": "0.18.8",
3
+ "version": "0.18.9",
4
4
  "description": "A design system for coding agents. 143 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",
@@ -442,6 +442,8 @@ These thresholds are APCA's own and do not line up with WCAG's large-text defini
442
442
 
443
443
  Not an inversion (`C-21`). Each brand file supplies a dark block under `@media (prefers-color-scheme: dark)` and `[data-theme="dark"]`, remapping semantics only. Mode files are theme-independent — density does not change with colour scheme.
444
444
 
445
+ Each theme also names its `color-scheme`: `dark` in both dark blocks, and `light` under `[data-theme="light"]`. The browser's own parts, its scrollbars, form controls and the canvas behind the page, follow `color-scheme` and not the tokens, so a site with a theme toggle otherwise draws the chosen theme inside the device's scrollbars.
446
+
445
447
  In dark, elevated surfaces get **lighter**, not shadowed. Border-led elevation survives the switch; shadow-led does not, which is one reason border-led is the unbranded default.
446
448
 
447
449
  ## T-10 · Consuming
@@ -154,6 +154,7 @@
154
154
  is the answer to it. */
155
155
  @media (prefers-color-scheme: dark) {
156
156
  :root:not([data-theme="light"]) {
157
+ color-scheme: dark;
157
158
 
158
159
  /* Three solid levels. In dark, DEPTH COMES FROM BACKGROUND, NOT SHADOW —
159
160
  shadows are nearly invisible on a dark surface. Never pure black. */
@@ -186,6 +187,7 @@
186
187
  }
187
188
 
188
189
  :root[data-theme="dark"] {
190
+ color-scheme: dark;
189
191
 
190
192
  /* Three solid levels. In dark, DEPTH COMES FROM BACKGROUND, NOT SHADOW —
191
193
  shadows are nearly invisible on a dark surface. Never pure black. */
@@ -215,3 +217,11 @@
215
217
  --shadow-raised: none;
216
218
  --shadow-overlay: 0 8px 24px -8px rgb(0 0 0 / 60%);
217
219
  }
220
+
221
+ /* The browser's own parts (scrollbars, form controls, the canvas behind the
222
+ page) follow `color-scheme`, not the tokens. `:root` says `light dark`, which
223
+ follows the device, so a reader who chose the other theme got the right page
224
+ inside the wrong scrollbars (jig-site, DRIFT 48). Each theme names its own. */
225
+ :root[data-theme="light"] {
226
+ color-scheme: light;
227
+ }