@fairfox/polly 0.27.4 → 0.28.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.
@@ -66,6 +66,15 @@
66
66
  --polly-radius-lg: 12px;
67
67
  --polly-radius-full: 9999px;
68
68
 
69
+ /* Measures — caps on inline-size for readable line length and comfortable
70
+ * page widths. `prose` tracks WCAG 1.4.8's 80-char guidance for body text;
71
+ * `page` is a sensible application shell width. Layout reads these via its
72
+ * `maxInlineSize` prop so consumers can centre content without ad hoc
73
+ * container divs or magic numbers in app CSS. Override to retheme.
74
+ */
75
+ --polly-measure-prose: 68ch;
76
+ --polly-measure-page: 1040px;
77
+
69
78
  /* Control heights — used by Button, Input, Select. */
70
79
  --polly-control-height-sm: 1.75rem;
71
80
  --polly-control-height-md: 2.25rem;
@@ -86,10 +95,13 @@
86
95
  --polly-text-md: 1em;
87
96
  --polly-text-lg: 1.125em;
88
97
  --polly-text-xl: 1.375em;
98
+ --polly-text-2xl: 1.75em;
99
+ --polly-text-3xl: 2.25em;
89
100
  --polly-weight-normal: 400;
90
101
  --polly-weight-medium: 500;
91
102
  --polly-weight-bold: 700;
92
103
  --polly-line-height-tight: 1.25;
104
+ --polly-line-height-heading: 1.15;
93
105
  --polly-line-height-base: 1.5;
94
106
 
95
107
  /* Z-index scale */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fairfox/polly",
3
- "version": "0.27.4",
3
+ "version": "0.28.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Multi-execution-context framework with reactive state and cross-context messaging for Chrome extensions, PWAs, and worker-based applications",