@warmio/design 4.1.0 → 4.3.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.
@@ -1,8 +1,8 @@
1
- Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
1
+ Copyright 2025 The Google Sans Code Project Authors (github.com/googlefonts/googlesans-code)
2
2
 
3
3
  This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
4
  This license is copied below, and is also available with a FAQ at:
5
- http://scripts.sil.org/OFL
5
+ https://openfontlicense.org
6
6
 
7
7
 
8
8
  -----------------------------------------------------------
@@ -18,7 +18,7 @@ with others.
18
18
 
19
19
  The OFL allows the licensed fonts to be used, studied, modified and
20
20
  redistributed freely as long as they are not sold by themselves. The
21
- fonts, including any derivative works, can be bundled, embedded,
21
+ fonts, including any derivative works, can be bundled, embedded,
22
22
  redistributed and/or sold with any software provided that any reserved
23
23
  names are not used by derivative works. The fonts and derivatives,
24
24
  however, cannot be released under any other type of license. The
@@ -90,4 +90,4 @@ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
90
  INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
91
  DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
92
  FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
- OTHER DEALINGS IN THE FONT SOFTWARE.
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
package/README.md CHANGED
@@ -17,7 +17,7 @@ import { Logo, WarmLogoIcon } from '@warmio/design/logo';
17
17
  The product UI uses Inter, self-hosted from `fonts/` as wght variable latin and
18
18
  latin-ext subsets (normal and italic, Inter 4.001 from `@fontsource-variable/inter`
19
19
  5.3.0, OFL in `LICENSES/inter-OFL-1.1.txt`). No font loads from Google.
20
- Numbers and money use the `--font-numeric` Inter role with tabular figures; JetBrains Mono remains for code, keys, and identifiers. The interface uses regular (400) and medium (500) weights.
20
+ Numbers and money use the `--font-numeric` Inter role with tabular figures; Google Sans Code is used for code, keys, and identifiers. The interface uses regular (400) and medium (500) weights.
21
21
 
22
22
  `--accent-solid` is the one chromatic accent for links, badges, and highlights.
23
23
 
package/fonts.css CHANGED
@@ -53,11 +53,11 @@
53
53
  }
54
54
 
55
55
  @font-face {
56
- font-family: 'JetBrains Mono';
56
+ font-family: 'Google Sans Code';
57
57
  font-style: normal;
58
58
  font-display: swap;
59
- font-weight: 100 800;
60
- src: url('./fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
59
+ font-weight: 300 800;
60
+ src: url('./fonts/google-sans-code-latin-ext-wght-normal.woff2') format('woff2-variations');
61
61
  unicode-range:
62
62
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
63
63
  U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
@@ -65,22 +65,22 @@
65
65
  }
66
66
 
67
67
  @font-face {
68
- font-family: 'JetBrains Mono';
68
+ font-family: 'Google Sans Code';
69
69
  font-style: normal;
70
70
  font-display: swap;
71
- font-weight: 100 800;
72
- src: url('./fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
71
+ font-weight: 300 800;
72
+ src: url('./fonts/google-sans-code-latin-wght-normal.woff2') format('woff2-variations');
73
73
  unicode-range:
74
74
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
75
75
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
76
76
  }
77
77
 
78
78
  @font-face {
79
- font-family: 'JetBrains Mono';
79
+ font-family: 'Google Sans Code';
80
80
  font-style: italic;
81
81
  font-display: swap;
82
- font-weight: 100 800;
83
- src: url('./fonts/jetbrains-mono-latin-ext-wght-italic.woff2') format('woff2-variations');
82
+ font-weight: 300 800;
83
+ src: url('./fonts/google-sans-code-latin-ext-wght-italic.woff2') format('woff2-variations');
84
84
  unicode-range:
85
85
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
86
86
  U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
@@ -88,18 +88,18 @@
88
88
  }
89
89
 
90
90
  @font-face {
91
- font-family: 'JetBrains Mono';
91
+ font-family: 'Google Sans Code';
92
92
  font-style: italic;
93
93
  font-display: swap;
94
- font-weight: 100 800;
95
- src: url('./fonts/jetbrains-mono-latin-wght-italic.woff2') format('woff2-variations');
94
+ font-weight: 300 800;
95
+ src: url('./fonts/google-sans-code-latin-wght-italic.woff2') format('woff2-variations');
96
96
  unicode-range:
97
97
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
98
98
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
99
99
  }
100
100
 
101
101
  :root {
102
- --font-mono: 'JetBrains Mono', ui-monospace, monospace;
102
+ --font-mono: 'Google Sans Code', ui-monospace, monospace;
103
103
  --font-sans: 'Inter', sans-serif;
104
104
  --font-serif: 'Merriweather', Georgia, serif;
105
105
  --font-numeric: var(--font-mono);
package/interfaces.css CHANGED
@@ -1,7 +1,6 @@
1
1
  /* Shared interfaces.dev baseline — https://interfaces.dev/cheat-sheet */
2
2
 
3
3
  :root {
4
- /* Concentric radius: nested surfaces subtract padding from the outer radius. */
5
4
  --interface-prose-measure: 65ch;
6
5
  }
7
6
 
@@ -31,10 +30,6 @@ html.theme-switching *::after {
31
30
  text-decoration-skip-ink: auto;
32
31
  }
33
32
 
34
- [data-slot='card'] {
35
- --interface-outer-radius: var(--radius-xl);
36
- }
37
-
38
33
  [data-slot='card']
39
34
  :is(
40
35
  [data-slot='input'],
@@ -42,8 +37,7 @@ html.theme-switching *::after {
42
37
  [data-slot='select-trigger'],
43
38
  [data-slot='input-group']
44
39
  ) {
45
- --interface-inset: var(--spacing-lg);
46
- border-radius: max(0px, calc(var(--interface-outer-radius) - var(--interface-inset)));
40
+ border-radius: 0;
47
41
  }
48
42
  }
49
43
 
@@ -52,13 +46,6 @@ html.theme-switching *::after {
52
46
  max-width: var(--interface-prose-measure);
53
47
  }
54
48
 
55
- .interface-concentric {
56
- border-radius: max(
57
- 0px,
58
- calc(var(--interface-outer-radius, var(--radius-xl)) - var(--interface-inset, 0px))
59
- );
60
- }
61
-
62
49
  .interface-icon-crossfade {
63
50
  position: relative;
64
51
  display: inline-flex;
package/logo.css CHANGED
@@ -2,10 +2,10 @@
2
2
  [data-warm-logo] {
3
3
  display: inline-flex;
4
4
  align-items: center;
5
- gap: var(--logo-gap);
5
+ gap: var(--spacing-sm);
6
6
  }
7
7
  [data-warm-logo] > span {
8
- font-size: var(--logo-font-size);
8
+ font-size: var(--type-size-body);
9
9
  font-weight: 500;
10
10
  letter-spacing: var(--logo-letter-spacing);
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmio/design",
3
- "version": "4.1.0",
3
+ "version": "4.3.0",
4
4
  "description": "Warm's public design contract: CSS tokens and the Logo primitive.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/theme.css CHANGED
@@ -11,7 +11,9 @@
11
11
  --type-size-title-phone: 1.375rem;
12
12
  --type-size-stat: 1.25rem;
13
13
  --type-size-display-large: 2rem;
14
- --type-size-display-jumbo: 2.5rem;
14
+ --type-size-display-hero: 3.25rem;
15
+ --type-size-display-hero-phone: 2.5rem;
16
+ --type-size-display-label-phone: 1.0625rem;
15
17
  --type-leading-label: 1.125rem;
16
18
  --type-leading-body: 1rem;
17
19
  --type-leading-body-emphasis: 1.25rem;
@@ -25,11 +27,14 @@
25
27
  --type-leading-stat: 1.75rem;
26
28
  --type-leading-display-large: 2.375rem;
27
29
  --type-leading-display-large-tight: 2.25rem;
28
- --type-leading-display-jumbo: 2.75rem;
30
+ --type-leading-display-hero: 3.5rem;
31
+ --type-leading-display-hero-phone: 2.75rem;
32
+ --type-leading-display-label-phone: 1.25rem;
29
33
  --type-tracking-body: 0.02em;
30
34
  --type-tracking-title: -0.01em;
31
35
  --type-tracking-heading: -0.03em;
32
36
  --type-tracking-display: -0.02em;
37
+ --type-tracking-display-hero: -0.035em;
33
38
  --type-tracking-caps: 0.05em;
34
39
  --control-type-size: var(--type-size-body);
35
40
  --control-type-leading: var(--type-leading-body);
@@ -46,7 +51,8 @@
46
51
  --radius-md: 0.5rem;
47
52
  --radius-xl: 0.75rem;
48
53
  --radius-overlay: 0.625rem;
49
- --radius-control: var(--radius-full);
54
+ --radius-control: var(--radius-md);
55
+ --radius-control-inset: var(--radius-sm);
50
56
  --radius-full: 9999px;
51
57
  --radius: var(--radius-md);
52
58
 
@@ -59,9 +65,9 @@
59
65
  --motion-distance: 0.25rem;
60
66
  --motion-easing: cubic-bezier(0.23, 1, 0.32, 1);
61
67
 
62
- /* ─── Controls: compact 28, default 36, jumbo 48 ─── */
63
- --control-height-sm: 1.75rem;
64
- --control-height: 2.25rem;
68
+ /* ─── Controls: default 28 (44 on phones), large 36, cta 48 ─── */
69
+ --control-height: 1.75rem;
70
+ --control-height-lg: 2.25rem;
65
71
  --control-height-cta: 3rem;
66
72
  --row-height-menu: 2rem;
67
73
  --row-height-list: 2.25rem;
@@ -86,12 +92,10 @@
86
92
  --logo-size-default: 1.75rem;
87
93
  --logo-size-feature: 2rem;
88
94
  --logo-size-hero: 3.5rem;
89
- --logo-font-size: var(--type-size-body);
90
- --logo-letter-spacing: 0.025em;
95
+ --logo-letter-spacing: var(--type-tracking-body);
91
96
  --logo-rest-filter: none;
92
97
  --logo-rest-opacity: 1;
93
98
  --logo-rest-backing: none;
94
- --logo-gap: var(--spacing-sm);
95
99
  --logo-frame-radius: var(--radius-sm);
96
100
 
97
101
  /* ─── Layout ─── */
@@ -111,6 +115,18 @@
111
115
  --chart-area-gradient-mid-offset: 55%;
112
116
  }
113
117
 
118
+ @media (pointer: coarse), (width < 48rem) {
119
+ :root {
120
+ --field-type-size: var(--type-size-body-large);
121
+ }
122
+ }
123
+
124
+ @media (width < 48rem) {
125
+ :root {
126
+ --control-height: 2.75rem;
127
+ }
128
+ }
129
+
114
130
  @media (prefers-reduced-motion: reduce) {
115
131
  :root {
116
132
  --motion-duration-fast: 0ms;
@@ -136,7 +152,7 @@
136
152
  --accent-tint: oklch(95% 0.0084 295);
137
153
  --negative-tint: oklch(94.7% 0.0095 32);
138
154
  --warning-tint: oklch(94.8% 0.009 75);
139
- --scrim: oklch(12% 0.025 295 / 60%);
155
+ --scrim: oklch(12% 0.025 295 / 10%);
140
156
  --shadow-color: oklch(12% 0.025 295 / 10%);
141
157
  --chart-mid: oklch(77.5% 0.0378 295);
142
158
  --hue-sky: oklch(50% 0.08 232);
@@ -169,7 +185,7 @@
169
185
  --accent-tint: oklch(25.85% 0.0124 295);
170
186
  --negative-tint: oklch(25.85% 0.007695 351.2865);
171
187
  --warning-tint: oklch(26.05% 0.005194 33.0617);
172
- --scrim: oklch(12% 0.025 295 / 60%);
188
+ --scrim: oklch(12% 0.025 295 / 10%);
173
189
  --shadow-color: oklch(12% 0.025 295 / 50%);
174
190
  --chart-mid: oklch(44.575% 0.0348 295);
175
191
  --hue-sky: oklch(78% 0.08 232);
@@ -193,6 +209,14 @@
193
209
  --onboarding-setup-field-label-leading: var(--type-leading-body-emphasis);
194
210
  }
195
211
 
212
+ @media (prefers-reduced-transparency: reduce) {
213
+ :root:where(*),
214
+ .light,
215
+ .dark {
216
+ --scrim: oklch(12% 0.025 295 / 60%);
217
+ }
218
+ }
219
+
196
220
  @theme inline {
197
221
  --color-*: initial;
198
222
  --color-background: var(--background);
@@ -237,6 +261,7 @@
237
261
  --radius: var(--radius-md);
238
262
  --radius-md: var(--radius-md);
239
263
  --radius-control: var(--radius-control);
264
+ --radius-control-inset: var(--radius-control-inset);
240
265
  --radius-xl: var(--radius-xl);
241
266
  --radius-full: var(--radius-full);
242
267