@newtone-dev/ui-react-web 0.40.0 → 0.40.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.
Files changed (2) hide show
  1. package/dist/text/text.css +15 -2
  2. package/package.json +1 -1
@@ -297,8 +297,21 @@
297
297
 
298
298
  /* --- the font override -------------------------------------------------------------------
299
299
  The family and its four numbers, and deliberately NOT `--_weight`: changing which family a
300
- passage is set in does not change which weight it wanted. `body` needs no block -- it is
301
- what the base already publishes. */
300
+ passage is set in does not change which weight it wanted. `body` has a block like the others:
301
+ the base publishes it, but every scale block comes after the base and sets its own family, so
302
+ without one `font="body"` on a display or heading scale rendered in the display face (found
303
+ 2026-10-15, components/text.md). */
304
+
305
+ .newtone-text:where([data-font='body']) {
306
+ font-family: var(--newtone-text-body-family);
307
+ font-variation-settings: var(--newtone-text-body-variation);
308
+ font-style: var(--newtone-text-body-style);
309
+ font-feature-settings: var(--newtone-text-body-feature);
310
+ --_weight-regular: var(--newtone-text-body-weight-regular);
311
+ --_weight-medium: var(--newtone-text-body-weight-medium);
312
+ --_weight-semibold: var(--newtone-text-body-weight-semibold);
313
+ --_weight-bold: var(--newtone-text-body-weight-bold);
314
+ }
302
315
 
303
316
  .newtone-text:where([data-font='display']) {
304
317
  font-family: var(--newtone-text-display-family);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newtone-dev/ui-react-web",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",