@warmio/design 1.5.2 → 1.7.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 (58) hide show
  1. package/LICENSES/{geist-OFL-1.1.txt → jetbrains-mono-OFL-1.1.txt} +1 -1
  2. package/LICENSES/{geist-mono-OFL-1.1.txt → merriweather-OFL-1.1.txt} +1 -1
  3. package/README.md +3 -4
  4. package/components.css +9 -3
  5. package/dist/button.d.ts +1 -1
  6. package/dist/button.js +18 -8
  7. package/fonts/jetbrains-mono-latin-ext-wght-italic.woff2 +0 -0
  8. package/fonts/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
  9. package/fonts/jetbrains-mono-latin-wght-italic.woff2 +0 -0
  10. package/fonts/jetbrains-mono-latin-wght-normal.woff2 +0 -0
  11. package/fonts/merriweather-latin-400-italic.woff2 +0 -0
  12. package/fonts/merriweather-latin-400-normal.woff2 +0 -0
  13. package/fonts/merriweather-latin-700-normal.woff2 +0 -0
  14. package/fonts/merriweather-latin-ext-400-italic.woff2 +0 -0
  15. package/fonts/merriweather-latin-ext-400-normal.woff2 +0 -0
  16. package/fonts/merriweather-latin-ext-700-normal.woff2 +0 -0
  17. package/fonts.css +52 -324
  18. package/package.json +1 -2
  19. package/theme.css +14 -5
  20. package/LICENSES/inter-OFL-1.1.txt +0 -93
  21. package/assets/subtle-dots-dark.svg +0 -8
  22. package/assets/subtle-dots.png +0 -0
  23. package/fonts/geist-cyrillic-ext-wght-italic.woff2 +0 -0
  24. package/fonts/geist-cyrillic-ext-wght-normal.woff2 +0 -0
  25. package/fonts/geist-cyrillic-wght-italic.woff2 +0 -0
  26. package/fonts/geist-cyrillic-wght-normal.woff2 +0 -0
  27. package/fonts/geist-latin-ext-wght-italic.woff2 +0 -0
  28. package/fonts/geist-latin-ext-wght-normal.woff2 +0 -0
  29. package/fonts/geist-latin-wght-italic.woff2 +0 -0
  30. package/fonts/geist-latin-wght-normal.woff2 +0 -0
  31. package/fonts/geist-mono-cyrillic-ext-wght-italic.woff2 +0 -0
  32. package/fonts/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
  33. package/fonts/geist-mono-cyrillic-wght-italic.woff2 +0 -0
  34. package/fonts/geist-mono-cyrillic-wght-normal.woff2 +0 -0
  35. package/fonts/geist-mono-latin-ext-wght-italic.woff2 +0 -0
  36. package/fonts/geist-mono-latin-ext-wght-normal.woff2 +0 -0
  37. package/fonts/geist-mono-latin-wght-italic.woff2 +0 -0
  38. package/fonts/geist-mono-latin-wght-normal.woff2 +0 -0
  39. package/fonts/geist-mono-symbols2-wght-italic.woff2 +0 -0
  40. package/fonts/geist-mono-symbols2-wght-normal.woff2 +0 -0
  41. package/fonts/geist-mono-vietnamese-wght-italic.woff2 +0 -0
  42. package/fonts/geist-mono-vietnamese-wght-normal.woff2 +0 -0
  43. package/fonts/geist-vietnamese-wght-italic.woff2 +0 -0
  44. package/fonts/geist-vietnamese-wght-normal.woff2 +0 -0
  45. package/fonts/inter-cyrillic-ext-wght-italic.woff2 +0 -0
  46. package/fonts/inter-cyrillic-ext-wght-normal.woff2 +0 -0
  47. package/fonts/inter-cyrillic-wght-italic.woff2 +0 -0
  48. package/fonts/inter-cyrillic-wght-normal.woff2 +0 -0
  49. package/fonts/inter-greek-ext-wght-italic.woff2 +0 -0
  50. package/fonts/inter-greek-ext-wght-normal.woff2 +0 -0
  51. package/fonts/inter-greek-wght-italic.woff2 +0 -0
  52. package/fonts/inter-greek-wght-normal.woff2 +0 -0
  53. package/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
  54. package/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
  55. package/fonts/inter-latin-wght-italic.woff2 +0 -0
  56. package/fonts/inter-latin-wght-normal.woff2 +0 -0
  57. package/fonts/inter-vietnamese-wght-italic.woff2 +0 -0
  58. package/fonts/inter-vietnamese-wght-normal.woff2 +0 -0
@@ -1,4 +1,4 @@
1
- Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font) Geist-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font)
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)
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:
@@ -1,4 +1,4 @@
1
- Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git) GeistMono-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
1
+ Copyright 2024 The Merriweather Project Authors (https://github.com/EbenSorkin/Merriweather4) with Reserved Font Name "Merriweather". Merriweather-Italic[opsz,wdth,wght].ttf: Copyright 2024 The Merriweather Project Authors (https://github.com/EbenSorkin/Merriweather4) with Reserved Font Name "Merriweather".
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:
package/README.md CHANGED
@@ -14,14 +14,13 @@ import { Button, ButtonLink } from '@warmio/design/button';
14
14
  import { Logo, WarmLogoIcon } from '@warmio/design/logo';
15
15
  ```
16
16
 
17
- The default product typefaces are Geist and Geist Mono. The `font-editorial`
18
- utility uses Inter and should be reserved for deliberate editorial accents.
17
+ The product typefaces are JetBrains Mono for default UI and Merriweather for
18
+ headings (`h1`–`h6`). Do not add a third family.
19
19
 
20
20
  `--accent-solid` / `--accent-solid-text` are the chromatic accent for links,
21
21
  badges, and highlights. They derive from `--brand-accent-solid` in `themes.css`.
22
22
 
23
- Package ships `components.css` (token-only styles for the primitives), `assets/`,
24
- and `dist/` (ESM + .d.ts). `dependencies` and `devDependencies` are empty.
23
+ Package ships `components.css` (token-only styles for the primitives) and `dist/` (ESM + .d.ts). `dependencies` and `devDependencies` are empty.
25
24
  `peerDependencies.react` is `^19.0.0`. No root JS export.
26
25
 
27
26
  ## Releases
package/components.css CHANGED
@@ -2,7 +2,7 @@
2
2
  * Rebuilt from exact UIWarm primitive/button.variants + presentation maps + variant overrides + button-edge recipes.
3
3
  * Uses only design tokens + data attrs. No literals where tokens exist.
4
4
  * Motion via --motion-* (aliased); reduced-motion zeros non-essentials.
5
- * All 16 presentations, 6 variants, 3 sizes + full + states produce matching computed geometry/styles.
5
+ * All 16 presentations, 6 variants, 4 sizes + full + states produce matching computed geometry/styles.
6
6
  */
7
7
 
8
8
  [data-warm-button] {
@@ -188,6 +188,12 @@ button[data-warm-button][data-variant='apple'] {
188
188
  }
189
189
 
190
190
  /* Sizes (public only; presentation overrides suppressed by explicit size via data attr, matches old resolveButton) */
191
+ [data-warm-button][data-size='compact'] {
192
+ height: var(--button-size-md);
193
+ padding-left: var(--button-padding-x-md);
194
+ padding-right: var(--button-padding-x-md);
195
+ gap: var(--button-gap);
196
+ }
191
197
  [data-warm-button][data-size='default'] {
192
198
  height: var(--button-height-default);
193
199
  padding-left: var(--button-padding-x);
@@ -351,8 +357,8 @@ button[data-warm-button][data-variant='apple'] {
351
357
  }
352
358
  [data-warm-button][data-presentation='compact']:not([data-explicit-size]) {
353
359
  height: var(--button-size-md);
354
- padding-left: var(--button-padding-x-sm);
355
- padding-right: var(--button-padding-x-sm);
360
+ padding-left: var(--button-padding-x-md);
361
+ padding-right: var(--button-padding-x-md);
356
362
  }
357
363
  /* 'default' and 'controlPeer' both resolve to private size 'default' with no
358
364
  own `buttonPresentationClasses` entry, so origin's `resolveLegacyButton`
package/dist/button.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export type ButtonPresentation = 'assistantIcon' | 'assistantRoundIcon' | 'default' | 'composerIcon' | 'compact' | 'controlPeer' | 'editPill' | 'hero' | 'menuOption' | 'promptCategory' | 'promptOption' | 'sidebarIcon' | 'tableHeader' | 'threadMore' | 'threadNew' | 'touch';
3
3
  export type ButtonVariant = 'default' | 'outline' | 'ghost' | 'destructive' | 'apple' | 'arrow';
4
- export type ButtonSize = 'default' | 'jumbo' | 'icon';
4
+ export type ButtonSize = 'compact' | 'default' | 'jumbo' | 'icon';
5
5
  export type ButtonProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'style'> & {
6
6
  asChild?: never;
7
7
  className?: never;
package/dist/button.js CHANGED
@@ -18,17 +18,27 @@ const presentationToPrivateSize = {
18
18
  threadNew: 'sm',
19
19
  touch: 'default',
20
20
  };
21
+ const presentationAliases = {
22
+ controlPeer: 'default',
23
+ menuOption: 'promptOption',
24
+ touch: 'default',
25
+ };
26
+ function resolvePresentation(presentation) {
27
+ return presentationAliases[presentation] ?? presentation;
28
+ }
21
29
  function resolveButton(presentation, size) {
22
30
  const privateSize = presentationToPrivateSize[presentation];
23
31
  const resolvedSize = size ??
24
32
  (privateSize === 'lg'
25
33
  ? 'jumbo'
26
- : privateSize === 'icon' ||
27
- privateSize === 'icon-round' ||
28
- privateSize === 'icon-sm' ||
29
- privateSize === 'icon-xs'
30
- ? 'icon'
31
- : 'default');
34
+ : privateSize === 'sm'
35
+ ? 'compact'
36
+ : privateSize === 'icon' ||
37
+ privateSize === 'icon-round' ||
38
+ privateSize === 'icon-sm' ||
39
+ privateSize === 'icon-xs'
40
+ ? 'icon'
41
+ : 'default');
32
42
  return { resolvedSize, explicitSize: size ? resolvedSize : undefined };
33
43
  }
34
44
  function withArrow(variant, children) {
@@ -38,12 +48,12 @@ function withArrow(variant, children) {
38
48
  }
39
49
  const Button = React.forwardRef(function Button({ children, className: _className, presentation = 'default', render: _render, size, style: _style, type, variant = 'default', width, asChild: _asChild, ...props }, ref) {
40
50
  const { resolvedSize, explicitSize } = resolveButton(presentation, size);
41
- return (_jsx("button", { ...props, ref: ref, type: type ?? 'button', "data-warm-button": "", "data-slot": "button", "data-presentation": presentation, "data-variant": variant, "data-size": resolvedSize, "data-explicit-size": explicitSize, "data-width": width, children: withArrow(variant, children) }));
51
+ return (_jsx("button", { ...props, ref: ref, type: type ?? 'button', "data-warm-button": "", "data-slot": "button", "data-presentation": resolvePresentation(presentation), "data-variant": variant, "data-size": resolvedSize, "data-explicit-size": explicitSize, "data-width": width, children: withArrow(variant, children) }));
42
52
  });
43
53
  Button.displayName = 'WarmButton';
44
54
  const ButtonLink = React.forwardRef(function ButtonLink({ children, className: _className, disabled: _disabled, presentation = 'default', render: _render, size, style: _style, variant = 'default', width, asChild: _asChild, ...props }, ref) {
45
55
  const { resolvedSize, explicitSize } = resolveButton(presentation, size);
46
- return (_jsx("a", { ...props, ref: ref, "data-warm-button": "", "data-slot": "button", "data-presentation": presentation, "data-variant": variant, "data-size": resolvedSize, "data-explicit-size": explicitSize, "data-width": width, children: withArrow(variant, children) }));
56
+ return (_jsx("a", { ...props, ref: ref, "data-warm-button": "", "data-slot": "button", "data-presentation": resolvePresentation(presentation), "data-variant": variant, "data-size": resolvedSize, "data-explicit-size": explicitSize, "data-width": width, children: withArrow(variant, children) }));
47
57
  });
48
58
  ButtonLink.displayName = 'WarmButtonLink';
49
59
  export { Button, ButtonLink };
package/fonts.css CHANGED
@@ -1,414 +1,142 @@
1
1
  /*
2
- * Self-hosted variable fonts vendored from these exact OFL-1.1 releases:
3
- * @fontsource-variable/geist@5.2.9,
4
- * @fontsource-variable/geist-mono@5.2.8, and
5
- * @fontsource-variable/inter@5.2.8.
2
+ * Self-hosted fonts vendored from these exact OFL-1.1 releases:
3
+ * @fontsource-variable/jetbrains-mono@5.2.8 and
4
+ * @fontsource/merriweather@5.2.11.
6
5
  */
7
6
 
8
- /* geist-cyrillic-ext-wght-normal */
7
+ /* jetbrains-mono-latin-ext-wght-normal */
9
8
  @font-face {
10
- font-family: 'Geist';
9
+ font-family: 'JetBrains Mono';
11
10
  font-style: normal;
12
11
  font-display: swap;
13
- font-weight: 100 900;
14
- src: url('./fonts/geist-cyrillic-ext-wght-normal.woff2') format('woff2');
15
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
16
- }
17
-
18
- /* geist-cyrillic-wght-normal */
19
- @font-face {
20
- font-family: 'Geist';
21
- font-style: normal;
22
- font-display: swap;
23
- font-weight: 100 900;
24
- src: url('./fonts/geist-cyrillic-wght-normal.woff2') format('woff2');
25
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
26
- }
27
-
28
- /* geist-vietnamese-wght-normal */
29
- @font-face {
30
- font-family: 'Geist';
31
- font-style: normal;
32
- font-display: swap;
33
- font-weight: 100 900;
34
- src: url('./fonts/geist-vietnamese-wght-normal.woff2') format('woff2');
35
- unicode-range:
36
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
37
- U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
38
- }
39
-
40
- /* geist-latin-ext-wght-normal */
41
- @font-face {
42
- font-family: 'Geist';
43
- font-style: normal;
44
- font-display: swap;
45
- font-weight: 100 900;
46
- src: url('./fonts/geist-latin-ext-wght-normal.woff2') format('woff2');
12
+ font-weight: 100 800;
13
+ src: url('./fonts/jetbrains-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
47
14
  unicode-range:
48
15
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
49
16
  U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
50
17
  U+A720-A7FF;
51
18
  }
52
19
 
53
- /* geist-latin-wght-normal */
20
+ /* jetbrains-mono-latin-wght-normal */
54
21
  @font-face {
55
- font-family: 'Geist';
22
+ font-family: 'JetBrains Mono';
56
23
  font-style: normal;
57
24
  font-display: swap;
58
- font-weight: 100 900;
59
- src: url('./fonts/geist-latin-wght-normal.woff2') format('woff2');
25
+ font-weight: 100 800;
26
+ src: url('./fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
60
27
  unicode-range:
61
28
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
62
29
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
63
- } /* geist-cyrillic-ext-wght-italic */
64
- @font-face {
65
- font-family: 'Geist';
66
- font-style: italic;
67
- font-display: swap;
68
- font-weight: 100 900;
69
- src: url('./fonts/geist-cyrillic-ext-wght-italic.woff2') format('woff2');
70
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
71
30
  }
72
31
 
73
- /* geist-cyrillic-wght-italic */
32
+ /* jetbrains-mono-latin-ext-wght-italic */
74
33
  @font-face {
75
- font-family: 'Geist';
34
+ font-family: 'JetBrains Mono';
76
35
  font-style: italic;
77
36
  font-display: swap;
78
- font-weight: 100 900;
79
- src: url('./fonts/geist-cyrillic-wght-italic.woff2') format('woff2');
80
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
81
- }
82
-
83
- /* geist-vietnamese-wght-italic */
84
- @font-face {
85
- font-family: 'Geist';
86
- font-style: italic;
87
- font-display: swap;
88
- font-weight: 100 900;
89
- src: url('./fonts/geist-vietnamese-wght-italic.woff2') format('woff2');
90
- unicode-range:
91
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
92
- U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
93
- }
94
-
95
- /* geist-latin-ext-wght-italic */
96
- @font-face {
97
- font-family: 'Geist';
98
- font-style: italic;
99
- font-display: swap;
100
- font-weight: 100 900;
101
- src: url('./fonts/geist-latin-ext-wght-italic.woff2') format('woff2');
37
+ font-weight: 100 800;
38
+ src: url('./fonts/jetbrains-mono-latin-ext-wght-italic.woff2') format('woff2-variations');
102
39
  unicode-range:
103
40
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
104
41
  U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
105
42
  U+A720-A7FF;
106
43
  }
107
44
 
108
- /* geist-latin-wght-italic */
45
+ /* jetbrains-mono-latin-wght-italic */
109
46
  @font-face {
110
- font-family: 'Geist';
47
+ font-family: 'JetBrains Mono';
111
48
  font-style: italic;
112
49
  font-display: swap;
113
- font-weight: 100 900;
114
- src: url('./fonts/geist-latin-wght-italic.woff2') format('woff2');
50
+ font-weight: 100 800;
51
+ src: url('./fonts/jetbrains-mono-latin-wght-italic.woff2') format('woff2-variations');
115
52
  unicode-range:
116
53
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
117
54
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
118
- } /* geist-mono-cyrillic-ext-wght-normal */
119
- @font-face {
120
- font-family: 'Geist Mono';
121
- font-style: normal;
122
- font-display: swap;
123
- font-weight: 100 900;
124
- src: url('./fonts/geist-mono-cyrillic-ext-wght-normal.woff2') format('woff2');
125
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
126
- }
127
-
128
- /* geist-mono-cyrillic-wght-normal */
129
- @font-face {
130
- font-family: 'Geist Mono';
131
- font-style: normal;
132
- font-display: swap;
133
- font-weight: 100 900;
134
- src: url('./fonts/geist-mono-cyrillic-wght-normal.woff2') format('woff2');
135
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
136
- }
137
-
138
- /* geist-mono-symbols2-wght-normal */
139
- @font-face {
140
- font-family: 'Geist Mono';
141
- font-style: normal;
142
- font-display: swap;
143
- font-weight: 100 900;
144
- src: url('./fonts/geist-mono-symbols2-wght-normal.woff2') format('woff2');
145
- unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
146
55
  }
147
56
 
148
- /* geist-mono-vietnamese-wght-normal */
57
+ /* merriweather-latin-ext-400-normal */
149
58
  @font-face {
150
- font-family: 'Geist Mono';
59
+ font-family: 'Merriweather';
151
60
  font-style: normal;
152
61
  font-display: swap;
153
- font-weight: 100 900;
154
- src: url('./fonts/geist-mono-vietnamese-wght-normal.woff2') format('woff2');
155
- unicode-range:
156
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
157
- U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
158
- }
159
-
160
- /* geist-mono-latin-ext-wght-normal */
161
- @font-face {
162
- font-family: 'Geist Mono';
163
- font-style: normal;
164
- font-display: swap;
165
- font-weight: 100 900;
166
- src: url('./fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2');
62
+ font-weight: 400;
63
+ src: url('./fonts/merriweather-latin-ext-400-normal.woff2') format('woff2');
167
64
  unicode-range:
168
65
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
169
66
  U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
170
67
  U+A720-A7FF;
171
68
  }
172
69
 
173
- /* geist-mono-latin-wght-normal */
70
+ /* merriweather-latin-400-normal */
174
71
  @font-face {
175
- font-family: 'Geist Mono';
72
+ font-family: 'Merriweather';
176
73
  font-style: normal;
177
74
  font-display: swap;
178
- font-weight: 100 900;
179
- src: url('./fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
75
+ font-weight: 400;
76
+ src: url('./fonts/merriweather-latin-400-normal.woff2') format('woff2');
180
77
  unicode-range:
181
78
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
182
79
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
183
- } /* geist-mono-cyrillic-ext-wght-italic */
184
- @font-face {
185
- font-family: 'Geist Mono';
186
- font-style: italic;
187
- font-display: swap;
188
- font-weight: 100 900;
189
- src: url('./fonts/geist-mono-cyrillic-ext-wght-italic.woff2') format('woff2');
190
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
191
- }
192
-
193
- /* geist-mono-cyrillic-wght-italic */
194
- @font-face {
195
- font-family: 'Geist Mono';
196
- font-style: italic;
197
- font-display: swap;
198
- font-weight: 100 900;
199
- src: url('./fonts/geist-mono-cyrillic-wght-italic.woff2') format('woff2');
200
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
201
- }
202
-
203
- /* geist-mono-symbols2-wght-italic */
204
- @font-face {
205
- font-family: 'Geist Mono';
206
- font-style: italic;
207
- font-display: swap;
208
- font-weight: 100 900;
209
- src: url('./fonts/geist-mono-symbols2-wght-italic.woff2') format('woff2');
210
- unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
211
- }
212
-
213
- /* geist-mono-vietnamese-wght-italic */
214
- @font-face {
215
- font-family: 'Geist Mono';
216
- font-style: italic;
217
- font-display: swap;
218
- font-weight: 100 900;
219
- src: url('./fonts/geist-mono-vietnamese-wght-italic.woff2') format('woff2');
220
- unicode-range:
221
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
222
- U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
223
80
  }
224
81
 
225
- /* geist-mono-latin-ext-wght-italic */
82
+ /* merriweather-latin-ext-700-normal */
226
83
  @font-face {
227
- font-family: 'Geist Mono';
228
- font-style: italic;
229
- font-display: swap;
230
- font-weight: 100 900;
231
- src: url('./fonts/geist-mono-latin-ext-wght-italic.woff2') format('woff2');
232
- unicode-range:
233
- U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
234
- U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
235
- U+A720-A7FF;
236
- }
237
-
238
- /* geist-mono-latin-wght-italic */
239
- @font-face {
240
- font-family: 'Geist Mono';
241
- font-style: italic;
242
- font-display: swap;
243
- font-weight: 100 900;
244
- src: url('./fonts/geist-mono-latin-wght-italic.woff2') format('woff2');
245
- unicode-range:
246
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
247
- U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
248
- } /* inter-cyrillic-ext-wght-normal */
249
- @font-face {
250
- font-family: 'Inter';
251
- font-style: normal;
252
- font-display: swap;
253
- font-weight: 100 900;
254
- src: url('./fonts/inter-cyrillic-ext-wght-normal.woff2') format('woff2');
255
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
256
- }
257
-
258
- /* inter-cyrillic-wght-normal */
259
- @font-face {
260
- font-family: 'Inter';
84
+ font-family: 'Merriweather';
261
85
  font-style: normal;
262
86
  font-display: swap;
263
- font-weight: 100 900;
264
- src: url('./fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
265
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
266
- }
267
-
268
- /* inter-greek-ext-wght-normal */
269
- @font-face {
270
- font-family: 'Inter';
271
- font-style: normal;
272
- font-display: swap;
273
- font-weight: 100 900;
274
- src: url('./fonts/inter-greek-ext-wght-normal.woff2') format('woff2');
275
- unicode-range: U+1F00-1FFF;
276
- }
277
-
278
- /* inter-greek-wght-normal */
279
- @font-face {
280
- font-family: 'Inter';
281
- font-style: normal;
282
- font-display: swap;
283
- font-weight: 100 900;
284
- src: url('./fonts/inter-greek-wght-normal.woff2') format('woff2');
285
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
286
- }
287
-
288
- /* inter-vietnamese-wght-normal */
289
- @font-face {
290
- font-family: 'Inter';
291
- font-style: normal;
292
- font-display: swap;
293
- font-weight: 100 900;
294
- src: url('./fonts/inter-vietnamese-wght-normal.woff2') format('woff2');
295
- unicode-range:
296
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
297
- U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
298
- }
299
-
300
- /* inter-latin-ext-wght-normal */
301
- @font-face {
302
- font-family: 'Inter';
303
- font-style: normal;
304
- font-display: swap;
305
- font-weight: 100 900;
306
- src: url('./fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
87
+ font-weight: 700;
88
+ src: url('./fonts/merriweather-latin-ext-700-normal.woff2') format('woff2');
307
89
  unicode-range:
308
90
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
309
91
  U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
310
92
  U+A720-A7FF;
311
93
  }
312
94
 
313
- /* inter-latin-wght-normal */
95
+ /* merriweather-latin-700-normal */
314
96
  @font-face {
315
- font-family: 'Inter';
97
+ font-family: 'Merriweather';
316
98
  font-style: normal;
317
99
  font-display: swap;
318
- font-weight: 100 900;
319
- src: url('./fonts/inter-latin-wght-normal.woff2') format('woff2');
100
+ font-weight: 700;
101
+ src: url('./fonts/merriweather-latin-700-normal.woff2') format('woff2');
320
102
  unicode-range:
321
103
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
322
104
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
323
- } /* inter-cyrillic-ext-wght-italic */
324
- @font-face {
325
- font-family: 'Inter';
326
- font-style: italic;
327
- font-display: swap;
328
- font-weight: 100 900;
329
- src: url('./fonts/inter-cyrillic-ext-wght-italic.woff2') format('woff2');
330
- unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
331
- }
332
-
333
- /* inter-cyrillic-wght-italic */
334
- @font-face {
335
- font-family: 'Inter';
336
- font-style: italic;
337
- font-display: swap;
338
- font-weight: 100 900;
339
- src: url('./fonts/inter-cyrillic-wght-italic.woff2') format('woff2');
340
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
341
105
  }
342
106
 
343
- /* inter-greek-ext-wght-italic */
107
+ /* merriweather-latin-ext-400-italic */
344
108
  @font-face {
345
- font-family: 'Inter';
109
+ font-family: 'Merriweather';
346
110
  font-style: italic;
347
111
  font-display: swap;
348
- font-weight: 100 900;
349
- src: url('./fonts/inter-greek-ext-wght-italic.woff2') format('woff2');
350
- unicode-range: U+1F00-1FFF;
351
- }
352
-
353
- /* inter-greek-wght-italic */
354
- @font-face {
355
- font-family: 'Inter';
356
- font-style: italic;
357
- font-display: swap;
358
- font-weight: 100 900;
359
- src: url('./fonts/inter-greek-wght-italic.woff2') format('woff2');
360
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
361
- }
362
-
363
- /* inter-vietnamese-wght-italic */
364
- @font-face {
365
- font-family: 'Inter';
366
- font-style: italic;
367
- font-display: swap;
368
- font-weight: 100 900;
369
- src: url('./fonts/inter-vietnamese-wght-italic.woff2') format('woff2');
370
- unicode-range:
371
- U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
372
- U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
373
- }
374
-
375
- /* inter-latin-ext-wght-italic */
376
- @font-face {
377
- font-family: 'Inter';
378
- font-style: italic;
379
- font-display: swap;
380
- font-weight: 100 900;
381
- src: url('./fonts/inter-latin-ext-wght-italic.woff2') format('woff2');
112
+ font-weight: 400;
113
+ src: url('./fonts/merriweather-latin-ext-400-italic.woff2') format('woff2');
382
114
  unicode-range:
383
115
  U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
384
116
  U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
385
117
  U+A720-A7FF;
386
118
  }
387
119
 
388
- /* inter-latin-wght-italic */
120
+ /* merriweather-latin-400-italic */
389
121
  @font-face {
390
- font-family: 'Inter';
122
+ font-family: 'Merriweather';
391
123
  font-style: italic;
392
124
  font-display: swap;
393
- font-weight: 100 900;
394
- src: url('./fonts/inter-latin-wght-italic.woff2') format('woff2');
125
+ font-weight: 400;
126
+ src: url('./fonts/merriweather-latin-400-italic.woff2') format('woff2');
395
127
  unicode-range:
396
128
  U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
397
129
  U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
398
130
  }
399
131
 
400
132
  :root {
401
- --font-geist: 'Geist', ui-sans-serif, system-ui, sans-serif;
402
- --font-heading: var(--font-geist);
403
- --font-sans: var(--font-geist);
404
- --font-serif: var(--font-geist);
405
- --font-display: var(--font-geist);
406
- --font-mono: 'Geist Mono', ui-monospace, monospace;
407
- --font-editorial-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
408
- --font-marketing-sans: var(--font-editorial-sans);
409
- }
410
-
411
- /* The only shared Inter entry point. Product use is checked against an allowlist. */
412
- @utility font-editorial {
413
- font-family: var(--font-editorial-sans);
133
+ --font-mono: 'JetBrains Mono', ui-monospace, monospace;
134
+ --font-sans: var(--font-mono);
135
+ --font-geist: var(--font-mono);
136
+ --font-display: var(--font-mono);
137
+ --font-editorial-sans: var(--font-mono);
138
+ --font-default: var(--font-mono);
139
+ --font-serif: 'Merriweather', ui-serif, Georgia, 'Times New Roman', serif;
140
+ --font-marketing-sans: var(--font-serif);
141
+ --font-heading: var(--font-serif);
414
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warmio/design",
3
- "version": "1.5.2",
3
+ "version": "1.7.0",
4
4
  "description": "Warm's public design contract: CSS tokens and Button/Logo primitives.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,7 +25,6 @@
25
25
  "themes.css",
26
26
  "components.css",
27
27
  "fonts",
28
- "assets",
29
28
  "dist",
30
29
  "LICENSES"
31
30
  ],
package/theme.css CHANGED
@@ -75,8 +75,17 @@
75
75
 
76
76
  /* Marketing surface and dot patterns (owned by design) */
77
77
  --marketing-surface: #f7f7f7;
78
- --marketing-pattern-dots: url('./assets/subtle-dots.png');
79
- --marketing-pattern-dots-dark: url('./assets/subtle-dots-dark.svg');
78
+ --marketing-pattern-dots-size: 5px 5px;
79
+ --marketing-pattern-dots: radial-gradient(
80
+ circle at 0.5px 0.5px,
81
+ oklch(0 0 0 / 0.08) 0.5px,
82
+ transparent 0.5px
83
+ );
84
+ --marketing-pattern-dots-dark: radial-gradient(
85
+ circle at 0.5px 0.5px,
86
+ oklch(1 0 0 / 0.08) 0.5px,
87
+ transparent 0.5px
88
+ );
80
89
 
81
90
  /* Charts */
82
91
  --chart-1: oklch(0.32 0 none);
@@ -194,11 +203,11 @@
194
203
  NON-COLOR TOKENS (shared across all themes)
195
204
  ══════════════════════════════════════════════════════════════════════════ */
196
205
 
197
- /* Typography — CSS variables (--font-sans, --font-serif, --font-mono, --font-display)
198
- are defined in the shared font styles and consumed across the app runtime. */
206
+ /* Typography — two families in fonts.css: JetBrains Mono default, Merriweather headings.
207
+ Role aliases (--font-sans, --font-display, --font-editorial-sans) resolve to mono; marketing/headings use serif. */
199
208
  --tracking-normal: 0em;
200
209
 
201
- /* Spacing Scale */
210
+ /* Spacing Scale — --spacing is the Tailwind seed (0.25rem). Product surfaces use 0 / 8px / 16px only; xs/md/xl/2xl below are leftover advertised names, not product steps. */
202
211
  --spacing: 0.25rem;
203
212
  --spacing-xs: 0.25rem;
204
213
  --spacing-sm: 0.5rem;
@@ -1,93 +0,0 @@
1
- Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)
2
-
3
- This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
- This license is copied below, and is also available with a FAQ at:
5
- http://scripts.sil.org/OFL
6
-
7
-
8
- -----------------------------------------------------------
9
- SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
- -----------------------------------------------------------
11
-
12
- PREAMBLE
13
- The goals of the Open Font License (OFL) are to stimulate worldwide
14
- development of collaborative font projects, to support the font creation
15
- efforts of academic and linguistic communities, and to provide a free and
16
- open framework in which fonts may be shared and improved in partnership
17
- with others.
18
-
19
- The OFL allows the licensed fonts to be used, studied, modified and
20
- redistributed freely as long as they are not sold by themselves. The
21
- fonts, including any derivative works, can be bundled, embedded,
22
- redistributed and/or sold with any software provided that any reserved
23
- names are not used by derivative works. The fonts and derivatives,
24
- however, cannot be released under any other type of license. The
25
- requirement for fonts to remain under this license does not apply
26
- to any document created using the fonts or their derivatives.
27
-
28
- DEFINITIONS
29
- "Font Software" refers to the set of files released by the Copyright
30
- Holder(s) under this license and clearly marked as such. This may
31
- include source files, build scripts and documentation.
32
-
33
- "Reserved Font Name" refers to any names specified as such after the
34
- copyright statement(s).
35
-
36
- "Original Version" refers to the collection of Font Software components as
37
- distributed by the Copyright Holder(s).
38
-
39
- "Modified Version" refers to any derivative made by adding to, deleting,
40
- or substituting -- in part or in whole -- any of the components of the
41
- Original Version, by changing formats or by porting the Font Software to a
42
- new environment.
43
-
44
- "Author" refers to any designer, engineer, programmer, technical
45
- writer or other person who contributed to the Font Software.
46
-
47
- PERMISSION & CONDITIONS
48
- Permission is hereby granted, free of charge, to any person obtaining
49
- a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
- redistribute, and sell modified and unmodified copies of the Font
51
- Software, subject to the following conditions:
52
-
53
- 1) Neither the Font Software nor any of its individual components,
54
- in Original or Modified Versions, may be sold by itself.
55
-
56
- 2) Original or Modified Versions of the Font Software may be bundled,
57
- redistributed and/or sold with any software, provided that each copy
58
- contains the above copyright notice and this license. These can be
59
- included either as stand-alone text files, human-readable headers or
60
- in the appropriate machine-readable metadata fields within text or
61
- binary files as long as those fields can be easily viewed by the user.
62
-
63
- 3) No Modified Version of the Font Software may use the Reserved Font
64
- Name(s) unless explicit written permission is granted by the corresponding
65
- Copyright Holder. This restriction only applies to the primary font name as
66
- presented to the users.
67
-
68
- 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
- Software shall not be used to promote, endorse or advertise any
70
- Modified Version, except to acknowledge the contribution(s) of the
71
- Copyright Holder(s) and the Author(s) or with their explicit written
72
- permission.
73
-
74
- 5) The Font Software, modified or unmodified, in part or in whole,
75
- must be distributed entirely under this license, and must not be
76
- distributed under any other license. The requirement for fonts to
77
- remain under this license does not apply to any document created
78
- using the Font Software.
79
-
80
- TERMINATION
81
- This license becomes null and void if any of the above conditions are
82
- not met.
83
-
84
- DISCLAIMER
85
- THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
- OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
- COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
- INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
- DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
- FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
- OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -1,8 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="27" height="15" viewBox="0 0 27 15">
2
- <defs>
3
- <pattern id="dots" width="3" height="3" patternUnits="userSpaceOnUse">
4
- <rect width="1" height="1" fill="#fff" fill-opacity=".14" />
5
- </pattern>
6
- </defs>
7
- <rect width="27" height="15" fill="url(#dots)" />
8
- </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file