@justai/cuts 0.130.1 → 0.131.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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. package/src/ground.css +31 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justai/cuts",
3
- "version": "0.130.1",
4
- "description": "A persona's named parts \u2014 the page shell that holds them, and the cuts themselves.",
3
+ "version": "0.131.0",
4
+ "description": "A persona's named parts — the page shell that holds them, and the cuts themselves.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
7
7
  "type": "git",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@justai/core": "^0.34.0",
45
- "@justai/ui": "^0.21.1",
45
+ "@justai/ui": "^0.22.0",
46
46
  "@justai/atrium": "^0.1.9"
47
47
  }
48
- }
48
+ }
package/src/ground.css CHANGED
@@ -79,8 +79,31 @@
79
79
  second storefront is the first one. */
80
80
  --card-bg: rgba(28, 28, 34, 0.55);
81
81
  --card-blur: blur(30px) saturate(1.6);
82
- --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.32);
83
82
  --card-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 28px -14px rgba(0, 0, 0, 0.55);
83
+
84
+ /* ── ELEVATION — mirrors @justai/ui tokens.css, and the tokens spec holds the two identical ──
85
+ *
86
+ * queries: box shadow token · which shadow · the panel looks detached · drop shadow standard ·
87
+ * golge standardi · card shadow vs sheet shadow
88
+ *
89
+ * THE VALUES WERE ALREADY HERE, under one name and one meaning: `--card-shadow`, described as
90
+ * "a storefront tile's own surface". Measured across the live fleet on 2026-08-20 they turned out
91
+ * to be the shadow of EVERY resting surface — app.zone's catalogue cards, qr's type buttons,
92
+ * calculator's panel, all byte-identical — so the name was narrower than the fact, and a persona
93
+ * building its own kernel panel had nothing to reach for and invented one. The one that produced
94
+ * the ruling had invented a MODAL's: twice the opacity, 3.7× the blur, and in dark deeper than
95
+ * the fleet's actual modal.
96
+ *
97
+ * So the scale is named by ELEVATION — how far off the page a thing is — and the catalogue's own
98
+ * token now reads from it rather than restating it. `--card-shadow` stays because live personas
99
+ * consume it; it is an alias now, not a second definition.
100
+ *
101
+ * The law: **nothing that is not a sheet may exceed `--shadow-card`, and no shadow is coloured.**
102
+ * A tinted shadow is a glow, a glow is a light source, and this ground has one sun and no lamps. */
103
+ --shadow-card: 0 1px 2px 0 rgba(0, 0, 0, 0.32);
104
+ --shadow-bar: 0 2px 12px -2px rgba(0, 0, 0, 0.55);
105
+ --shadow-sheet: 0 18px 40px -20px rgba(0, 0, 0, 0.45);
106
+ --card-shadow: var(--shadow-card);
84
107
  }
85
108
 
86
109
  /* queries: force dark while playing · theme switch · data-theme dark · stage theme
@@ -103,8 +126,14 @@
103
126
  panel over a pale page reads as a smudge, so app.zone drops it and pays the shadow instead. */
104
127
  --card-bg: #fff;
105
128
  --card-blur: none;
106
- --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 12px -4px rgba(16, 24, 40, 0.1);
107
129
  --card-shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 12px 26px -8px rgba(16, 24, 40, 0.15);
130
+
131
+ /* Light needs TWO layers where dark needs one: on a near-white ground a single ambient blur
132
+ reads as dirt, so the pair is a 1px contact line that seats the object plus a wide, faint
133
+ ambient. `--card-shadow` inherits its alias from the block above and needs no line here. */
134
+ --shadow-card: 0 1px 2px 0 rgba(16, 24, 40, 0.05), 0 4px 12px -4px rgba(16, 24, 40, 0.1);
135
+ --shadow-bar: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 20px -8px rgba(16, 24, 40, 0.16);
136
+ --shadow-sheet: 0 18px 40px -20px rgba(0, 0, 0, 0.45);
108
137
  }
109
138
  }
110
139