@newtone-dev/ui-react-web 0.10.0 → 0.13.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 (80) hide show
  1. package/README.md +9 -5
  2. package/dist/accordion/accordion.css +4 -4
  3. package/dist/avatar/avatar.css +7 -2
  4. package/dist/avatar/avatar.d.ts +7 -1
  5. package/dist/avatar/avatar.d.ts.map +1 -1
  6. package/dist/avatar/avatar.js +7 -2
  7. package/dist/avatar/avatar.js.map +1 -1
  8. package/dist/bar-list/bar-list.css +29 -4
  9. package/dist/card-box/card-box.css +5 -3
  10. package/dist/card-box/card-box.d.ts +11 -3
  11. package/dist/card-box/card-box.d.ts.map +1 -1
  12. package/dist/card-box/card-box.js +4 -2
  13. package/dist/card-box/card-box.js.map +1 -1
  14. package/dist/card-grid/card-grid.css +28 -1
  15. package/dist/card-grid/card-grid.d.ts +7 -1
  16. package/dist/card-grid/card-grid.d.ts.map +1 -1
  17. package/dist/card-grid/card-grid.js +14 -8
  18. package/dist/card-grid/card-grid.js.map +1 -1
  19. package/dist/chart-key/chart-key.css +4 -4
  20. package/dist/column-chart/column-chart.css +35 -6
  21. package/dist/control/control.css +21 -4
  22. package/dist/control/control.d.ts +15 -5
  23. package/dist/control/control.d.ts.map +1 -1
  24. package/dist/control/control.js +7 -6
  25. package/dist/control/control.js.map +1 -1
  26. package/dist/data-list/data-list.css +7 -5
  27. package/dist/data-list/data-list.d.ts +7 -1
  28. package/dist/data-list/data-list.d.ts.map +1 -1
  29. package/dist/data-list/data-list.js +7 -2
  30. package/dist/data-list/data-list.js.map +1 -1
  31. package/dist/feature-card/feature-card.css +1 -1
  32. package/dist/figure/figure.css +1 -1
  33. package/dist/framed-icon/framed-icon.css +1 -1
  34. package/dist/gallery/gallery.css +27 -2
  35. package/dist/gallery/gallery.d.ts.map +1 -1
  36. package/dist/gallery/gallery.js +5 -2
  37. package/dist/gallery/gallery.js.map +1 -1
  38. package/dist/icon/icon.d.ts.map +1 -1
  39. package/dist/icon/icon.js +30 -3
  40. package/dist/icon/icon.js.map +1 -1
  41. package/dist/icon-link/icon-link.css +2 -2
  42. package/dist/index.d.ts +2 -0
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +1 -0
  45. package/dist/index.js.map +1 -1
  46. package/dist/link/link.css +7 -7
  47. package/dist/logo-marquee/logo-marquee.d.ts.map +1 -1
  48. package/dist/logo-marquee/logo-marquee.js +6 -2
  49. package/dist/logo-marquee/logo-marquee.js.map +1 -1
  50. package/dist/media-window/index.d.ts +4 -0
  51. package/dist/media-window/index.d.ts.map +1 -0
  52. package/dist/media-window/index.js +3 -0
  53. package/dist/media-window/index.js.map +1 -0
  54. package/dist/media-window/media-window.css +5 -2
  55. package/dist/media-window/media-window.d.ts +28 -0
  56. package/dist/media-window/media-window.d.ts.map +1 -0
  57. package/dist/media-window/media-window.js +5 -0
  58. package/dist/media-window/media-window.js.map +1 -0
  59. package/dist/navbar/navbar.d.ts +16 -3
  60. package/dist/navbar/navbar.d.ts.map +1 -1
  61. package/dist/navbar/navbar.js +8 -5
  62. package/dist/navbar/navbar.js.map +1 -1
  63. package/dist/numbered-list/numbered-list.css +1 -1
  64. package/dist/on-media/on-media.css +146 -53
  65. package/dist/page/page.css +9 -9
  66. package/dist/page/page.d.ts +1 -1
  67. package/dist/segmented-control/segmented-control.css +28 -5
  68. package/dist/split-bar/split-bar.css +36 -4
  69. package/dist/stat-card/stat-card.css +3 -3
  70. package/dist/text/text.css +29 -2
  71. package/dist/tooltip/tooltip.css +6 -1
  72. package/dist/tooltip/tooltip.d.ts +9 -1
  73. package/dist/tooltip/tooltip.d.ts.map +1 -1
  74. package/dist/tooltip/tooltip.js +61 -4
  75. package/dist/tooltip/tooltip.js.map +1 -1
  76. package/dist/video-lightbox/video-lightbox.css +13 -7
  77. package/dist/video-lightbox/video-lightbox.d.ts.map +1 -1
  78. package/dist/video-lightbox/video-lightbox.js +5 -2
  79. package/dist/video-lightbox/video-lightbox.js.map +1 -1
  80. package/package.json +5 -1
@@ -14,14 +14,15 @@ import { NavbarMenuButton } from './menu-button/menu-button.js';
14
14
  * is absolutely positioned against the document origin -- it has no positioned ancestor -- so it
15
15
  * sits at the top of the page, out of flow, taking up no space. Its height is
16
16
  * `--newtone-navbar-threshold`, default `1px`, and the attribute appears when it scrolls out of
17
- * view. A site that wants the swap to happen after the first screenful sets that property to
18
- * `100vh`. Picking the number here would be this component deciding what a fold is for layouts
17
+ * view. A site that wants the swap to happen after the first screenful passes
18
+ * `scrollThreshold="100vh"`, which this file writes onto the sentinel -- since 2026-09-26 a site
19
+ * declares no `--newtone-*` property of its own (issue 201). Picking the number here would be this component deciding what a fold is for layouts
19
20
  * it has never seen.
20
21
  *
21
22
  * An IntersectionObserver rather than a scroll handler: a scroll handler runs on every frame of
22
23
  * every scroll to answer a question whose answer changes twice a page.
23
24
  */
24
- export function Navbar({ open: openProp, onOpenChange, size = 'md', maxInlineSize, className, children, ...rest }) {
25
+ export function Navbar({ open: openProp, onOpenChange, size = 'md', maxInlineSize, blockSize, scrollThreshold, className, style, children, ...rest }) {
25
26
  const [openState, setOpenState] = useState(false);
26
27
  const [scrolled, setScrolled] = useState(false);
27
28
  const [collapsible, setCollapsible] = useState(false);
@@ -78,9 +79,11 @@ export function Navbar({ open: openProp, onOpenChange, size = 'md', maxInlineSiz
78
79
  document.body.style.overflow = previous;
79
80
  };
80
81
  }, [open]);
81
- return (_jsxs(NavbarContext.Provider, { value: { open, setOpen, panelId, triggerRef, registerTrigger }, children: [_jsx("div", { ref: sentinelRef, className: "newtone-navbar-sentinel", "aria-hidden": "true" }), _jsx("header", { ...rest, className: ['newtone-navbar', `newtone-navbar--${size}`, className]
82
+ return (_jsxs(NavbarContext.Provider, { value: { open, setOpen, panelId, triggerRef, registerTrigger }, children: [_jsx("div", { ref: sentinelRef, className: "newtone-navbar-sentinel", "aria-hidden": "true", style: scrollThreshold === undefined
83
+ ? undefined
84
+ : { '--newtone-navbar-threshold': scrollThreshold } }), _jsx("header", { ...rest, className: ['newtone-navbar', `newtone-navbar--${size}`, className]
82
85
  .filter(Boolean)
83
- .join(' '), "data-newtone-navbar-scrolled": scrolled ? '' : undefined, "data-newtone-navbar-menu-open": open ? '' : undefined, "data-newtone-navbar-collapsible": collapsible ? '' : undefined, children: _jsx("div", { className: "newtone-navbar-track", style: maxInlineSize === undefined ? undefined : { maxInlineSize }, children: children }) })] }));
86
+ .join(' '), "data-newtone-navbar-scrolled": scrolled ? '' : undefined, "data-newtone-navbar-menu-open": open ? '' : undefined, "data-newtone-navbar-collapsible": collapsible ? '' : undefined, style: blockSize === undefined ? style : { blockSize, ...style }, children: _jsx("div", { className: "newtone-navbar-track", style: maxInlineSize === undefined ? undefined : { maxInlineSize }, children: children }) })] }));
84
87
  }
85
88
  /**
86
89
  * The parts hang off `Navbar` and are exported nowhere else.
@@ -1 +1 @@
1
- {"version":3,"file":"navbar.js","sourceRoot":"","sources":["../../src/navbar/navbar.tsx"],"names":[],"mappings":";AAAA,OAAO,EACH,WAAW,EACX,SAAS,EACT,KAAK,EACL,MAAM,EACN,QAAQ,GAGX,MAAM,OAAO,CAAA;AACd,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAqE/D;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,MAAM,CAAC,EACnB,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,IAAI,GAAG,IAAI,EACX,aAAa,EACb,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACG;IACV,MAAM,CAAC,SAAS,EAAE,YAAY,C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  content: counter(newtone-numbered-list) '.';
30
- color: var(--newtone-numbered-list-marker);
30
+ color: var(--newtone-numbered-list-marker-text);
31
31
 
32
32
  /* Tabular figures so 9 and 10 do not shift the column. Silently ignored by a family with no
33
33
  `tnum`, which is the same no-op `Text figures="tabular"` documents. */
@@ -5,10 +5,14 @@
5
5
  *
6
6
  * Every other stylesheet here sits next to the component that emits its markup. This one does not,
7
7
  * because there is no element to render and no prop for a caller to pass: what it publishes is a
8
- * VOCABULARY -- five class names and the states under them -- worn by markup in this library and in
8
+ * VOCABULARY -- six class names and the states under them -- worn by markup in this library and in
9
9
  * the sites that consume it. `on-media/` is the only folder in `src/` with no `index.ts`, and the
10
10
  * blueprint's section 4.1 says why that absence is the design rather than an oversight.
11
11
  *
12
+ * FIVE UNTIL 2026-09-26. `.newtone-on-media-control` was a 48px disc that four elements wore; three
13
+ * of them were real controls and became `<Control>`s, and the fourth -- a decorative `<span>` --
14
+ * took the box away with it as `.newtone-on-media-disc`. issues/done/155.
15
+ *
12
16
  * ---- why the colours are literals ----------------------------------------
13
17
  *
14
18
  * A Newtone role is RELATIVE. It resolves against the surface, so a box painted from one recedes
@@ -25,9 +29,16 @@
25
29
  * ---- and why this sheet still declares no colour -------------------------
26
30
  *
27
31
  * The nineteen channels are a token group, `newtone_ui_tokens/src/semantic/on-media.json`, emitted
28
- * once at `:root` because a literal has no facet to vary on. This file reads them and writes none,
29
- * which is section 5's *a component reads only its own tokens* holding here exactly as it holds
30
- * everywhere else. **What has to exist once is each ALPHA**: bare `white` and bare `black` appear
32
+ * once at `:root` because a literal has no facet to vary on. This file reads them and writes none
33
+ * OF ITS OWN, which is section 5's *a component reads only its own tokens* holding here exactly as
34
+ * it holds everywhere else.
35
+ *
36
+ * WHAT IT DOES WRITE, FROM 2026-09-26, IS 27 OF `Control`'S -- and it is the only file in this
37
+ * library that declares a name the token build emits. That is a stated breach of
38
+ * newtone_ui_tokens.md section 5, amended the same day with three conditions this rule keeps: one
39
+ * file, `--newtone-control-*` only, never at `:root`. The argument is in the rule below.
40
+ *
41
+ * **What has to exist once is each ALPHA**: bare `white` and bare `black` appear
31
42
  * more than once below and a keyword cannot drift from itself, where `62%` written in two places is
32
43
  * a number somebody can retune in one of them.
33
44
  *
@@ -48,45 +59,121 @@
48
59
  * client* is the check, and it is the reason this paragraph is worded the way it is rather than
49
60
  * the obvious way. */
50
61
 
51
- /* A 48px disc of frosted white with a dark glyph in it.
52
- *
53
- * **The blur is load-bearing rather than decorative and the trade travels with it.** A photograph
54
- * carries high-frequency detail and a translucent plate inherits it straight through, so a glyph on
55
- * the plate competes with whatever texture happens to be behind it. Blurring the backdrop removes
56
- * the frequency and keeps the colour, and that is what lets the fill sit at 45% instead of the
57
- * ~100% an unblurred plate would need. **Where `backdrop-filter` is unsupported this degrades to a
58
- * black glyph on a flat 45% wash**, which is legible by luck rather than by arithmetic.
59
- *
60
- * **The rim is authored as `transparent` rather than left out.** Every control here carries a 1px
61
- * line so its box is the same whether or not a variant paints one; a border with no colour falls
62
- * back to `currentColor`, which here is the glyph -- the loudest rim available. This is the only way
63
- * to say *no rim* without changing the box, and a removed border would be a layout shift where a
64
- * transparent one is a rim that is not there.
65
- *
66
- * `50%` is the corner and the box is square, so this draws a circle and not an ellipse. `3rem` is
67
- * written as a length rather than through `--newtone-space-12`, which is `framed-icon.css`'s
68
- * arrangement for its own two sizes: geometry that IS the component is not a step a caller chose. */
62
+ /* WHAT A `Control` BECOMES ON A PICTURE, and it is a RE-POINT rather than a box.
63
+ *
64
+ * Worn beside `.newtone-control` on the same element -- `<Control className="newtone-on-media-control">`.
65
+ * Every value below is one of Control's own custom properties pointed at an on-media channel, so the
66
+ * component is told nothing and reads the names it always reads. Three call sites in this library:
67
+ * gallery/'s two arrows and video-lightbox/'s close.
68
+ *
69
+ * ---- why this is not simply three declarations of paint ---------------------
70
+ *
71
+ * IT IS THE ONE FORM THAT DOES NOT DEPEND ON IMPORT ORDER. `background-color` here would be `0,1,0`
72
+ * against `.newtone-control--primary`'s `0,1,0`, so the winner would be whichever sheet loads
73
+ * second -- and a consuming site loads THIS sheet FIRST, argued at the head of this file, which is
74
+ * the losing position. A custom property declared on an ELEMENT beats the same name declared at
75
+ * `:root`, always, and reaches nothing else on the page: the themed control a metre away is
76
+ * untouched. Section 4.1 of the repo blueprint.
77
+ *
78
+ * THE 27 NAMES HERE ARE EMITTED BY THE TOKEN BUILD, which newtone_ui_tokens.md section 5 says this
79
+ * library may not declare. That row was amended the same day with three conditions, and all three
80
+ * are visible in this rule: one file, `--newtone-control-*` only, never at `:root`. The harm that
81
+ * row names is two declarations competing for a whole page; these compete for one box, on purpose.
82
+ *
83
+ * ---- both tiers, one appearance --------------------------------------------
84
+ *
85
+ * `primary` is a soft outline and `secondary` a ghost so a row of controls can sit under a page's
86
+ * Button without competing with it. ON A PHOTOGRAPH THERE IS NO PAGE AND NO BUTTON, so the tier has
87
+ * no hierarchy to sit inside and the two are given one appearance. That is the ground saying so,
88
+ * rather than a rule nobody could enforce about which variant a caller may pass.
89
+ *
90
+ * ---- what is NOT here ------------------------------------------------------
91
+ *
92
+ * THE SIZE. A ground can re-point a colour and cannot re-point a size: `icon.tsx` writes
93
+ * `--newtone-icon-px` inline from its own prop, so a stylesheet that grew the box would leave a
94
+ * 20px glyph inside a 24px leading -- the exact defect Control shipped with on 2026-09-16. The 48 is
95
+ * `size="xl"`, a rung, and the rung carries the glyph with it. components/control.md.
96
+ *
97
+ * THE BLUR IS, because no token carries one. It is load-bearing rather than decorative and the
98
+ * trade travels with it: a photograph carries high-frequency detail and a translucent plate inherits
99
+ * it straight through, so blurring the backdrop removes the frequency and keeps the colour, and that
100
+ * is what lets the fill sit at 45% instead of the ~100% an unblurred plate would need. **Where
101
+ * `backdrop-filter` is unsupported this degrades to a black glyph on a flat 45% wash**, which is
102
+ * legible by luck rather than by arithmetic.
103
+ *
104
+ * THE RIM IS `transparent` AND IS STILL DRAWN. `control.css` writes `border: 1px solid` on every
105
+ * control so the box is the same whether or not a variant paints a line; a border with no colour
106
+ * falls back to `currentColor`, which here is the glyph -- the loudest rim available. Stating the
107
+ * colour is the only way to say *no rim* without changing the box.
108
+ *
109
+ * `50%` IS THE CORNER AND THE GROUND'S TO SET. Control's `round` prop spells the same thing for a
110
+ * caller who wants a circle on a page; this is a photograph making one. Both write `50%`, which is
111
+ * geometry and names no length, so neither adds a writer to the radius scale. */
69
112
  .newtone-on-media-control {
113
+ --newtone-control-radius: 50%;
114
+
115
+ --newtone-control-primary-rest-fill: var(--newtone-on-media-control-rest-fill);
116
+ --newtone-control-primary-rest-text: var(--newtone-on-media-control-rest-text);
117
+ --newtone-control-primary-rest-border: transparent;
118
+ --newtone-control-primary-hover-fill: var(--newtone-on-media-control-hover-fill);
119
+ --newtone-control-primary-hover-text: var(--newtone-on-media-control-rest-text);
120
+ --newtone-control-primary-hover-border: transparent;
121
+ --newtone-control-primary-pressed-fill: var(--newtone-on-media-control-pressed-fill);
122
+ --newtone-control-primary-pressed-text: var(--newtone-on-media-control-rest-text);
123
+ --newtone-control-primary-pressed-border: transparent;
124
+ --newtone-control-primary-disabled-fill: var(--newtone-on-media-control-rest-fill);
125
+ --newtone-control-primary-disabled-text: var(--newtone-on-media-control-rest-text);
126
+ --newtone-control-primary-disabled-border: transparent;
127
+ --newtone-control-primary-focus-ring: var(--newtone-on-media-focus-ring);
128
+
129
+ --newtone-control-secondary-rest-fill: var(--newtone-on-media-control-rest-fill);
130
+ --newtone-control-secondary-rest-text: var(--newtone-on-media-control-rest-text);
131
+ --newtone-control-secondary-rest-border: transparent;
132
+ --newtone-control-secondary-hover-fill: var(--newtone-on-media-control-hover-fill);
133
+ --newtone-control-secondary-hover-text: var(--newtone-on-media-control-rest-text);
134
+ --newtone-control-secondary-hover-border: transparent;
135
+ --newtone-control-secondary-pressed-fill: var(--newtone-on-media-control-pressed-fill);
136
+ --newtone-control-secondary-pressed-text: var(--newtone-on-media-control-rest-text);
137
+ --newtone-control-secondary-pressed-border: transparent;
138
+ --newtone-control-secondary-disabled-fill: var(--newtone-on-media-control-rest-fill);
139
+ --newtone-control-secondary-disabled-text: var(--newtone-on-media-control-rest-text);
140
+ --newtone-control-secondary-disabled-border: transparent;
141
+ --newtone-control-secondary-focus-ring: var(--newtone-on-media-focus-ring);
142
+
143
+ -webkit-backdrop-filter: blur(16px);
144
+ backdrop-filter: blur(16px);
145
+ }
146
+
147
+ /* THE SAME DISC WITH NO PRESS IN IT, and it exists because of one element.
148
+ *
149
+ * `video-lightbox/`'s play disc is a `<span aria-hidden>` inside the tile's own `<button>` -- the
150
+ * whole poster is the press target, the tile has one accessible name and it is the film's title, and
151
+ * announcing a play glyph beside it would be one control named twice. So there is no `<Control>` it
152
+ * could be: a Control that cannot be pressed, or a FramedIcon that cannot either, and neither of
153
+ * those is a thing. It wears this instead, added 2026-09-26 with issue 155.
154
+ *
155
+ * NO `cursor`, NO `:hover`, NO `:active`, NO FOCUS RING, because a decoration has no states of its
156
+ * own. The tile paints this box's hover from the TILE's hover -- the pointer is over the button and
157
+ * only incidentally over the disc -- which is video-lightbox.css's rule and the reason this file
158
+ * publishes channels rather than only classes. Until today that rule was at equal specificity with a
159
+ * `:hover` here and won on import order; there is nothing to win against now.
160
+ *
161
+ * `3rem` is written as a length rather than through `--newtone-space-12`, which is
162
+ * `framed-icon.css`'s arrangement for its own two sizes: geometry that IS the shape is not a step a
163
+ * caller chose. It is 48 because that is what a control on a photograph measures -- the ladder's
164
+ * fourth rung -- and it is a literal here because a decoration has no rung to read it from. */
165
+ .newtone-on-media-disc {
70
166
  display: grid;
71
167
  place-items: center;
72
168
  width: 3rem;
73
169
  height: 3rem;
74
170
  padding: 0;
75
- background-color: var(--newtone-on-media-control-bg);
76
- color: var(--newtone-on-media-control-fg);
171
+ background-color: var(--newtone-on-media-control-rest-fill);
172
+ color: var(--newtone-on-media-control-rest-text);
77
173
  border: 1px solid transparent;
78
174
  border-radius: 50%;
79
175
  -webkit-backdrop-filter: blur(16px);
80
176
  backdrop-filter: blur(16px);
81
- cursor: pointer;
82
- }
83
-
84
- .newtone-on-media-control:hover {
85
- background-color: var(--newtone-on-media-control-bg-hover);
86
- }
87
-
88
- .newtone-on-media-control:active {
89
- background-color: var(--newtone-on-media-control-bg-press);
90
177
  }
91
178
 
92
179
  /* The filled action, and it is three declarations because it is PAINT and not a box.
@@ -109,19 +196,19 @@
109
196
  *
110
197
  * The radius is the consumer's for the same reason the rest of the box is. */
111
198
  .newtone-on-media-button {
112
- background-color: var(--newtone-on-media-button-bg);
113
- color: var(--newtone-on-media-button-fg);
199
+ background-color: var(--newtone-on-media-button-rest-fill);
200
+ color: var(--newtone-on-media-button-rest-text);
114
201
  border-color: transparent;
115
202
  }
116
203
 
117
204
  .newtone-on-media-button:hover {
118
- background-color: var(--newtone-on-media-button-bg-hover);
119
- color: var(--newtone-on-media-button-fg);
205
+ background-color: var(--newtone-on-media-button-hover-fill);
206
+ color: var(--newtone-on-media-button-rest-text);
120
207
  }
121
208
 
122
209
  .newtone-on-media-button:active {
123
- background-color: var(--newtone-on-media-button-bg-press);
124
- color: var(--newtone-on-media-button-fg);
210
+ background-color: var(--newtone-on-media-button-pressed-fill);
211
+ color: var(--newtone-on-media-button-rest-text);
125
212
  }
126
213
 
127
214
  /* The same box, outlined. **It is a modifier and not a second class**, worn beside the one above: a
@@ -145,19 +232,19 @@
145
232
  * These three rules come AFTER the three above at the same specificity, which is what makes the
146
233
  * modifier win. Inside one file that ordering is a constraint rather than a taste. */
147
234
  .newtone-on-media-button-outline {
148
- background-color: var(--newtone-on-media-button-outline-bg);
149
- color: var(--newtone-on-media-button-outline-fg);
150
- border-color: var(--newtone-on-media-button-outline-border);
235
+ background-color: var(--newtone-on-media-button-outline-rest-fill);
236
+ color: var(--newtone-on-media-button-outline-rest-text);
237
+ border-color: var(--newtone-on-media-button-outline-rest-border);
151
238
  }
152
239
 
153
240
  .newtone-on-media-button-outline:hover {
154
- background-color: var(--newtone-on-media-button-outline-bg-hover);
155
- color: var(--newtone-on-media-button-outline-fg);
241
+ background-color: var(--newtone-on-media-button-outline-hover-fill);
242
+ color: var(--newtone-on-media-button-outline-rest-text);
156
243
  }
157
244
 
158
245
  .newtone-on-media-button-outline:active {
159
- background-color: var(--newtone-on-media-button-outline-bg-press);
160
- color: var(--newtone-on-media-button-outline-fg);
246
+ background-color: var(--newtone-on-media-button-outline-pressed-fill);
247
+ color: var(--newtone-on-media-button-outline-rest-text);
161
248
  }
162
249
 
163
250
  /* Words on a picture. It sets `color` and nothing else, so a heading is still a heading and a
@@ -176,7 +263,7 @@
176
263
  width: 0.5rem;
177
264
  height: 0.5rem;
178
265
  padding: 0;
179
- background-color: var(--newtone-on-media-mark);
266
+ background-color: var(--newtone-on-media-mark-rest-fill);
180
267
  border: 0;
181
268
  border-radius: calc(infinity * 1px);
182
269
  cursor: pointer;
@@ -184,15 +271,21 @@
184
271
 
185
272
  .newtone-on-media-mark[aria-current] {
186
273
  width: 1.5rem;
187
- background-color: var(--newtone-on-media-mark-current);
274
+ background-color: var(--newtone-on-media-mark-current-fill);
188
275
  }
189
276
 
190
- /* The one ring, for everything above. A focus ring on a photograph has the same problem as a fill
191
- * on one and takes the same answer. `2px solid` is the expression this library's link, button and
192
- * navbar all already use. */
193
- .newtone-on-media-control:focus-visible,
277
+ /* The one ring, for the two classes that still need one. A focus ring on a photograph has the same
278
+ * problem as a fill on one and takes the same answer. `2px solid` is the expression this library's
279
+ * link, button and navbar all already use.
280
+ *
281
+ * `.newtone-on-media-control` LEFT THIS SELECTOR ON 2026-09-26 and did not lose the ring: it is a
282
+ * `.newtone-control` now, `control.css` draws `2px solid` with the same offset, and the colour is
283
+ * `--newtone-control-*-focus-ring`, re-pointed above. Two rules writing one outline at equal
284
+ * specificity would have been decided by import order for no gain. `.newtone-on-media-disc` is not
285
+ * here either, and never was: it is `aria-hidden` inside somebody else's button and cannot take
286
+ * focus. */
194
287
  .newtone-on-media-button:focus-visible,
195
288
  .newtone-on-media-mark:focus-visible {
196
- outline: 2px solid var(--newtone-on-media-ring);
289
+ outline: 2px solid var(--newtone-on-media-focus-ring);
197
290
  outline-offset: 2px;
198
291
  }
@@ -32,7 +32,7 @@
32
32
  display: grid;
33
33
  grid-template-rows: auto 1fr;
34
34
  min-block-size: 100dvh;
35
- background: var(--newtone-page-ground);
35
+ background: var(--newtone-page-fill);
36
36
 
37
37
  /* ---- the gutter, and the tighter one a phone gets ---------------------
38
38
  *
@@ -111,7 +111,7 @@
111
111
  display: grid;
112
112
  grid-template-rows: 1fr auto;
113
113
  gap: 1px;
114
- background: var(--newtone-page-divider);
114
+ background: var(--newtone-page-divider-border);
115
115
  }
116
116
 
117
117
  /* `min-inline-size: 0` IS NOT DECORATION. A grid item's automatic minimum size is its content, so a
@@ -120,13 +120,13 @@
120
120
  cannot see. */
121
121
  .newtone-page-main {
122
122
  min-inline-size: 0;
123
- background: var(--newtone-page-ground);
123
+ background: var(--newtone-page-fill);
124
124
  }
125
125
 
126
126
  /* ---- the footer, and the paint below it ---------------------------------
127
127
  *
128
128
  * THE GROUND IS THE SAME TOKEN AS THE MAIN REGION'S AND RESOLVES TO A DIFFERENT COLOUR. This element
129
- * is a `Surface`, so `--newtone-page-ground` resolves at ITS elevation: the page's rung when the
129
+ * is a `Surface`, so `--newtone-page-fill` resolves at ITS elevation: the page's rung when the
130
130
  * caller passed no `footerElevation`, one below when they passed `deep`. There is no second token,
131
131
  * because a `page.footer-ground` would be a name for a value the cascade already computes and the
132
132
  * two would agree at `base` and diverge nowhere a test looks.
@@ -152,8 +152,8 @@
152
152
  * affects no layout at all. `node tools/check-page-paint.mjs <url>` is that measurement. */
153
153
  .newtone-page-footer {
154
154
  min-inline-size: 0;
155
- background: var(--newtone-page-ground);
156
- box-shadow: 0 100vh 0 100vh var(--newtone-page-ground);
155
+ background: var(--newtone-page-fill);
156
+ box-shadow: 0 100vh 0 100vh var(--newtone-page-fill);
157
157
  }
158
158
 
159
159
  /* ---- the track ----------------------------------------------------------
@@ -212,14 +212,14 @@
212
212
  * and scroll the document sideways. The main region's own copy does not cover this, because that
213
213
  * rule protects the grid ROW and this one protects the band's own box.
214
214
  *
215
- * IT PAINTS `--newtone-page-ground` AND IT HAS TO, BECAUSE A SURFACE DECIDES A COLOUR AND DOES NOT
215
+ * IT PAINTS `--newtone-page-fill` AND IT HAS TO, BECAUSE A SURFACE DECIDES A COLOUR AND DOES NOT
216
216
  * APPLY ONE. The facets re-point every role token under this element; painting is the element's own
217
217
  * job.
218
218
  *
219
219
  * THIS RULE SHIPPED WITHOUT THE DECLARATION FOR EXACTLY ONE MEASUREMENT, and the comment that stood
220
220
  * here argued for its absence -- that painting would *"make every band opaque at the page's rung and
221
221
  * silently break the nested-Surface resolution that `footerElevation` is built on"*. THAT IS BACKWARDS.
222
- * `--newtone-page-ground` read inside a Surface resolves at THAT Surface's facets, which is the very
222
+ * `--newtone-page-fill` read inside a Surface resolves at THAT Surface's facets, which is the very
223
223
  * mechanism `footerElevation` runs on: the footer paints this same token and comes back one rung
224
224
  * below. A band with no facets paints the page's own colour and is invisible as a band, which is what
225
225
  * a page of one band wants.
@@ -236,5 +236,5 @@
236
236
  * two elements -- which is the check in components/page.md, unchanged by any of this. */
237
237
  .newtone-page-band {
238
238
  min-inline-size: 0;
239
- background: var(--newtone-page-ground);
239
+ background: var(--newtone-page-fill);
240
240
  }
@@ -31,7 +31,7 @@ import type { HTMLAttributes, ReactNode } from 'react';
31
31
  * ---- same rung, or one below -------------------------------------------
32
32
  *
33
33
  * **`footerElevation` omitted is *same rung*; `"deep"` is *one below*.** The footer is a nested
34
- * `Surface`, so with no attribute it resolves whatever the page resolves, and `--newtone-page-ground`
34
+ * `Surface`, so with no attribute it resolves whatever the page resolves, and `--newtone-page-fill`
35
35
  * read inside it comes back as that rung's ground. **Nothing here compares the two**, and nothing
36
36
  * here defaults either: blueprints/newtone/repos/newtone_ui_react-web.md section 5's first row counts
37
37
  * a default as a READ, and a component that read a facet would have learned that `deep` exists.
@@ -136,7 +136,7 @@
136
136
  border-radius: calc(
137
137
  var(--newtone-segmented-control-radius) + var(--newtone-segmented-control-padding)
138
138
  );
139
- background: var(--newtone-segmented-control-track);
139
+ background: var(--newtone-segmented-control-track-fill);
140
140
  }
141
141
 
142
142
  .newtone-segmented-control-segment {
@@ -147,7 +147,7 @@
147
147
  padding-block: var(--newtone-segmented-control-segment-padding-block);
148
148
  padding-inline: var(--newtone-segmented-control-segment-padding-inline);
149
149
  border-radius: var(--newtone-segmented-control-segment-radius);
150
- color: var(--newtone-segmented-control-segment-text);
150
+ color: var(--newtone-segmented-control-segment-rest-text);
151
151
  white-space: nowrap;
152
152
  cursor: pointer;
153
153
  user-select: none;
@@ -167,12 +167,12 @@
167
167
  }
168
168
 
169
169
  .newtone-segmented-control-segment:hover {
170
- color: var(--newtone-segmented-control-segment-text-hover);
170
+ color: var(--newtone-segmented-control-segment-hover-text);
171
171
  }
172
172
 
173
173
  .newtone-segmented-control-segment:has(.newtone-segmented-control-input:checked) {
174
- background: var(--newtone-segmented-control-chosen-fill);
175
- color: var(--newtone-segmented-control-chosen-text);
174
+ background: var(--newtone-segmented-control-segment-chosen-fill);
175
+ color: var(--newtone-segmented-control-segment-chosen-text);
176
176
  cursor: default;
177
177
  }
178
178
 
@@ -191,7 +191,30 @@
191
191
  color: var(--newtone-segmented-control-badge-text);
192
192
  }
193
193
 
194
+ /* WHICH BOX A BREAKPOINT ASKS, 2026-09-29. Every width rule below is written twice with one body: under
195
+ `@media` it asks the screen, unless an ancestor carries `data-newtone-breakpoints="container"`; under
196
+ `@container newtone-breakpoints` it asks that ancestor. Declared at zero specificity in every sheet
197
+ that has such a rule, so a consumer's own `container-type` wins and it lists the name itself.
198
+ Repo blueprint section 4, *Breakpoints*. */
199
+ :where([data-newtone-breakpoints='container']) {
200
+ container: newtone-breakpoints / inline-size;
201
+ }
202
+
194
203
  @media (max-width: 48rem) {
204
+ .newtone-segmented-control:where(:not([data-newtone-breakpoints='container'] *)) {
205
+ display: flex;
206
+ inline-size: 100%;
207
+ }
208
+
209
+ .newtone-segmented-control-segment:where(:not([data-newtone-breakpoints='container'] *)) {
210
+ flex: 1 1 0;
211
+ min-inline-size: 0;
212
+ justify-content: center;
213
+ padding-inline: var(--newtone-segmented-control-segment-padding-inline-narrow);
214
+ }
215
+ }
216
+
217
+ @container newtone-breakpoints (max-width: 48rem) {
195
218
  .newtone-segmented-control {
196
219
  display: flex;
197
220
  inline-size: 100%;
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .newtone-split-bar-label {
23
- color: var(--newtone-chart-label);
23
+ color: var(--newtone-chart-label-text);
24
24
  }
25
25
 
26
26
  .newtone-split-bar-track {
@@ -28,7 +28,7 @@
28
28
  height: var(--newtone-space-8);
29
29
  overflow: hidden;
30
30
  border-radius: var(--newtone-chart-radius);
31
- background: var(--newtone-chart-mark-muted);
31
+ background: var(--newtone-chart-mark-muted-fill);
32
32
  }
33
33
 
34
34
  .newtone-split-bar-part {
@@ -37,8 +37,8 @@
37
37
  justify-content: flex-end;
38
38
  width: calc(var(--_split-bar-share) * 100%);
39
39
  padding-inline: var(--newtone-space-6);
40
- background: var(--newtone-chart-mark);
41
- color: var(--newtone-chart-on-mark);
40
+ background: var(--newtone-chart-mark-rest-fill);
41
+ color: var(--newtone-chart-mark-rest-text);
42
42
  }
43
43
 
44
44
  .newtone-split-bar[data-fill] {
@@ -63,7 +63,39 @@
63
63
  }
64
64
  }
65
65
 
66
+ /* WHICH BOX A BREAKPOINT ASKS, 2026-09-29. Every width rule below is written twice with one body: under
67
+ `@media` it asks the screen, unless an ancestor carries `data-newtone-breakpoints="container"`; under
68
+ `@container newtone-breakpoints` it asks that ancestor. Declared at zero specificity in every sheet
69
+ that has such a rule, so a consumer's own `container-type` wins and it lists the name itself.
70
+ Repo blueprint section 4, *Breakpoints*. */
71
+ :where([data-newtone-breakpoints='container']) {
72
+ container: newtone-breakpoints / inline-size;
73
+ }
74
+
66
75
  @media (max-width: 40rem) {
76
+ .newtone-split-bar:where(:not([data-newtone-breakpoints='container'] *)) {
77
+ grid-template-columns: minmax(0, 1fr);
78
+ row-gap: var(--newtone-space-1);
79
+ }
80
+
81
+ .newtone-split-bar[data-fill]:where(:not([data-newtone-breakpoints='container'] *)) {
82
+ grid-auto-rows: auto;
83
+ }
84
+
85
+ /* Tall enough for the share's own phone size (display-xl steps down to 48), so the figure is
86
+ never shrunk off the scale to fit the bar. */
87
+ .newtone-split-bar-track:where(:not([data-newtone-breakpoints='container'] *)),
88
+ .newtone-split-bar[data-fill]
89
+ .newtone-split-bar-track:where(:not([data-newtone-breakpoints='container'] *)) {
90
+ height: var(--newtone-space-16);
91
+ }
92
+
93
+ .newtone-split-bar-part:where(:not([data-newtone-breakpoints='container'] *)) {
94
+ padding-inline: var(--newtone-space-3);
95
+ }
96
+ }
97
+
98
+ @container newtone-breakpoints (max-width: 40rem) {
67
99
  .newtone-split-bar {
68
100
  grid-template-columns: minmax(0, 1fr);
69
101
  row-gap: var(--newtone-space-1);
@@ -44,13 +44,13 @@
44
44
  }
45
45
 
46
46
  .newtone-stat-card-head {
47
- color: var(--newtone-stat-card-head);
47
+ color: var(--newtone-stat-card-head-text);
48
48
  }
49
49
 
50
50
  .newtone-stat-card-figure {
51
- color: var(--newtone-stat-card-figure);
51
+ color: var(--newtone-stat-card-figure-text);
52
52
  }
53
53
 
54
54
  .newtone-stat-card-caption {
55
- color: var(--newtone-stat-card-caption);
55
+ color: var(--newtone-stat-card-caption-text);
56
56
  }
@@ -185,11 +185,34 @@
185
185
  --_weight: var(--_weight-regular);
186
186
  }
187
187
 
188
+ /* WHICH BOX A BREAKPOINT ASKS, 2026-09-29. Every width rule below is written twice with one body: under
189
+ `@media` it asks the screen, unless an ancestor carries `data-newtone-breakpoints="container"`; under
190
+ `@container newtone-breakpoints` it asks that ancestor. Declared at zero specificity in every sheet
191
+ that has such a rule, so a consumer's own `container-type` wins and it lists the name itself.
192
+ Repo blueprint section 4, *Breakpoints*. */
193
+ :where([data-newtone-breakpoints='container']) {
194
+ container: newtone-breakpoints / inline-size;
195
+ }
196
+
188
197
  /* THE PHONE STEP-DOWN, 2026-09-25. Below `stack` (40rem, written as the library's other media
189
198
  queries are, because a custom property cannot be read inside one) the three largest scales take a
190
199
  smaller step's size, never a curve: 128 -> 64, 96 -> 48, 64 -> 48. Their leading stays `none`.
191
200
  contracts/typography.md section 7.1, *No clamp()*. Still 0,1,0, after the blocks it narrows. */
192
201
  @media (max-width: 40rem) {
202
+ .newtone-text:where([data-scale='display-3xl']):where(
203
+ :not([data-newtone-breakpoints='container'] *)
204
+ ) {
205
+ font-size: var(--newtone-text-scale-display-xl-size);
206
+ }
207
+
208
+ .newtone-text:where([data-scale='display-2xl'], [data-scale='display-xl']):where(
209
+ :not([data-newtone-breakpoints='container'] *)
210
+ ) {
211
+ font-size: var(--newtone-text-scale-display-lg-size);
212
+ }
213
+ }
214
+
215
+ @container newtone-breakpoints (max-width: 40rem) {
193
216
  .newtone-text:where([data-scale='display-3xl']) {
194
217
  font-size: var(--newtone-text-scale-display-xl-size);
195
218
  }
@@ -204,7 +227,10 @@
204
227
  font-variation-settings: var(--newtone-text-scale-body-variation);
205
228
  font-feature-settings: var(--newtone-text-scale-body-feature);
206
229
  font-size: var(--newtone-text-scale-body-size);
207
- line-height: var(--newtone-text-scale-body-line-height);
230
+ /* `leading`, not `line-height`: this scale takes a typography.step, whose leading is a length,
231
+ and the token layer names the leaf for the unit it holds so the four targets that carry no
232
+ unit can tell. contracts/typography.md 7.1 and 7.2.2. */
233
+ line-height: var(--newtone-text-scale-body-leading);
208
234
  letter-spacing: var(--newtone-text-scale-body-tracking);
209
235
  --_weight: var(--_weight-regular);
210
236
  }
@@ -214,7 +240,8 @@
214
240
  font-variation-settings: var(--newtone-text-scale-body-sm-variation);
215
241
  font-feature-settings: var(--newtone-text-scale-body-sm-feature);
216
242
  font-size: var(--newtone-text-scale-body-sm-size);
217
- line-height: var(--newtone-text-scale-body-sm-line-height);
243
+ /* A step's leading, as above. */
244
+ line-height: var(--newtone-text-scale-body-sm-leading);
218
245
  letter-spacing: var(--newtone-text-scale-body-sm-tracking);
219
246
  --_weight: var(--_weight-regular);
220
247
  }
@@ -54,7 +54,12 @@
54
54
  block-size: var(--newtone-space-3);
55
55
  }
56
56
 
57
- .newtone-tooltip:is(:hover, :focus-within):not([data-dismissed]) .newtone-tooltip-bubble {
57
+ /* SHOWN ON `data-open` OR A VISIBLE FOCUS, FROM 0.13.0 -- ~~`:is(:hover, :focus-within)`~~. The pointer's
58
+ rule is time and lives in tooltip.tsx: shown on entry, lingering after the trigger for as long as it
59
+ was hovered, held while on the bubble. `:focus-within` went because a mouse click focuses the
60
+ trigger and pinned the bubble by accident; `:focus-visible` is the keyboard's alone.
61
+ components/tooltip.md. */
62
+ .newtone-tooltip:is([data-open], :has(:focus-visible)):not([data-dismissed]) .newtone-tooltip-bubble {
58
63
  visibility: visible;
59
64
  pointer-events: auto;
60
65
  }