strata-react 1.3.14 → 1.3.15

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/README.md CHANGED
@@ -70,7 +70,7 @@ automatic detection.
70
70
 
71
71
  `theme.css` supplies what Strata names but does not choose: `--success`, `--success-subtle`,
72
72
  `--warning…`, `--danger…`, `--info…` (pale tint + dark ink of one hue, ink at least 6:1),
73
- `--font-sans` / `--font-display` in an `@theme` block, and optionally `--title-weight`,
73
+ `--font-sans` / `--font-display` in an `@theme` block (Strata's default `--font-sans` is Geist Variable, bundled; name your own to replace it), and optionally `--title-weight`,
74
74
  `--title-stretch`, `--title-tracking`. See `.storybook/theme.css` for a complete example (the
75
75
  kiln-room fixture).
76
76
 
@@ -301,8 +301,10 @@ many shots were pixel-identical and how many matched within tolerance (the five
301
301
  failing are listed as `within`).
302
302
 
303
303
  **Fonts.** Every face must be one the page loads: bundle it with `@fontsource` (or your own
304
- `@font-face`) and name it first in the theme's `--font-*`. Strata's defaults fall through to
305
- `ui-sans-serif`, which is Cantarell on one Linux, DejaVu Sans on another and San Francisco on a
304
+ `@font-face`) and name it first in the theme's `--font-*`. Strata's own default sans is Geist Variable, bundled with the package
305
+ (`strata.css` imports it; the app's build must resolve a CSS `url()` to a `.woff2`, which Vite does and the bare Tailwind CLI does not),
306
+ so an app that names none still loads a face. Anything that falls through to
307
+ `ui-sans-serif` (the mono default, a face you name that fails to load) is Cantarell on one Linux, DejaVu Sans on another and San Francisco on a
306
308
  Mac, and a glyph missing from a web font (an arrow, `⌘`) falls back the same way; no threshold
307
309
  absorbs that. The runner asks Chromium which face drew each element's text and fails the shot
308
310
  naming the face and an example (`"DejaVu Sans" in <kbd> "⌘"`). `systemFonts: "warn"` reports
package/UPGRADING.md CHANGED
@@ -11,6 +11,9 @@ time. While the version is 0.x, any release may break.
11
11
 
12
12
  Every PR that changes what an app sees adds a line here (see `CLAUDE.md`, "Changelog").
13
13
 
14
+ ## 2026-11-25
15
+ - The default `--font-sans` is **Geist Variable**, bundled (Fontsource, a dependency of strata-react), where it was the system sans. An app that names its own face in `--font-sans` is unchanged; an app that never did gets a new look and moved baselines (re-record them: the face is now the same on every machine, so the screenshots no longer depend on its fonts). Mono is still a system face. `strata.css` now `@import`s `@fontsource-variable/geist`, so **the app's build must resolve a CSS `url()` to a `.woff2`**: Vite does this with nothing added (the files are emitted with hashed names under the app's base); a build that runs the Tailwind CLI and esbuild on its own must copy `node_modules/@fontsource-variable/geist/files/*.woff2` next to the compiled CSS (the rules say `./files/…`) or name its own face.
16
+
14
17
  ## 2026-11-24
15
18
  - `RateChoice` (the speed in `MediaPlayer`, `VideoClock`, `CompareVideo`, `CompareVideoGrid`) is React Aria's `Select`, not a native select (#324): a test that did `user.selectOptions(getByRole("combobox", { name: "Playback speed" }), "1.5×")` now clicks `getByRole("button", { name: /Playback speed/ })` and then `findByRole("option", { name: "1.5×" })`. Visual baselines with a player move: the control is narrower, so a phone-width player's controls can fit on one row.
16
19
  - `createApi`'s `post`/`put`/`patch` send a `Blob`, bytes, `FormData`, `URLSearchParams` or a stream as it is (a Blob with its own type as Content-Type); before, any body was `JSON.stringify`ed, so such a body arrived as `{}`. `createTypedApi` takes `body` (not `json`) on an operation whose request body has only a non-JSON media type, so a workaround that went round the typed client through `fetchJson` can be deleted.
package/dist/strata.css CHANGED
@@ -12,6 +12,13 @@
12
12
 
13
13
  The research behind every value is in jburnhams/ux-research, ui-library/tokens.md. */
14
14
 
15
+ /* The default face, bundled so no screen is drawn in whatever the machine has (Jonathan, 2026-11-25):
16
+ Geist Variable from Fontsource, a dependency of this package, so an app installs nothing. The
17
+ @font-face rules carry unicode-range, so a browser downloads only the subset a page uses (about
18
+ 32 KB for Latin). A product that names its own face in `--font-sans` still wins; this only
19
+ replaces the system fallback. Vite resolves the files, as it does for any imported CSS. */
20
+ @import "@fontsource-variable/geist";
21
+
15
22
  /* strata:strict-begin */
16
23
  /* Clear Tailwind's stock namespaces right after Tailwind's own theme loads. With these gone,
17
24
  `bg-indigo-500`, `text-sm`, `rounded-xl` and `shadow-lg` do not compile at all: the only colours,
@@ -52,9 +59,10 @@
52
59
  }
53
60
 
54
61
  @theme {
55
- /* System faces until the product names its own (a later @theme block wins). One family on an
56
- Operate surface; --font-display is for page titles only. */
57
- --font-sans: ui-sans-serif, system-ui, sans-serif;
62
+ /* Geist Variable until the product names its own (a later @theme block wins), then the system
63
+ faces only for the instant before it loads. One family on an Operate surface; --font-display
64
+ is for page titles only. Mono stays a system face: Strata draws little code. */
65
+ --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
58
66
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
59
67
  --font-display: var(--font-sans);
60
68
 
@@ -12,6 +12,13 @@
12
12
 
13
13
  The research behind every value is in jburnhams/ux-research, ui-library/tokens.md. */
14
14
 
15
+ /* The default face, bundled so no screen is drawn in whatever the machine has (Jonathan, 2026-11-25):
16
+ Geist Variable from Fontsource, a dependency of this package, so an app installs nothing. The
17
+ @font-face rules carry unicode-range, so a browser downloads only the subset a page uses (about
18
+ 32 KB for Latin). A product that names its own face in `--font-sans` still wins; this only
19
+ replaces the system fallback. Vite resolves the files, as it does for any imported CSS. */
20
+ @import "@fontsource-variable/geist";
21
+
15
22
  /* MIGRATION MODE (strata.migrate.css): Tailwind's stock colours, sizes, radii, shadows and fonts are NOT cleared here, so an
16
23
  app's own `bg-stone-100` and `text-sm` keep compiling beside Strata's roles. Switch the import to strata.css once
17
24
  `strata-stock-classes` finds nothing left. */
@@ -42,9 +49,10 @@
42
49
  }
43
50
 
44
51
  @theme {
45
- /* System faces until the product names its own (a later @theme block wins). One family on an
46
- Operate surface; --font-display is for page titles only. */
47
- --font-sans: ui-sans-serif, system-ui, sans-serif;
52
+ /* Geist Variable until the product names its own (a later @theme block wins), then the system
53
+ faces only for the instant before it loads. One family on an Operate surface; --font-display
54
+ is for page titles only. Mono stays a system face: Strata draws little code. */
55
+ --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
48
56
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
49
57
  --font-display: var(--font-sans);
50
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strata-react",
3
- "version": "1.3.14",
3
+ "version": "1.3.15",
4
4
  "description": "React + Tailwind v4 components that ship structure, behaviour, states and a token contract, and no look: each product brings a theme generated from its own subject.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -132,6 +132,7 @@
132
132
  }
133
133
  },
134
134
  "dependencies": {
135
+ "@fontsource-variable/geist": "^5.3.0",
135
136
  "@tanstack/react-table": "^9.3.1",
136
137
  "class-variance-authority": "^0.7.1",
137
138
  "clsx": "^2.1.1",