@burdenoff/fe-libs 2026.1116.8 → 2026.1117.1

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.
@@ -32,7 +32,7 @@ var c = ({ organizations: e, searchedOrganizations: t, currentOrganizationId: n,
32
32
  children: l
33
33
  })]
34
34
  }),
35
- t.id === n && /* @__PURE__ */ o(i, { className: "size-5 text-[var(--color-action-primary-bg)] flex-shrink-0 animate-in zoom-in-50 duration-200" })
35
+ t.id === n && /* @__PURE__ */ o(i, { className: "size-5 text-action-primary-bg flex-shrink-0 animate-in zoom-in-50 duration-200" })
36
36
  ]
37
37
  }, t.id);
38
38
  }) : /* @__PURE__ */ o(u, { isSearchResult: c.length > 0 })
@@ -26,7 +26,7 @@ var s = ({ filteredProjects: s, searchedProjects: c, currentProjectId: l, search
26
26
  className: "flex-1 text-start",
27
27
  children: h("contextSwitcher.allProjectsWorkspaceWide", "All projects (workspace-wide)")
28
28
  }),
29
- !l && /* @__PURE__ */ a(r, { className: "size-5 text-[var(--color-action-primary-bg)] flex-shrink-0" })
29
+ !l && /* @__PURE__ */ a(r, { className: "size-5 text-action-primary-bg flex-shrink-0" })
30
30
  ]
31
31
  }), s.length === 0 ? /* @__PURE__ */ a(n, { message: h("contextSwitcher.noProjectsInWorkspace", "No projects in this workspace") }) : c.length > 0 ? c.map((e, t) => /* @__PURE__ */ o("button", {
32
32
  onClick: () => f(e),
@@ -38,7 +38,7 @@ var s = ({ filteredProjects: s, searchedProjects: c, currentProjectId: l, search
38
38
  className: "flex-1 text-start truncate",
39
39
  children: e.name
40
40
  }),
41
- e.id === l && /* @__PURE__ */ a(r, { className: "size-5 text-[var(--color-action-primary-bg)] flex-shrink-0 animate-in zoom-in-50 duration-200" })
41
+ e.id === l && /* @__PURE__ */ a(r, { className: "size-5 text-action-primary-bg flex-shrink-0 animate-in zoom-in-50 duration-200" })
42
42
  ]
43
43
  }, e.id)) : /* @__PURE__ */ a(n, {
44
44
  message: h("projectsList.noProjectsFound", "No projects found"),
@@ -25,7 +25,7 @@ var s = ({ filteredWorkspaces: s, searchedWorkspaces: c, currentWorkspaceId: l,
25
25
  className: "flex-1 text-start truncate",
26
26
  children: e.name
27
27
  }),
28
- e.id === l && /* @__PURE__ */ a(i, { className: "size-5 text-[var(--color-action-primary-bg)] flex-shrink-0 animate-in zoom-in-50 duration-200" })
28
+ e.id === l && /* @__PURE__ */ a(i, { className: "size-5 text-action-primary-bg flex-shrink-0 animate-in zoom-in-50 duration-200" })
29
29
  ]
30
30
  }, e.id)) : /* @__PURE__ */ a(n, {
31
31
  message: m("workspaces.list.emptyNoneTitle", "No workspaces found"),
@@ -133,7 +133,7 @@ function h({ productId: f, slugMap: h = m, homeRoute: g = "/", homeLabel: _ = "B
133
133
  })]
134
134
  }),
135
135
  /* @__PURE__ */ c("article", {
136
- className: "\n prose prose-sm md:prose-base\n max-w-none\n text-text-primary\n [&_h1]:text-2xl [&_h1]:font-bold [&_h1]:text-text-primary [&_h1]:mt-8 [&_h1]:mb-4\n [&_h2]:text-xl [&_h2]:font-semibold [&_h2]:text-text-primary [&_h2]:mt-6 [&_h2]:mb-3\n [&_h3]:text-lg [&_h3]:font-semibold [&_h3]:text-text-primary [&_h3]:mt-5 [&_h3]:mb-2\n [&_h4]:text-base [&_h4]:font-medium [&_h4]:text-text-primary [&_h4]:mt-4 [&_h4]:mb-2\n [&_p]:text-text-secondary [&_p]:leading-relaxed [&_p]:mb-4\n [&_a]:text-[var(--color-action-primary-bg)] [&_a]:underline [&_a]:hover:opacity-80\n [&_ul]:list-disc [&_ul]:ps-6 [&_ul]:mb-4 [&_ul]:text-text-secondary\n [&_ol]:list-decimal [&_ol]:ps-6 [&_ol]:mb-4 [&_ol]:text-text-secondary\n [&_li]:mb-1 [&_li]:leading-relaxed\n [&_strong]:text-text-primary [&_strong]:font-semibold\n [&_em]:italic\n [&_blockquote]:border-s-4 [&_blockquote]:border-[var(--color-border-emphasis)]\n [&_blockquote]:ps-4 [&_blockquote]:py-2 [&_blockquote]:my-4\n [&_blockquote]:bg-[var(--color-bg-subtle)] [&_blockquote]:rounded-e-lg\n [&_blockquote_p]:text-text-secondary\n [&_code]:bg-[var(--color-bg-subtle)] [&_code]:px-1.5 [&_code]:py-0.5\n [&_code]:rounded [&_code]:text-sm [&_code]:font-mono\n [&_pre]:bg-[var(--color-bg-subtle)] [&_pre]:p-4 [&_pre]:rounded-lg\n [&_pre]:overflow-x-auto [&_pre]:mb-4\n [&_pre_code]:bg-transparent [&_pre_code]:p-0\n [&_hr]:border-default [&_hr]:my-8\n [&_table]:w-full [&_table]:border-collapse [&_table]:mb-4\n [&_th]:border [&_th]:border-default [&_th]:px-4 [&_th]:py-2\n [&_th]:bg-[var(--color-bg-subtle)] [&_th]:text-start [&_th]:font-medium\n [&_td]:border [&_td]:border-default [&_td]:px-4 [&_td]:py-2\n ",
136
+ className: "\n prose prose-sm md:prose-base\n max-w-none\n text-text-primary\n [&_h1]:text-2xl [&_h1]:font-bold [&_h1]:text-text-primary [&_h1]:mt-8 [&_h1]:mb-4\n [&_h2]:text-xl [&_h2]:font-semibold [&_h2]:text-text-primary [&_h2]:mt-6 [&_h2]:mb-3\n [&_h3]:text-lg [&_h3]:font-semibold [&_h3]:text-text-primary [&_h3]:mt-5 [&_h3]:mb-2\n [&_h4]:text-base [&_h4]:font-medium [&_h4]:text-text-primary [&_h4]:mt-4 [&_h4]:mb-2\n [&_p]:text-text-secondary [&_p]:leading-relaxed [&_p]:mb-4\n [&_a]:text-action-primary-bg [&_a]:underline [&_a]:hover:opacity-80\n [&_ul]:list-disc [&_ul]:ps-6 [&_ul]:mb-4 [&_ul]:text-text-secondary\n [&_ol]:list-decimal [&_ol]:ps-6 [&_ol]:mb-4 [&_ol]:text-text-secondary\n [&_li]:mb-1 [&_li]:leading-relaxed\n [&_strong]:text-text-primary [&_strong]:font-semibold\n [&_em]:italic\n [&_blockquote]:border-s-4 [&_blockquote]:border-[var(--color-border-emphasis)]\n [&_blockquote]:ps-4 [&_blockquote]:py-2 [&_blockquote]:my-4\n [&_blockquote]:bg-[var(--color-bg-subtle)] [&_blockquote]:rounded-e-lg\n [&_blockquote_p]:text-text-secondary\n [&_code]:bg-[var(--color-bg-subtle)] [&_code]:px-1.5 [&_code]:py-0.5\n [&_code]:rounded [&_code]:text-sm [&_code]:font-mono\n [&_pre]:bg-[var(--color-bg-subtle)] [&_pre]:p-4 [&_pre]:rounded-lg\n [&_pre]:overflow-x-auto [&_pre]:mb-4\n [&_pre_code]:bg-transparent [&_pre_code]:p-0\n [&_hr]:border-default [&_hr]:my-8\n [&_table]:w-full [&_table]:border-collapse [&_table]:mb-4\n [&_th]:border [&_th]:border-default [&_th]:px-4 [&_th]:py-2\n [&_th]:bg-[var(--color-bg-subtle)] [&_th]:text-start [&_th]:font-medium\n [&_td]:border [&_td]:border-default [&_td]:px-4 [&_td]:py-2\n ",
137
137
  children: /* @__PURE__ */ c(t, { children: b.content })
138
138
  }),
139
139
  /* @__PURE__ */ c("div", {
@@ -83,8 +83,8 @@ function g({ children: n, defaultMode: r = "system", defaultBrand: l = "default"
83
83
  let n = document.documentElement;
84
84
  if (n.setAttribute("data-theme", P), n.setAttribute("data-brand", t(x)), n.setAttribute("data-density", L), n.setAttribute("data-typography", R), n.setAttribute("data-glass", z), n.toggleAttribute("data-reduce-motion", B), I === "dark" ? n.classList.add("dark") : n.classList.remove("dark"), N) {
85
85
  let e = N.accent;
86
- n.style.setProperty("--color-action-primary-bg", e), n.style.setProperty("--color-action-primary-bgHover", `color-mix(in oklab, ${e} 84%, black)`), n.style.setProperty("--color-action-primary-bgActive", `color-mix(in oklab, ${e} 70%, black)`), n.style.setProperty("--color-action-primary-text", p(e) ? "#0a0a0a" : "#ffffff");
87
- } else n.style.removeProperty("--color-action-primary-bg"), n.style.removeProperty("--color-action-primary-bgHover"), n.style.removeProperty("--color-action-primary-bgActive"), n.style.removeProperty("--color-action-primary-text");
86
+ n.setAttribute("data-accent", "custom"), p(e) ? n.setAttribute("data-accent-label", "dark") : n.removeAttribute("data-accent-label"), n.style.setProperty("--color-action-primary-bg", e), n.style.setProperty("--color-action-primary-bgHover", `color-mix(in oklab, ${e} 84%, black)`), n.style.setProperty("--color-action-primary-bgActive", `color-mix(in oklab, ${e} 70%, black)`), n.style.setProperty("--color-action-primary-text", p(e) ? "#0a0a0a" : "#ffffff");
87
+ } else n.removeAttribute("data-accent"), n.removeAttribute("data-accent-label"), n.style.removeProperty("--color-action-primary-bg"), n.style.removeProperty("--color-action-primary-bgHover"), n.style.removeProperty("--color-action-primary-bgActive"), n.style.removeProperty("--color-action-primary-text");
88
88
  let r = () => {
89
89
  let t = getComputedStyle(n).getPropertyValue("--color-bg-canvas").trim();
90
90
  e({
@@ -52,7 +52,7 @@ function u({ steps: i, title: c, storageKey: u, className: d }) {
52
52
  type: "button",
53
53
  onClick: () => _(!1),
54
54
  className: e("inline-flex items-center gap-1.5 rounded-full border border-border-seam bg-[var(--color-surface-glass)] px-3 py-1.5 text-xs font-medium text-text-secondary shadow-elevation-1 backdrop-blur-[var(--blur-glass)] transition-[box-shadow,border-color] hover:border-border-strong hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", d),
55
- children: [/* @__PURE__ */ a(s, { className: "size-3.5 text-[var(--color-action-primary-bg)]" }), "Show suggestions"]
55
+ children: [/* @__PURE__ */ a(s, { className: "size-3.5 text-action-primary-bg" }), "Show suggestions"]
56
56
  });
57
57
  let v = i.filter((e) => !e.done).length;
58
58
  return /* @__PURE__ */ o("section", {
@@ -63,7 +63,7 @@ function u({ steps: i, title: c, storageKey: u, className: d }) {
63
63
  children: [/* @__PURE__ */ o("h3", {
64
64
  className: "flex items-center gap-2 text-sm font-semibold text-text-primary",
65
65
  children: [
66
- /* @__PURE__ */ a(s, { className: "size-4 text-[var(--color-action-primary-bg)]" }),
66
+ /* @__PURE__ */ a(s, { className: "size-4 text-action-primary-bg" }),
67
67
  p,
68
68
  v > 0 && /* @__PURE__ */ o("span", {
69
69
  className: "rounded-full bg-[color-mix(in_oklab,var(--color-action-primary-bg)_18%,transparent)] px-2 py-0.5 text-[11px] font-medium text-text-secondary",
@@ -99,7 +99,7 @@ function u({ steps: i, title: c, storageKey: u, className: d }) {
99
99
  },
100
100
  className: e("group flex w-full items-start gap-3 rounded-lg px-2.5 py-2 text-start transition-colors hover:bg-[var(--color-surface-glass)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", t.done && "opacity-60"),
101
101
  children: [/* @__PURE__ */ a("span", {
102
- className: e("mt-0.5 grid size-7 shrink-0 place-items-center rounded-full border text-[var(--color-action-primary-bg)]", t.done ? "border-border-subtle bg-bg-muted text-text-muted" : "border-[color-mix(in_oklab,var(--color-action-primary-bg)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-action-primary-bg)_12%,transparent)]"),
102
+ className: e("mt-0.5 grid size-7 shrink-0 place-items-center rounded-full border text-action-primary-bg", t.done ? "border-border-subtle bg-bg-muted text-text-muted" : "border-[color-mix(in_oklab,var(--color-action-primary-bg)_35%,transparent)] bg-[color-mix(in_oklab,var(--color-action-primary-bg)_12%,transparent)]"),
103
103
  children: t.done ? /* @__PURE__ */ a("svg", {
104
104
  viewBox: "0 0 24 24",
105
105
  className: "size-4",
@@ -2,7 +2,7 @@ import { cn as e } from "../shared-utils.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { cva as n } from "class-variance-authority";
4
4
  // src/ui/icon-tile.tsx
5
- var r = n("inline-flex shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-[var(--color-accent-primary)]", {
5
+ var r = n("inline-flex shrink-0 items-center justify-center rounded-lg bg-[var(--color-accent-soft)] text-accent-primary", {
6
6
  variants: { size: {
7
7
  sm: "size-8 [&>svg]:size-4",
8
8
  md: "size-10 [&>svg]:size-5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.1116.8",
3
+ "version": "2026.1117.1",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "repository": {
6
6
  "type": "git",
@@ -287,6 +287,10 @@
287
287
  "style": "./src/shared/styles/canvas-theme.css",
288
288
  "default": "./src/shared/styles/canvas-theme.css"
289
289
  },
290
+ "./shared/styles/depth-theme.css": {
291
+ "style": "./src/shared/styles/depth-theme.css",
292
+ "default": "./src/shared/styles/depth-theme.css"
293
+ },
290
294
  "./shared/utils/lazyWithRetry": {
291
295
  "types": "./dist/shared/utils/lazyWithRetry.d.ts",
292
296
  "import": "./dist/shared/utils/lazyWithRetry.js"
@@ -0,0 +1,23 @@
1
+ /* BOFF-15055: the depth layer's accent ink for Tailwind's text utilities (FluidGrids).
2
+ *
3
+ * The accent has two jobs: a fill (the primary button, a checked control, a ring, a border)
4
+ * and ink (text and icons drawn with text-primary, text-accent-primary or
5
+ * text-action-primary-bg). In the dark themes the fill is a mid-tone that carries a label, too
6
+ * dark to read as text on the page, so the depth layer (shared/tokens/depth.css) sets
7
+ * --color-accent-text, the theme's bright accent, under <html data-depth="rich">. These entries
8
+ * make the three text utilities read it; every other utility keeps the fill, because Tailwind
9
+ * reads the text utilities' colour from --text-color-* before --color-*.
10
+ *
11
+ * Inline, so each utility resolves the token on its own element (a subtree that changes the
12
+ * accent, like the sidebar's current item, still reaches it). Without the opt-in the token is
13
+ * unset and each utility falls back to exactly what it read before: nothing changes for a page
14
+ * that never sets data-depth.
15
+ *
16
+ * Import it in the app's Tailwind entry, next to tokens.css:
17
+ * @import '@burdenoff/fe-libs/shared/styles/depth-theme.css';
18
+ * shared/utils/depthTheme.test.ts compiles it with Tailwind and pins what it generates. */
19
+ @theme inline {
20
+ --text-color-primary: var(--color-accent-text, var(--color-primary));
21
+ --text-color-accent-primary: var(--color-accent-text, var(--color-accent-primary));
22
+ --text-color-action-primary-bg: var(--color-accent-text, var(--color-action-primary-bg));
23
+ }
@@ -40,8 +40,9 @@
40
40
  *
41
41
  * Rules of this file:
42
42
  * - Colours only from tokens (the two accent glows, the gloss tokens, the pop and elevation
43
- * shadows, --boff-on-glow, the text and border tokens) and `transparent`; motion only from
44
- * the --motion-* tokens and the existing boff-rise keyframes.
43
+ * shadows, --boff-on-glow, the text, border and canvas tokens, and the action tokens of the
44
+ * button fills) and `transparent`; motion only from the --motion-* tokens and the existing
45
+ * boff-rise keyframes.
45
46
  * - Unlayered like the rest of tokens.css, so it wins over the layered Tailwind utilities it
46
47
  * decorates without !important. That is also why it never sets a border colour at rest and
47
48
  * never touches a focused element's box-shadow, outline or border: a consumer's meaning and
@@ -74,10 +75,23 @@
74
75
  * (written as `> * > ...` steps they measured four to seven times slower).
75
76
  * depthLayer.test.ts pins all of this; the browser run measures it.
76
77
  * - A selector breaks across lines only where it already has a descendant combinator.
77
- * - The strengths below are the most each theme allows while every text token that reads at
78
- * 4.5:1 today keeps 4.5:1, and every icon and bar that reads at 3:1 keeps 3:1, on what the
79
- * layer paints, under the glow where it shows below the top bar
80
- * (shared/utils/depthContrast.test.ts, which also pins the pairs that fail before it). */
78
+ * - The strengths below are the most each theme allows while every text pair reads at 4.5:1
79
+ * and every icon, bar and control at 3:1, on what the layer paints, under the glow where it
80
+ * shows below the top bar (shared/utils/depthContrast.test.ts, which also pins the one pair
81
+ * that fails before it). Four colour changes, all under the opt-in, let the glow reach the
82
+ * approved strength (BOFF-15055):
83
+ * the accent ink --color-accent-text: the accent as text and icons. The accent fill
84
+ * (the primary button's colour) is a mid-tone in the dark themes, too
85
+ * dark to read as text there; the ink is the theme's bright accent.
86
+ * Tailwind's text utilities read it through styles/depth-theme.css,
87
+ * which FluidGrids imports; fills, borders and rings keep the fill.
88
+ * a deeper hover forest, ocean and sunset step their primary button LIGHTER on
89
+ * hover under a white label (3.5:1); here it steps to the pressed fill.
90
+ * muted text on a page, the secondary text a little dimmed (dark themes).
91
+ * deeper fills on a page, fe-libs Button's white-label fills (the destructive one,
92
+ * and the primary one in forest, ocean and sunset) a step deeper.
93
+ * The first two hold app-wide (they fix pairs that fail without the glow); the last two only
94
+ * where the glow is. */
81
95
 
82
96
  @media screen and (forced-colors: none) {
83
97
  @supports (color: color-mix(in oklab, red 50%, transparent)) {
@@ -101,35 +115,85 @@
101
115
  --depth-row-wash: 8%;
102
116
  /* D4: the accent sheen inside a primary button (the light accent equals the button). */
103
117
  --depth-button-sheen: 22%;
104
- /* D6: the sidebar's current item, and how much of the primary text its subtitle takes. */
118
+ /* D6: the sidebar's current item (its wash from the start edge, and the second accent at
119
+ * its end), and how much of the primary text its subtitle takes. */
105
120
  --depth-nav-wash: 24%;
121
+ --depth-nav-wash-end: 8%;
106
122
  --depth-nav-subtitle: 0%;
123
+ /* A custom accent's ink: this share of the person's accent, the rest the text colour. */
124
+ --depth-custom-ink: 35%;
125
+ /* A custom accent's white-label primary button on a page: this share of the accent, the
126
+ * rest the darkest token of the base, under the base's light label. */
127
+ --depth-custom-fill: 58%;
107
128
  }
108
129
  /* ThemeProvider sets .dark for the dark, forest, ocean and sunset themes. */
109
130
  :root[data-depth='rich']:not([data-theme='high-contrast']).dark {
110
- /* "screen" lightens the dark page. */
111
- --depth-mesh-a: 10%;
112
- --depth-mesh-b: 10%;
131
+ /* "screen" lightens the dark page: the approved 26% and 20%. */
132
+ --depth-mesh-a: 26%;
133
+ --depth-mesh-b: 20%;
113
134
  --depth-blend: screen;
114
135
  --depth-nav-subtitle: 30%;
136
+ /* Muted text on a page: the secondary text with this share of it kept against the canvas
137
+ * (the rest is the canvas), so it still reads a step below the secondary text. */
138
+ --depth-muted-share: 93%;
139
+ /* A white label's fill on a page: this share of the resting fill, the rest the pressed
140
+ * fill. */
141
+ --depth-label-fill: 50%;
115
142
  }
116
- /* White labels on a mid-tone accent: any sheen takes them under 4.5:1. */
143
+ /* White labels on a mid-tone accent: any sheen takes them under 4.5:1. The glows are the
144
+ * dark theme's 26% and 20% scaled alike, to the most each theme allows. */
117
145
  :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='forest'] {
118
- --depth-mesh-a: 9.5%;
119
- --depth-mesh-b: 10%;
146
+ --depth-mesh-a: 17%;
147
+ --depth-mesh-b: 13.5%;
120
148
  --depth-button-sheen: 0%;
121
149
  }
122
150
  :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='ocean'] {
123
- --depth-mesh-a: 7.5%;
124
- --depth-mesh-b: 9%;
151
+ --depth-mesh-a: 19.5%;
152
+ --depth-mesh-b: 18%;
125
153
  --depth-button-sheen: 0%;
126
154
  }
127
155
  :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='sunset'] {
128
- --depth-mesh-a: 10.5%;
129
- --depth-mesh-b: 11%;
156
+ --depth-mesh-a: 15%;
157
+ --depth-mesh-b: 12%;
130
158
  --depth-button-sheen: 0%;
131
159
  }
132
160
 
161
+ /* ---------- Colour: the accent ink and a deeper hover, app-wide ----------
162
+ * Both hold everywhere under the opt-in (menus, dialogs and the sidebar too): they fix pairs
163
+ * that fail without the glow. The ink is the theme's bright accent (in the light theme it
164
+ * equals the fill, so nothing changes there). */
165
+ :root[data-depth='rich']:not([data-theme='high-contrast']) {
166
+ --color-accent-text: var(--color-accent-glow);
167
+ }
168
+ /* A custom accent (Appearance › Custom accent): ThemeProvider puts the person's accent inline
169
+ * as the action fill, with the label its luminance picks, and marks <html data-accent="custom">
170
+ * (and data-accent-label="dark" when that label is the dark one); the theme's glow tokens stay
171
+ * the theme's. The editor takes any colour, so what follows holds for any accent, on either
172
+ * base (depthContrast.test.ts checks 216 colours across the range, white and black, and the
173
+ * accents Appearance names):
174
+ * - the ink is --depth-custom-ink of the person's accent, the rest the text colour (lighter
175
+ * on a dark base, darker on a light one): it retints the text, at 4.5:1 or more;
176
+ * - no glow (D1), no button sheen (D4) and no sidebar wash (D6, both of its stops). All
177
+ * three are the theme's colour, not the person's, and the person's accent has no contrast
178
+ * to give under them: as a ring, a border or a checked box Blue #2563EB reads 3.04:1 on an
179
+ * elevated surface without the glow and 2.46:1 with it. The rest of the layer stays, in
180
+ * the theme's accent glow as before (lines, rings, bars and tiles, at 3:1 on their own);
181
+ * - a white-label primary button on a page takes a deeper fill (below).
182
+ * Same specificity as the `.dark` strengths above, so it comes after them. */
183
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-accent='custom'] {
184
+ --color-accent-text: color-mix(in oklab, var(--color-action-primary-bg) var(--depth-custom-ink), var(--color-text-primary));
185
+ --depth-mesh-a: 0%;
186
+ --depth-mesh-b: 0%;
187
+ --depth-button-sheen: 0%;
188
+ --depth-nav-wash: 0%;
189
+ --depth-nav-wash-end: 0%;
190
+ }
191
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='forest'],
192
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='ocean'],
193
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='sunset'] {
194
+ --color-action-primary-bgHover: var(--color-action-primary-bgActive);
195
+ }
196
+
133
197
  /* ---------- D1: a soft two-accent glow over the top of every page ----------
134
198
  * Page roots paint opaque backgrounds, so the glow is an overlay above them, blended
135
199
  * ("screen" or "multiply"), under the sticky top bar (z-30), and it never takes a click.
@@ -258,6 +322,18 @@
258
322
  h1:not(:where([data-depth='off'], [data-depth='off'] *)) {
259
323
  letter-spacing: -0.01em;
260
324
  }
325
+ /* Muted text under the dark glow: the glow lightens the page under it, and today's muted
326
+ * token (5.1-6.5:1) falls under 4.5:1 at the approved strength. On the page box only (the
327
+ * glow never reaches the sidebar, the top bar or a menu), so it reads as the secondary text
328
+ * a little dimmed. Its :root aliases are remapped with it, like D3's light remap: they
329
+ * resolve at :root and would keep the old value. */
330
+ :root[data-depth='rich']:not([data-theme='high-contrast']).dark
331
+ [data-shell-page][data-page-width]:not([data-page-width='tool']):not(:where([data-depth='off'], [data-depth='off'] *)) {
332
+ --color-text-muted: color-mix(in oklab, var(--color-text-secondary) var(--depth-muted-share), var(--color-bg-canvas));
333
+ --color-muted-foreground: var(--color-text-muted);
334
+ --color-content-muted: var(--color-text-muted);
335
+ --color-content-tertiary: var(--color-text-muted);
336
+ }
261
337
 
262
338
  /* ---------- D2: cards ----------
263
339
  * Every card gets the soft edge light (--shadow-pop carries the 1px accent ring) and a
@@ -684,6 +760,54 @@
684
760
  background-image: linear-gradient(135deg, color-mix(in oklab, var(--color-accent-glow) var(--depth-button-sheen), transparent), transparent 60%);
685
761
  box-shadow: 0 8px 22px -10px color-mix(in oklab, var(--color-accent-glow) 80%, transparent);
686
762
  }
763
+ /* White labels under the glow: the glow lightens a mid-tone fill and leaves the white label
764
+ * as it is, so fe-libs Button's white-label fills take a step deeper on a page: halfway (at
765
+ * --depth-label-fill) from the resting fill to the pressed one, and the pressed fill on hover.
766
+ * The resting fill is read from the border token, which equals it in these themes (a
767
+ * custom property cannot read its own earlier value). The button's own variables only, so
768
+ * the same colour as a ring, a border or a checked control elsewhere on the page stays; and
769
+ * never a disabled button, which keeps today's look (as D4's glow does). */
770
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='forest']
771
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
772
+ [data-slot='button'][data-variant='default']:not(:disabled, [aria-disabled='true']):not(:where([data-depth='off'], [data-depth='off'] *)),
773
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='ocean']
774
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
775
+ [data-slot='button'][data-variant='default']:not(:disabled, [aria-disabled='true']):not(:where([data-depth='off'], [data-depth='off'] *)),
776
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-theme='sunset']
777
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
778
+ [data-slot='button'][data-variant='default']:not(:disabled, [aria-disabled='true']):not(:where([data-depth='off'], [data-depth='off'] *)) {
779
+ --color-action-primary-bg: color-mix(in oklab, var(--color-action-primary-border) var(--depth-label-fill), var(--color-action-primary-bgActive));
780
+ }
781
+ /* A custom accent's primary button on a page, where ThemeProvider gave it the white label:
782
+ * it does so up to luminance 0.45, which leaves white at 2.5-3.0:1 on the lighter named
783
+ * accents (Blue #60A5FA 2.54:1) and 4.47:1 on the editor's default. So the fill is
784
+ * --depth-custom-fill of the accent and the rest the base's darkest token, under the base's
785
+ * light label (5.2:1 or more for any such accent); hover and pressed go 15% deeper each.
786
+ * Where ThemeProvider chose the dark label (data-accent-label="dark": a light accent, 9:1 or
787
+ * more with no glow) the button stays as it is. The accent is read from its :root alias
788
+ * --color-accent-primary (the button's own --color-action-primary-bg is what it sets). */
789
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-accent='custom']:not([data-accent-label='dark']).dark
790
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
791
+ [data-slot='button'][data-variant='default']:not(:disabled, [aria-disabled='true']):not(:where([data-depth='off'], [data-depth='off'] *)) {
792
+ --color-action-primary-bg: color-mix(in oklab, var(--color-accent-primary) var(--depth-custom-fill), var(--color-bg-canvas));
793
+ --color-action-primary-bgHover: color-mix(in oklab, var(--color-action-primary-bg) 85%, var(--color-bg-canvas));
794
+ --color-action-primary-bgActive: color-mix(in oklab, var(--color-action-primary-bgHover) 85%, var(--color-bg-canvas));
795
+ --color-action-primary-text: var(--color-text-primary);
796
+ }
797
+ :root[data-depth='rich']:not([data-theme='high-contrast'])[data-accent='custom']:not([data-accent-label='dark']):not(.dark)
798
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
799
+ [data-slot='button'][data-variant='default']:not(:disabled, [aria-disabled='true']):not(:where([data-depth='off'], [data-depth='off'] *)) {
800
+ --color-action-primary-bg: color-mix(in oklab, var(--color-accent-primary) var(--depth-custom-fill), var(--color-bg-inverse));
801
+ --color-action-primary-bgHover: color-mix(in oklab, var(--color-action-primary-bg) 85%, var(--color-bg-inverse));
802
+ --color-action-primary-bgActive: color-mix(in oklab, var(--color-action-primary-bgHover) 85%, var(--color-bg-inverse));
803
+ --color-action-primary-text: var(--color-text-inverse);
804
+ }
805
+ :root[data-depth='rich']:not([data-theme='high-contrast']).dark
806
+ [data-shell-page][data-page-width]:not([data-page-width='tool'])
807
+ [data-slot='button'][data-variant='destructive']:not(:disabled, [aria-disabled='true']):not(:where([data-depth='off'], [data-depth='off'] *)) {
808
+ --color-action-danger-bg: color-mix(in oklab, var(--color-action-danger-border) var(--depth-label-fill), var(--color-action-danger-bgActive));
809
+ --color-action-danger-bgHover: var(--color-action-danger-bgActive);
810
+ }
687
811
 
688
812
  /* ---------- D4: a field you type in glows ----------
689
813
  * A soft accent halo drawn with a drop-shadow filter around the field and its own focus
@@ -757,12 +881,12 @@
757
881
  --color-accent-primary: var(--color-accent-glow);
758
882
  --color-text-muted: color-mix(in oklab, var(--color-text-primary) var(--depth-nav-subtitle), var(--color-text-secondary));
759
883
  border-radius: var(--radius-button);
760
- background-image: linear-gradient(to right, color-mix(in oklab, var(--color-accent-glow) var(--depth-nav-wash), transparent), color-mix(in oklab, var(--color-accent-glow-alt) 8%, transparent));
884
+ background-image: linear-gradient(to right, color-mix(in oklab, var(--color-accent-glow) var(--depth-nav-wash), transparent), color-mix(in oklab, var(--color-accent-glow-alt) var(--depth-nav-wash-end), transparent));
761
885
  }
762
886
  :root[data-depth='rich']:not([data-theme='high-contrast'])[dir='rtl']
763
887
  [data-shell-sidebar]
764
888
  [data-active='true']:not(:where([data-depth='off'], [data-depth='off'] *)) {
765
- background-image: linear-gradient(to left, color-mix(in oklab, var(--color-accent-glow) var(--depth-nav-wash), transparent), color-mix(in oklab, var(--color-accent-glow-alt) 8%, transparent));
889
+ background-image: linear-gradient(to left, color-mix(in oklab, var(--color-accent-glow) var(--depth-nav-wash), transparent), color-mix(in oklab, var(--color-accent-glow-alt) var(--depth-nav-wash-end), transparent));
766
890
  }
767
891
  :root[data-depth='rich']:not([data-theme='high-contrast'])
768
892
  [data-shell-sidebar]