@tangle-network/brand 1.24.1 → 1.24.2

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.24.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 628a522: Canonical dark recessed page `--md3-surface-dim` (and `--md3-surface-container-lowest`, equal by design) #060610/#050509 → #040408. The inset workspace panel (#0a0a14) now sits 4.1 L above its gutter instead of 2.2, so pages on sandbox-ui `WorkspaceSurface` pass surface-ladder in dark.
8
+
3
9
  ## 1.24.1
4
10
 
5
11
  ### Patch Changes
@@ -1028,7 +1028,7 @@
1028
1028
  "local_primitives": {}
1029
1029
  },
1030
1030
  "physim": {
1031
- "repo": "tangle-network/physim",
1031
+ "repo": "tangle-network/hardware-agent",
1032
1032
  "roots": [
1033
1033
  "apps/web"
1034
1034
  ],
@@ -37,7 +37,7 @@ export const SURFACES = {
37
37
  legal: { repo: "tangle-network/legal-agent", roots: [""] },
38
38
  insurance: { repo: "tangle-network/insurance-agent", roots: [""] },
39
39
  creative: { repo: "tangle-network/creative-agent", roots: [""] },
40
- physim: { repo: "tangle-network/physim", roots: ["apps/web"] },
40
+ physim: { repo: "tangle-network/hardware-agent", roots: ["apps/web"] },
41
41
  hospitality: { repo: "tangle-network/hospitality-agent", roots: [""] },
42
42
  audits: { repo: "tangle-network/redteam", roots: ["packages/website"] },
43
43
  browser: { repo: "tangle-network/bad-app", roots: [""] },
package/dist/index.d.ts CHANGED
@@ -88,7 +88,7 @@ export declare const palettes: {
88
88
  readonly well: "#12111f";
89
89
  readonly nested: "#221f33";
90
90
  readonly overlay: "#2c2942";
91
- readonly deepest: "#050509";
91
+ readonly deepest: "#040408";
92
92
  readonly hairline: "#2a293d";
93
93
  readonly ink: "#e6e6e6";
94
94
  readonly inkSecondary: "#c7c7c7";
package/dist/index.js CHANGED
@@ -147,7 +147,7 @@ const palettes = {
147
147
  well: "#12111f",
148
148
  nested: "#221f33",
149
149
  overlay: "#2c2942",
150
- deepest: "#050509",
150
+ deepest: "#040408",
151
151
  hairline: "#2a293d",
152
152
  ink: "#e6e6e6",
153
153
  inkSecondary: "#c7c7c7",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/brand",
3
- "version": "1.24.1",
3
+ "version": "1.24.2",
4
4
  "description": "Tangle brand system — design tokens, logo, Tailwind v4 theme. Single source of truth for every Tangle app.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -78,7 +78,7 @@ export const palettes = {
78
78
  well: "#12111f",
79
79
  nested: "#221f33",
80
80
  overlay: "#2c2942",
81
- deepest: "#050509",
81
+ deepest: "#040408",
82
82
  hairline: "#2a293d",
83
83
  ink: "#e6e6e6",
84
84
  inkSecondary: "#c7c7c7",
@@ -1,6 +1,6 @@
1
1
  /* GENERATED by scripts/gen-compat.mjs. Do not edit.
2
2
  * Source: tokens.css + named-themes.css
3
- * SHA-256: 6316c513b7feb4a21006744fa33c56971c00ba6b0d971b1e4b95b0343b497fcc
3
+ * SHA-256: d10503737fc4c0704770bb4a56ec1ecf92d8cc4a875de7553f9b30fcb8317b07
4
4
  * Light-default compatibility; all explicit modes remain canonical.
5
5
  */
6
6
  :where(:root),
@@ -25,9 +25,9 @@
25
25
  .dark {
26
26
  color-scheme: dark;
27
27
  --md3-surface: #0a0a14;
28
- --md3-surface-dim: #060610;
28
+ --md3-surface-dim: #040408;
29
29
  --md3-surface-bright: #232238;
30
- --md3-surface-container-lowest: #050509;
30
+ --md3-surface-container-lowest: #040408;
31
31
  --md3-surface-container-low: #12111f;
32
32
  --md3-surface-container: #191826;
33
33
  --md3-surface-container-high: #221f33;
@@ -1215,7 +1215,7 @@
1215
1215
  --bg-root: #0a0a14;
1216
1216
  --bg-card: var(--depth-2);
1217
1217
  --bg-input: hsl(var(--hsl-input));
1218
- --md3-surface-container-lowest: #050509;
1218
+ --md3-surface-container-lowest: #040408;
1219
1219
  --md3-surface-container-low: #12111f;
1220
1220
  --md3-surface-container: #191826;
1221
1221
  --md3-surface-container-high: #221f33;
@@ -248,7 +248,7 @@
248
248
  --hsl-ring: 233 100% 87%;
249
249
  --depth-1: #0a0a14; --depth-2: #191826; --depth-3: #221f33; --depth-4: #2c2942;
250
250
  --bg-root: #0a0a14; --bg-card: var(--depth-2); --bg-input: hsl(var(--hsl-input));
251
- --md3-surface-container-lowest: #050509; --md3-surface-container-low: #12111f;
251
+ --md3-surface-container-lowest: #040408; --md3-surface-container-low: #12111f;
252
252
  --md3-surface-container: #191826; --md3-surface-container-high: #221f33;
253
253
  --md3-surface-container-highest: #2c2942; --md3-outline-variant: #2a293d;
254
254
  --border-subtle: rgba(255, 255, 255, 0.10); --border-default: rgba(255, 255, 255, 0.16);
@@ -288,3 +288,23 @@ describe("Canonical surface ladder (every theme without its own ladder)", () =>
288
288
  expect(contrastRatio(border, spine(css(), "hsl-background")), "on the page").toBeGreaterThanOrEqual(3);
289
289
  });
290
290
  });
291
+
292
+ describe("Inset workspace backdrop (canonical themes)", () => {
293
+ // sandbox-ui WorkspaceSurface / WorkspaceLayout surface="inset" paint the
294
+ // panel with the page colour on a --md3-surface-dim gutter. In dark the two
295
+ // were 2.2 L apart (#0a0a14 on #060610), so every page on the shared panel
296
+ // failed surface-ladder card-step on Creative production.
297
+ const DARK = blockIn(tokens, ".dark");
298
+ const LIGHT = blockIn(tokens, ".light");
299
+ it.each([
300
+ ["dark", () => DARK],
301
+ ["light", () => LIGHT],
302
+ ])("steps the panel at least 3 L off its backdrop in %s", (_mode, css) => {
303
+ const panel = oklchLightness(hslToRgb(hslIn(css(), "hsl-background")));
304
+ const backdrop = oklchLightness(hexIn(css(), "md3-surface-dim"));
305
+ expect(Math.abs(panel - backdrop)).toBeGreaterThanOrEqual(3);
306
+ });
307
+ it("keeps the dark floor tokens equal, as their comment says", () => {
308
+ expect(declIn(DARK, "md3-surface-dim")).toBe(declIn(DARK, "md3-surface-container-lowest"));
309
+ });
310
+ });
@@ -57,14 +57,14 @@
57
57
  .dark {
58
58
  color-scheme: dark;
59
59
  --md3-surface: #0a0a14; /* L0 page canvas — indigo-lifted off black */
60
- --md3-surface-dim: #060610; /* recessed page */
60
+ --md3-surface-dim: #040408; /* recessed page: 4.1 L under the #0a0a14 panel (the inset workspace surface needs >= 3) */
61
61
  --md3-surface-bright: #232238;
62
62
  /* Same value as --md3-surface-dim by design, not by drift: both name the floor
63
63
  * of the ladder, and dark has no plane below it to give them. They stay two
64
64
  * tokens because the roles diverge in light, where the well is paper (#ffffff)
65
65
  * and the recessed page is grey (#dcdee6) — a consumer binding to the wrong one
66
66
  * there gets the wrong surface. */
67
- --md3-surface-container-lowest: #050509; /* L-1 terminal/code well */
67
+ --md3-surface-container-lowest: #040408; /* L-1 terminal/code well */
68
68
  --md3-surface-container-low: #12111f; /* L1 chrome, field wells */
69
69
  --md3-surface-container: #191826; /* L2 resting card */
70
70
  --md3-surface-container-high: #221f33; /* L3 nested / hover */