@fvc/typography 4.0.0-rc.0 → 4.0.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 (2) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # @fvc/typography
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 93ce5d8: The `font` prop selects a typographic role instead of a typeface.
8
+
9
+ `font="body"` resolves to `--fvc-font-body` and `font="heading"` to
10
+ `--fvc-font-heading`, so text follows whatever typeface the application has
11
+ put behind those tokens.
12
+
13
+ Breaking: `font="Roboto"` and `font="Montserrat"` are gone. A typeface name
14
+ in a design system's public API pins the component to one brand and makes
15
+ the global tokens unable to retype it — the prop used to write the literal
16
+ family name straight into the element's style, so overriding the tokens left
17
+ every explicit `font` call site behind.
18
+
19
+ Migration is mechanical and the compiler finds every call site:
20
+ `font="Roboto"` becomes `font="body"`, `font="Montserrat"` becomes
21
+ `font="heading"`. Rendering is unchanged, since the tokens still default to
22
+ those two families.
23
+
24
+ ### Minor Changes
25
+
26
+ - 6ac1e6a: Font families now read from the global typography tokens.
27
+
28
+ Every component CSS API that used to default to a hard-coded typeface now
29
+ defaults to `var(--fvc-font-body, sans-serif)` or
30
+ `var(--fvc-font-heading, sans-serif)`, e.g.
31
+ `--card-font-family: var(--fvc-font-heading, sans-serif)`. Overriding a
32
+ single component's own property works exactly as before; overriding the two
33
+ global tokens now retypes the whole design system at once, without patching
34
+ any package.
35
+
36
+ `@fvc/button` gains `--button-font-family`, which replaces a SCSS variable
37
+ that consumers could not override at runtime.
38
+
39
+ With `@fvc/provider` in place — which every application is expected to use —
40
+ rendering is unchanged.
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [96d244b]
45
+ - Updated dependencies [bfec04d]
46
+ - Updated dependencies [d4b6f8c]
47
+ - Updated dependencies [b5028f0]
48
+ - @fvc/utils@4.0.0
49
+ - @fvc/icons@1.1.7
50
+
3
51
  ## 4.0.0-rc.0
4
52
 
5
53
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fvc/typography",
3
- "version": "4.0.0-rc.0",
3
+ "version": "4.0.0",
4
4
  "main": "./dist/lib/index.js",
5
5
  "types": "./dist/lib/typography/src/index.d.ts",
6
6
  "files": [
@@ -41,8 +41,8 @@
41
41
  "antd"
42
42
  ],
43
43
  "peerDependencies": {
44
- "@fvc/icons": "^1.1.7-rc.0",
45
- "@fvc/utils": "^4.0.0-rc.0",
44
+ "@fvc/icons": "^1.1.7",
45
+ "@fvc/utils": "^4.0.0",
46
46
  "react": "^18.0.0",
47
47
  "antd": "^5.0.0"
48
48
  }