@graftwork/tokens 1.1.0 → 1.2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @graftwork/tokens
2
2
 
3
+ ## 1.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#22](https://github.com/graftwork-studio/design-system/pull/22) [`0c0b6dc`](https://github.com/graftwork-studio/design-system/commit/0c0b6dcb927a3948d9565f30dbf34cf800010e3a) Thanks [@david-kenny](https://github.com/david-kenny)! - Body text is now 14px (0.875rem at the browser default). A new `font.size.body` token (`--gw-font-size-body`, Tailwind `text-body`) is applied to `body`, and Card and Table use it for their content. The `html` root stays at `100%`, so rem still follows the user's font setting, and `font.size.md` stays at 1rem for inputs, Select and Button so iOS Safari doesn't zoom in on focus.
8
+
9
+ - [#23](https://github.com/graftwork-studio/design-system/pull/23) [`cc952a7`](https://github.com/graftwork-studio/design-system/commit/cc952a705279e6ad295dde8f9c791132e1750c6f) Thanks [@david-kenny](https://github.com/david-kenny)! - Add 30 components from shadcn/ui, built on React Aria and styled with our tokens: Accordion, Alert, AlertDialog, Avatar, Badge, Breadcrumb, Checkbox, Collapsible, Combobox, Dialog, DropdownMenu, Empty, InputGroup, Kbd, Label, Pagination, Popover, Progress, RadioGroup, Separator, Sheet, Skeleton, Slider, Spinner, Switch, Tabs, Textarea, Toast, Toggle and Tooltip.
10
+
11
+ Toast uses React Aria's Toast (still marked unstable upstream) rather than Sonner: render `<Toaster />` once and call `toast({ title })`.
12
+
13
+ Tokens: new `color.overlay.scrim` (Tailwind `bg-overlay-scrim/60`) for the layer behind modals. Stylesheet: new `focus-ring-drawn` utility, which draws the focus ring on a part that shows its parent's focus.
14
+
15
+ - [#22](https://github.com/graftwork-studio/design-system/pull/22) [`0c0b6dc`](https://github.com/graftwork-studio/design-system/commit/0c0b6dcb927a3948d9565f30dbf34cf800010e3a) Thanks [@david-kenny](https://github.com/david-kenny)! - Switch the sans font from Noto Sans to Geist. `font.family.sans` is now `"Geist Variable", Geist, system-ui, sans-serif`, and `@graftwork/ui` loads it from `@fontsource-variable/geist` in place of `@fontsource-variable/noto-sans`.
16
+
17
+ ## 1.1.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [#13](https://github.com/graftwork-studio/design-system/pull/13) [`815cacb`](https://github.com/graftwork-studio/design-system/commit/815cacb1142ab69a18408db707cfd99831e645c8) Thanks [@david-kenny](https://github.com/david-kenny)! - Revert the brand colour to blue (`#2883de`) after the cascade test. The brand scale is back to exactly what it was in 1.0.1.
22
+
3
23
  ## 1.1.0
4
24
 
5
25
  ### Minor Changes
@@ -16,6 +16,7 @@
16
16
  --color-surface-raised: var(--gw-color-surface-raised);
17
17
  --color-surface-subtle: var(--gw-color-surface-subtle);
18
18
  --color-surface-overlay: var(--gw-color-surface-overlay);
19
+ --color-overlay-scrim: var(--gw-color-overlay-scrim);
19
20
  --color-action-primary-bg: var(--gw-color-action-primary-bg);
20
21
  --color-action-primary-bg-hover: var(--gw-color-action-primary-bg-hover);
21
22
  --color-action-secondary-bg: var(--gw-color-action-secondary-bg);
@@ -62,6 +63,7 @@
62
63
  --text-xs: var(--gw-font-size-xs);
63
64
  --text-sm: var(--gw-font-size-sm);
64
65
  --text-md: var(--gw-font-size-md);
66
+ --text-body: var(--gw-font-size-body);
65
67
  --text-lg: var(--gw-font-size-lg);
66
68
  --text-xl: var(--gw-font-size-xl);
67
69
  --text-2xl: var(--gw-font-size-2xl);
@@ -18,11 +18,12 @@
18
18
  --gw-space-xl: 2rem;
19
19
  --gw-space-2xl: 3rem;
20
20
  --gw-space-3xl: 4rem;
21
- --gw-font-family-sans: "Noto Sans Variable", "Noto Sans", system-ui, sans-serif;
21
+ --gw-font-family-sans: "Geist Variable", Geist, system-ui, sans-serif;
22
22
  --gw-font-family-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
23
23
  --gw-font-size-xs: 0.75rem;
24
24
  --gw-font-size-sm: 0.875rem;
25
25
  --gw-font-size-md: 1rem;
26
+ --gw-font-size-body: 0.875rem;
26
27
  --gw-font-size-lg: 1.125rem;
27
28
  --gw-font-size-xl: 1.25rem;
28
29
  --gw-font-size-2xl: 1.5rem;
@@ -54,8 +55,9 @@
54
55
  --gw-color-surface-raised: #ffffff;
55
56
  --gw-color-surface-subtle: #f4f4f4;
56
57
  --gw-color-surface-overlay: #ffffff;
57
- --gw-color-action-primary-bg: #702faa;
58
- --gw-color-action-primary-bg-hover: #582488;
58
+ --gw-color-overlay-scrim: #0a0a0a;
59
+ --gw-color-action-primary-bg: #0458a1;
60
+ --gw-color-action-primary-bg-hover: #034580;
59
61
  --gw-color-action-secondary-bg: #ffffff;
60
62
  --gw-color-action-secondary-bg-hover: #f4f4f4;
61
63
  --gw-color-action-ghost-bg-hover: #f4f4f4;
@@ -64,28 +66,28 @@
64
66
  --gw-color-status-success-bg: #eefbf1;
65
67
  --gw-color-status-warning-bg: #fff5ea;
66
68
  --gw-color-status-error-bg: #fff4f2;
67
- --gw-color-status-info-bg: #f9f5ff;
69
+ --gw-color-status-info-bg: #f1f7ff;
68
70
  --gw-color-text-default: #0a0a0a;
69
71
  --gw-color-text-secondary: #525252;
70
72
  --gw-color-text-placeholder: #525252;
71
- --gw-color-text-link: #582488;
73
+ --gw-color-text-link: #034580;
72
74
  --gw-color-text-on-primary: #ffffff;
73
75
  --gw-color-text-on-destructive: #ffffff;
74
76
  --gw-color-text-success: #005428;
75
77
  --gw-color-text-warning: #613c00;
76
78
  --gw-color-text-error: #811316;
77
- --gw-color-text-info: #582488;
79
+ --gw-color-text-info: #034580;
78
80
  --gw-color-border-input: #737373;
79
81
  --gw-color-border-input-invalid: #a21a1e;
80
82
  --gw-color-border-default: #e5e5e5;
81
83
  --gw-color-border-status-success: #8bd5a0;
82
84
  --gw-color-border-status-warning: #ecb573;
83
85
  --gw-color-border-status-error: #ffa69d;
84
- --gw-color-border-status-info: #d1aeff;
86
+ --gw-color-border-status-info: #93c5ff;
85
87
  --gw-color-icon-default: #525252;
86
- --gw-color-icon-brand: #8e3fd6;
87
- --gw-color-focus-ring: #8e3fd6;
88
- --gw-color-chart-series-1: #8e3fd6;
88
+ --gw-color-icon-brand: #2883de;
89
+ --gw-color-focus-ring: #2883de;
90
+ --gw-color-chart-series-1: #2883de;
89
91
  --gw-color-chart-series-2: #b87600;
90
92
  --gw-color-chart-series-3: #525252;
91
93
  --gw-color-chart-series-4: #008241;
@@ -100,8 +102,9 @@
100
102
  --gw-color-surface-raised: #171717;
101
103
  --gw-color-surface-subtle: #1e1e1e;
102
104
  --gw-color-surface-overlay: #171717;
103
- --gw-color-action-primary-bg: #bd84ff;
104
- --gw-color-action-primary-bg-hover: #d1aeff;
105
+ --gw-color-overlay-scrim: #0a0a0a;
106
+ --gw-color-action-primary-bg: #5ca8fc;
107
+ --gw-color-action-primary-bg-hover: #93c5ff;
105
108
  --gw-color-action-secondary-bg: #171717;
106
109
  --gw-color-action-secondary-bg-hover: #1e1e1e;
107
110
  --gw-color-action-ghost-bg-hover: #1e1e1e;
@@ -110,28 +113,28 @@
110
113
  --gw-color-status-success-bg: #002a11;
111
114
  --gw-color-status-warning-bg: #311c00;
112
115
  --gw-color-status-error-bg: #460104;
113
- --gw-color-status-info-bg: #2e0b4b;
116
+ --gw-color-status-info-bg: #002244;
114
117
  --gw-color-text-default: #fafafa;
115
118
  --gw-color-text-secondary: #d4d4d4;
116
119
  --gw-color-text-placeholder: #d4d4d4;
117
- --gw-color-text-link: #d1aeff;
120
+ --gw-color-text-link: #93c5ff;
118
121
  --gw-color-text-on-primary: #0a0a0a;
119
122
  --gw-color-text-on-destructive: #0a0a0a;
120
123
  --gw-color-text-success: #8bd5a0;
121
124
  --gw-color-text-warning: #ecb573;
122
125
  --gw-color-text-error: #ffa69d;
123
- --gw-color-text-info: #d1aeff;
126
+ --gw-color-text-info: #93c5ff;
124
127
  --gw-color-border-input: #737373;
125
128
  --gw-color-border-input-invalid: #ff7269;
126
129
  --gw-color-border-default: #262626;
127
130
  --gw-color-border-status-success: #006a34;
128
131
  --gw-color-border-status-warning: #7a4d00;
129
132
  --gw-color-border-status-error: #a21a1e;
130
- --gw-color-border-status-info: #702faa;
133
+ --gw-color-border-status-info: #0458a1;
131
134
  --gw-color-icon-default: #a1a1a1;
132
- --gw-color-icon-brand: #8e3fd6;
133
- --gw-color-focus-ring: #bd84ff;
134
- --gw-color-chart-series-1: #bd84ff;
135
+ --gw-color-icon-brand: #2883de;
136
+ --gw-color-focus-ring: #5ca8fc;
137
+ --gw-color-chart-series-1: #5ca8fc;
135
138
  --gw-color-chart-series-2: #d99435;
136
139
  --gw-color-chart-series-3: #a1a1a1;
137
140
  --gw-color-chart-series-4: #59bd7a;
@@ -147,8 +150,9 @@
147
150
  --gw-color-surface-raised: #ffffff;
148
151
  --gw-color-surface-subtle: #fafafa;
149
152
  --gw-color-surface-overlay: #ffffff;
150
- --gw-color-action-primary-bg: #421868;
151
- --gw-color-action-primary-bg-hover: #2e0b4b;
153
+ --gw-color-overlay-scrim: #0a0a0a;
154
+ --gw-color-action-primary-bg: #003362;
155
+ --gw-color-action-primary-bg-hover: #002244;
152
156
  --gw-color-action-secondary-bg: #ffffff;
153
157
  --gw-color-action-secondary-bg-hover: #f4f4f4;
154
158
  --gw-color-action-ghost-bg-hover: #f4f4f4;
@@ -157,28 +161,28 @@
157
161
  --gw-color-status-success-bg: #eefbf1;
158
162
  --gw-color-status-warning-bg: #fff5ea;
159
163
  --gw-color-status-error-bg: #fff4f2;
160
- --gw-color-status-info-bg: #f9f5ff;
164
+ --gw-color-status-info-bg: #f1f7ff;
161
165
  --gw-color-text-default: #000000;
162
166
  --gw-color-text-secondary: #262626;
163
167
  --gw-color-text-placeholder: #262626;
164
- --gw-color-text-link: #421868;
168
+ --gw-color-text-link: #003362;
165
169
  --gw-color-text-on-primary: #ffffff;
166
170
  --gw-color-text-on-destructive: #ffffff;
167
171
  --gw-color-text-success: #003e1c;
168
172
  --gw-color-text-warning: #482c00;
169
173
  --gw-color-text-error: #620a0d;
170
- --gw-color-text-info: #421868;
174
+ --gw-color-text-info: #003362;
171
175
  --gw-color-border-input: #0a0a0a;
172
176
  --gw-color-border-input-invalid: #620a0d;
173
177
  --gw-color-border-default: #404040;
174
178
  --gw-color-border-status-success: #005428;
175
179
  --gw-color-border-status-warning: #613c00;
176
180
  --gw-color-border-status-error: #811316;
177
- --gw-color-border-status-info: #582488;
181
+ --gw-color-border-status-info: #034580;
178
182
  --gw-color-icon-default: #171717;
179
- --gw-color-icon-brand: #702faa;
183
+ --gw-color-icon-brand: #0458a1;
180
184
  --gw-color-focus-ring: #000000;
181
- --gw-color-chart-series-1: #702faa;
185
+ --gw-color-chart-series-1: #0458a1;
182
186
  --gw-color-chart-series-2: #7a4d00;
183
187
  --gw-color-chart-series-3: #262626;
184
188
  --gw-color-chart-series-4: #005428;
@@ -193,8 +197,9 @@
193
197
  --gw-color-surface-raised: #171717;
194
198
  --gw-color-surface-subtle: #1e1e1e;
195
199
  --gw-color-surface-overlay: #171717;
196
- --gw-color-action-primary-bg: #bd84ff;
197
- --gw-color-action-primary-bg-hover: #d1aeff;
200
+ --gw-color-overlay-scrim: #0a0a0a;
201
+ --gw-color-action-primary-bg: #5ca8fc;
202
+ --gw-color-action-primary-bg-hover: #93c5ff;
198
203
  --gw-color-action-secondary-bg: #171717;
199
204
  --gw-color-action-secondary-bg-hover: #1e1e1e;
200
205
  --gw-color-action-ghost-bg-hover: #1e1e1e;
@@ -203,28 +208,28 @@
203
208
  --gw-color-status-success-bg: #002a11;
204
209
  --gw-color-status-warning-bg: #311c00;
205
210
  --gw-color-status-error-bg: #460104;
206
- --gw-color-status-info-bg: #2e0b4b;
211
+ --gw-color-status-info-bg: #002244;
207
212
  --gw-color-text-default: #fafafa;
208
213
  --gw-color-text-secondary: #d4d4d4;
209
214
  --gw-color-text-placeholder: #d4d4d4;
210
- --gw-color-text-link: #d1aeff;
215
+ --gw-color-text-link: #93c5ff;
211
216
  --gw-color-text-on-primary: #0a0a0a;
212
217
  --gw-color-text-on-destructive: #0a0a0a;
213
218
  --gw-color-text-success: #8bd5a0;
214
219
  --gw-color-text-warning: #ecb573;
215
220
  --gw-color-text-error: #ffa69d;
216
- --gw-color-text-info: #d1aeff;
221
+ --gw-color-text-info: #93c5ff;
217
222
  --gw-color-border-input: #737373;
218
223
  --gw-color-border-input-invalid: #ff7269;
219
224
  --gw-color-border-default: #262626;
220
225
  --gw-color-border-status-success: #006a34;
221
226
  --gw-color-border-status-warning: #7a4d00;
222
227
  --gw-color-border-status-error: #a21a1e;
223
- --gw-color-border-status-info: #702faa;
228
+ --gw-color-border-status-info: #0458a1;
224
229
  --gw-color-icon-default: #a1a1a1;
225
- --gw-color-icon-brand: #8e3fd6;
226
- --gw-color-focus-ring: #bd84ff;
227
- --gw-color-chart-series-1: #bd84ff;
230
+ --gw-color-icon-brand: #2883de;
231
+ --gw-color-focus-ring: #5ca8fc;
232
+ --gw-color-chart-series-1: #5ca8fc;
228
233
  --gw-color-chart-series-2: #d99435;
229
234
  --gw-color-chart-series-3: #a1a1a1;
230
235
  --gw-color-chart-series-4: #59bd7a;
@@ -237,8 +242,9 @@
237
242
  --gw-color-surface-raised: #ffffff;
238
243
  --gw-color-surface-subtle: #fafafa;
239
244
  --gw-color-surface-overlay: #ffffff;
240
- --gw-color-action-primary-bg: #421868;
241
- --gw-color-action-primary-bg-hover: #2e0b4b;
245
+ --gw-color-overlay-scrim: #0a0a0a;
246
+ --gw-color-action-primary-bg: #003362;
247
+ --gw-color-action-primary-bg-hover: #002244;
242
248
  --gw-color-action-secondary-bg: #ffffff;
243
249
  --gw-color-action-secondary-bg-hover: #f4f4f4;
244
250
  --gw-color-action-ghost-bg-hover: #f4f4f4;
@@ -247,28 +253,28 @@
247
253
  --gw-color-status-success-bg: #eefbf1;
248
254
  --gw-color-status-warning-bg: #fff5ea;
249
255
  --gw-color-status-error-bg: #fff4f2;
250
- --gw-color-status-info-bg: #f9f5ff;
256
+ --gw-color-status-info-bg: #f1f7ff;
251
257
  --gw-color-text-default: #000000;
252
258
  --gw-color-text-secondary: #262626;
253
259
  --gw-color-text-placeholder: #262626;
254
- --gw-color-text-link: #421868;
260
+ --gw-color-text-link: #003362;
255
261
  --gw-color-text-on-primary: #ffffff;
256
262
  --gw-color-text-on-destructive: #ffffff;
257
263
  --gw-color-text-success: #003e1c;
258
264
  --gw-color-text-warning: #482c00;
259
265
  --gw-color-text-error: #620a0d;
260
- --gw-color-text-info: #421868;
266
+ --gw-color-text-info: #003362;
261
267
  --gw-color-border-input: #0a0a0a;
262
268
  --gw-color-border-input-invalid: #620a0d;
263
269
  --gw-color-border-default: #404040;
264
270
  --gw-color-border-status-success: #005428;
265
271
  --gw-color-border-status-warning: #613c00;
266
272
  --gw-color-border-status-error: #811316;
267
- --gw-color-border-status-info: #582488;
273
+ --gw-color-border-status-info: #034580;
268
274
  --gw-color-icon-default: #171717;
269
- --gw-color-icon-brand: #702faa;
275
+ --gw-color-icon-brand: #0458a1;
270
276
  --gw-color-focus-ring: #000000;
271
- --gw-color-chart-series-1: #702faa;
277
+ --gw-color-chart-series-1: #0458a1;
272
278
  --gw-color-chart-series-2: #7a4d00;
273
279
  --gw-color-chart-series-3: #262626;
274
280
  --gw-color-chart-series-4: #005428;
@@ -6,6 +6,7 @@ export type TokenName =
6
6
  | "color.surface.raised"
7
7
  | "color.surface.subtle"
8
8
  | "color.surface.overlay"
9
+ | "color.overlay.scrim"
9
10
  | "color.action.primary.bg"
10
11
  | "color.action.primary.bg-hover"
11
12
  | "color.action.secondary.bg"
@@ -61,6 +62,7 @@ export type TokenName =
61
62
  | "font.size.xs"
62
63
  | "font.size.sm"
63
64
  | "font.size.md"
65
+ | "font.size.body"
64
66
  | "font.size.lg"
65
67
  | "font.size.xl"
66
68
  | "font.size.2xl"
package/dist/js/tokens.js CHANGED
@@ -7,8 +7,9 @@ export const tokens = {
7
7
  "color.surface.raised": "#ffffff",
8
8
  "color.surface.subtle": "#f4f4f4",
9
9
  "color.surface.overlay": "#ffffff",
10
- "color.action.primary.bg": "#702faa",
11
- "color.action.primary.bg-hover": "#582488",
10
+ "color.overlay.scrim": "#0a0a0a",
11
+ "color.action.primary.bg": "#0458a1",
12
+ "color.action.primary.bg-hover": "#034580",
12
13
  "color.action.secondary.bg": "#ffffff",
13
14
  "color.action.secondary.bg-hover": "#f4f4f4",
14
15
  "color.action.ghost.bg-hover": "#f4f4f4",
@@ -17,28 +18,28 @@ export const tokens = {
17
18
  "color.status.success.bg": "#eefbf1",
18
19
  "color.status.warning.bg": "#fff5ea",
19
20
  "color.status.error.bg": "#fff4f2",
20
- "color.status.info.bg": "#f9f5ff",
21
+ "color.status.info.bg": "#f1f7ff",
21
22
  "color.text.default": "#0a0a0a",
22
23
  "color.text.secondary": "#525252",
23
24
  "color.text.placeholder": "#525252",
24
- "color.text.link": "#582488",
25
+ "color.text.link": "#034580",
25
26
  "color.text.on-primary": "#ffffff",
26
27
  "color.text.on-destructive": "#ffffff",
27
28
  "color.text.success": "#005428",
28
29
  "color.text.warning": "#613c00",
29
30
  "color.text.error": "#811316",
30
- "color.text.info": "#582488",
31
+ "color.text.info": "#034580",
31
32
  "color.border.input": "#737373",
32
33
  "color.border.input-invalid": "#a21a1e",
33
34
  "color.border.default": "#e5e5e5",
34
35
  "color.border.status.success": "#8bd5a0",
35
36
  "color.border.status.warning": "#ecb573",
36
37
  "color.border.status.error": "#ffa69d",
37
- "color.border.status.info": "#d1aeff",
38
+ "color.border.status.info": "#93c5ff",
38
39
  "color.icon.default": "#525252",
39
- "color.icon.brand": "#8e3fd6",
40
- "color.focus.ring": "#8e3fd6",
41
- "color.chart.series-1": "#8e3fd6",
40
+ "color.icon.brand": "#2883de",
41
+ "color.focus.ring": "#2883de",
42
+ "color.chart.series-1": "#2883de",
42
43
  "color.chart.series-2": "#b87600",
43
44
  "color.chart.series-3": "#525252",
44
45
  "color.chart.series-4": "#008241",
@@ -57,11 +58,12 @@ export const tokens = {
57
58
  "space.xl": "2rem",
58
59
  "space.2xl": "3rem",
59
60
  "space.3xl": "4rem",
60
- "font.family.sans": "\"Noto Sans Variable\", \"Noto Sans\", system-ui, sans-serif",
61
+ "font.family.sans": "\"Geist Variable\", Geist, system-ui, sans-serif",
61
62
  "font.family.mono": "ui-monospace, SFMono-Regular, Menlo, monospace",
62
63
  "font.size.xs": "0.75rem",
63
64
  "font.size.sm": "0.875rem",
64
65
  "font.size.md": "1rem",
66
+ "font.size.body": "0.875rem",
65
67
  "font.size.lg": "1.125rem",
66
68
  "font.size.xl": "1.25rem",
67
69
  "font.size.2xl": "1.5rem",
@@ -95,8 +97,9 @@ export const tokens = {
95
97
  "color.surface.raised": "#171717",
96
98
  "color.surface.subtle": "#1e1e1e",
97
99
  "color.surface.overlay": "#171717",
98
- "color.action.primary.bg": "#bd84ff",
99
- "color.action.primary.bg-hover": "#d1aeff",
100
+ "color.overlay.scrim": "#0a0a0a",
101
+ "color.action.primary.bg": "#5ca8fc",
102
+ "color.action.primary.bg-hover": "#93c5ff",
100
103
  "color.action.secondary.bg": "#171717",
101
104
  "color.action.secondary.bg-hover": "#1e1e1e",
102
105
  "color.action.ghost.bg-hover": "#1e1e1e",
@@ -105,28 +108,28 @@ export const tokens = {
105
108
  "color.status.success.bg": "#002a11",
106
109
  "color.status.warning.bg": "#311c00",
107
110
  "color.status.error.bg": "#460104",
108
- "color.status.info.bg": "#2e0b4b",
111
+ "color.status.info.bg": "#002244",
109
112
  "color.text.default": "#fafafa",
110
113
  "color.text.secondary": "#d4d4d4",
111
114
  "color.text.placeholder": "#d4d4d4",
112
- "color.text.link": "#d1aeff",
115
+ "color.text.link": "#93c5ff",
113
116
  "color.text.on-primary": "#0a0a0a",
114
117
  "color.text.on-destructive": "#0a0a0a",
115
118
  "color.text.success": "#8bd5a0",
116
119
  "color.text.warning": "#ecb573",
117
120
  "color.text.error": "#ffa69d",
118
- "color.text.info": "#d1aeff",
121
+ "color.text.info": "#93c5ff",
119
122
  "color.border.input": "#737373",
120
123
  "color.border.input-invalid": "#ff7269",
121
124
  "color.border.default": "#262626",
122
125
  "color.border.status.success": "#006a34",
123
126
  "color.border.status.warning": "#7a4d00",
124
127
  "color.border.status.error": "#a21a1e",
125
- "color.border.status.info": "#702faa",
128
+ "color.border.status.info": "#0458a1",
126
129
  "color.icon.default": "#a1a1a1",
127
- "color.icon.brand": "#8e3fd6",
128
- "color.focus.ring": "#bd84ff",
129
- "color.chart.series-1": "#bd84ff",
130
+ "color.icon.brand": "#2883de",
131
+ "color.focus.ring": "#5ca8fc",
132
+ "color.chart.series-1": "#5ca8fc",
130
133
  "color.chart.series-2": "#d99435",
131
134
  "color.chart.series-3": "#a1a1a1",
132
135
  "color.chart.series-4": "#59bd7a",
@@ -145,11 +148,12 @@ export const tokens = {
145
148
  "space.xl": "2rem",
146
149
  "space.2xl": "3rem",
147
150
  "space.3xl": "4rem",
148
- "font.family.sans": "\"Noto Sans Variable\", \"Noto Sans\", system-ui, sans-serif",
151
+ "font.family.sans": "\"Geist Variable\", Geist, system-ui, sans-serif",
149
152
  "font.family.mono": "ui-monospace, SFMono-Regular, Menlo, monospace",
150
153
  "font.size.xs": "0.75rem",
151
154
  "font.size.sm": "0.875rem",
152
155
  "font.size.md": "1rem",
156
+ "font.size.body": "0.875rem",
153
157
  "font.size.lg": "1.125rem",
154
158
  "font.size.xl": "1.25rem",
155
159
  "font.size.2xl": "1.5rem",
@@ -183,8 +187,9 @@ export const tokens = {
183
187
  "color.surface.raised": "#ffffff",
184
188
  "color.surface.subtle": "#fafafa",
185
189
  "color.surface.overlay": "#ffffff",
186
- "color.action.primary.bg": "#421868",
187
- "color.action.primary.bg-hover": "#2e0b4b",
190
+ "color.overlay.scrim": "#0a0a0a",
191
+ "color.action.primary.bg": "#003362",
192
+ "color.action.primary.bg-hover": "#002244",
188
193
  "color.action.secondary.bg": "#ffffff",
189
194
  "color.action.secondary.bg-hover": "#f4f4f4",
190
195
  "color.action.ghost.bg-hover": "#f4f4f4",
@@ -193,28 +198,28 @@ export const tokens = {
193
198
  "color.status.success.bg": "#eefbf1",
194
199
  "color.status.warning.bg": "#fff5ea",
195
200
  "color.status.error.bg": "#fff4f2",
196
- "color.status.info.bg": "#f9f5ff",
201
+ "color.status.info.bg": "#f1f7ff",
197
202
  "color.text.default": "#000000",
198
203
  "color.text.secondary": "#262626",
199
204
  "color.text.placeholder": "#262626",
200
- "color.text.link": "#421868",
205
+ "color.text.link": "#003362",
201
206
  "color.text.on-primary": "#ffffff",
202
207
  "color.text.on-destructive": "#ffffff",
203
208
  "color.text.success": "#003e1c",
204
209
  "color.text.warning": "#482c00",
205
210
  "color.text.error": "#620a0d",
206
- "color.text.info": "#421868",
211
+ "color.text.info": "#003362",
207
212
  "color.border.input": "#0a0a0a",
208
213
  "color.border.input-invalid": "#620a0d",
209
214
  "color.border.default": "#404040",
210
215
  "color.border.status.success": "#005428",
211
216
  "color.border.status.warning": "#613c00",
212
217
  "color.border.status.error": "#811316",
213
- "color.border.status.info": "#582488",
218
+ "color.border.status.info": "#034580",
214
219
  "color.icon.default": "#171717",
215
- "color.icon.brand": "#702faa",
220
+ "color.icon.brand": "#0458a1",
216
221
  "color.focus.ring": "#000000",
217
- "color.chart.series-1": "#702faa",
222
+ "color.chart.series-1": "#0458a1",
218
223
  "color.chart.series-2": "#7a4d00",
219
224
  "color.chart.series-3": "#262626",
220
225
  "color.chart.series-4": "#005428",
@@ -233,11 +238,12 @@ export const tokens = {
233
238
  "space.xl": "2rem",
234
239
  "space.2xl": "3rem",
235
240
  "space.3xl": "4rem",
236
- "font.family.sans": "\"Noto Sans Variable\", \"Noto Sans\", system-ui, sans-serif",
241
+ "font.family.sans": "\"Geist Variable\", Geist, system-ui, sans-serif",
237
242
  "font.family.mono": "ui-monospace, SFMono-Regular, Menlo, monospace",
238
243
  "font.size.xs": "0.75rem",
239
244
  "font.size.sm": "0.875rem",
240
245
  "font.size.md": "1rem",
246
+ "font.size.body": "0.875rem",
241
247
  "font.size.lg": "1.125rem",
242
248
  "font.size.xl": "1.25rem",
243
249
  "font.size.2xl": "1.5rem",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graftwork/tokens",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Graftwork design tokens: CSS variables, a Tailwind v4 theme and JS constants",
5
5
  "license": "MIT",
6
6
  "homepage": "https://graftwork-studio.github.io/design-system/",
@@ -7,121 +7,121 @@
7
7
  "$value": {
8
8
  "colorSpace": "srgb",
9
9
  "components": [
10
- 0.9765,
11
- 0.9608,
10
+ 0.9451,
11
+ 0.9686,
12
12
  1
13
13
  ],
14
- "hex": "#f9f5ff"
14
+ "hex": "#f1f7ff"
15
15
  }
16
16
  },
17
17
  "100": {
18
18
  "$value": {
19
19
  "colorSpace": "srgb",
20
20
  "components": [
21
- 0.9451,
22
- 0.9098,
21
+ 0.8784,
22
+ 0.9333,
23
23
  1
24
24
  ],
25
- "hex": "#f1e8ff"
25
+ "hex": "#e0eeff"
26
26
  }
27
27
  },
28
28
  "200": {
29
29
  "$value": {
30
30
  "colorSpace": "srgb",
31
31
  "components": [
32
- 0.8941,
33
- 0.8196,
32
+ 0.7569,
33
+ 0.8706,
34
34
  1
35
35
  ],
36
- "hex": "#e4d1ff"
36
+ "hex": "#c1deff"
37
37
  }
38
38
  },
39
39
  "300": {
40
40
  "$value": {
41
41
  "colorSpace": "srgb",
42
42
  "components": [
43
- 0.8196,
44
- 0.6824,
43
+ 0.5765,
44
+ 0.7725,
45
45
  1
46
46
  ],
47
- "hex": "#d1aeff"
47
+ "hex": "#93c5ff"
48
48
  }
49
49
  },
50
50
  "400": {
51
51
  "$value": {
52
52
  "colorSpace": "srgb",
53
53
  "components": [
54
- 0.7412,
55
- 0.5176,
56
- 1
54
+ 0.3608,
55
+ 0.6588,
56
+ 0.9882
57
57
  ],
58
- "hex": "#bd84ff"
58
+ "hex": "#5ca8fc"
59
59
  }
60
60
  },
61
61
  "500": {
62
62
  "$value": {
63
63
  "colorSpace": "srgb",
64
64
  "components": [
65
- 0.5569,
66
- 0.2471,
67
- 0.8392
65
+ 0.1569,
66
+ 0.5137,
67
+ 0.8706
68
68
  ],
69
- "hex": "#8e3fd6"
69
+ "hex": "#2883de"
70
70
  }
71
71
  },
72
72
  "600": {
73
73
  "$value": {
74
74
  "colorSpace": "srgb",
75
75
  "components": [
76
- 0.5294,
77
- 0.2431,
78
- 0.7961
76
+ 0.0667,
77
+ 0.4235,
78
+ 0.7569
79
79
  ],
80
- "hex": "#873ecb"
80
+ "hex": "#116cc1"
81
81
  }
82
82
  },
83
83
  "700": {
84
84
  "$value": {
85
85
  "colorSpace": "srgb",
86
86
  "components": [
87
- 0.4392,
88
- 0.1843,
89
- 0.6667
87
+ 0.0157,
88
+ 0.3451,
89
+ 0.6314
90
90
  ],
91
- "hex": "#702faa"
91
+ "hex": "#0458a1"
92
92
  }
93
93
  },
94
94
  "800": {
95
95
  "$value": {
96
96
  "colorSpace": "srgb",
97
97
  "components": [
98
- 0.3451,
99
- 0.1412,
100
- 0.5333
98
+ 0.0118,
99
+ 0.2706,
100
+ 0.502
101
101
  ],
102
- "hex": "#582488"
102
+ "hex": "#034580"
103
103
  }
104
104
  },
105
105
  "900": {
106
106
  "$value": {
107
107
  "colorSpace": "srgb",
108
108
  "components": [
109
- 0.2588,
110
- 0.0941,
111
- 0.4078
109
+ 0,
110
+ 0.2,
111
+ 0.3843
112
112
  ],
113
- "hex": "#421868"
113
+ "hex": "#003362"
114
114
  }
115
115
  },
116
116
  "950": {
117
117
  "$value": {
118
118
  "colorSpace": "srgb",
119
119
  "components": [
120
- 0.1804,
121
- 0.0431,
122
- 0.2941
120
+ 0,
121
+ 0.1333,
122
+ 0.2667
123
123
  ],
124
- "hex": "#2e0b4b"
124
+ "hex": "#002244"
125
125
  }
126
126
  }
127
127
  },
@@ -55,12 +55,12 @@
55
55
  "$type": "fontFamily",
56
56
  "sans": {
57
57
  "$value": [
58
- "Noto Sans Variable",
59
- "Noto Sans",
58
+ "Geist Variable",
59
+ "Geist",
60
60
  "system-ui",
61
61
  "sans-serif"
62
62
  ],
63
- "$description": "Loaded from @fontsource-variable/noto-sans. Never from Google's servers."
63
+ "$description": "Loaded from @fontsource-variable/geist. Never from Google's servers."
64
64
  },
65
65
  "mono": {
66
66
  "$value": [
@@ -81,7 +81,11 @@
81
81
  },
82
82
  "md": {
83
83
  "$value": "{font-size.100}",
84
- "$description": "Body text."
84
+ "$description": "Form controls and buttons. Stays at 16px so iOS Safari doesn't zoom into inputs on focus."
85
+ },
86
+ "body": {
87
+ "$value": "{font-size.0875}",
88
+ "$description": "Body text: 14px at the browser default. Applied to body; the html root stays at 100% so rem follows the user's font setting."
85
89
  },
86
90
  "lg": {
87
91
  "$value": "{font-size.1125}"
@@ -40,6 +40,19 @@
40
40
  }
41
41
  }
42
42
  },
43
+ "overlay": {
44
+ "$type": "color",
45
+ "$description": "Dark theme. overlay tokens.",
46
+ "scrim": {
47
+ "$value": "{color.neutral.950}",
48
+ "$description": "Behind modal dialogs and sheets. Use at reduced opacity, e.g. bg-overlay-scrim/60. Never text or a surface.",
49
+ "$extensions": {
50
+ "studio.graftwork": {
51
+ "role": "decorative"
52
+ }
53
+ }
54
+ }
55
+ },
43
56
  "action": {
44
57
  "$type": "color",
45
58
  "$description": "Dark theme. action tokens.",
@@ -40,6 +40,19 @@
40
40
  }
41
41
  }
42
42
  },
43
+ "overlay": {
44
+ "$type": "color",
45
+ "$description": "High-contrast theme. overlay tokens.",
46
+ "scrim": {
47
+ "$value": "{color.neutral.950}",
48
+ "$description": "Behind modal dialogs and sheets. Use at reduced opacity, e.g. bg-overlay-scrim/60. Never text or a surface.",
49
+ "$extensions": {
50
+ "studio.graftwork": {
51
+ "role": "decorative"
52
+ }
53
+ }
54
+ }
55
+ },
43
56
  "action": {
44
57
  "$type": "color",
45
58
  "$description": "High-contrast theme (light base). action tokens.",
@@ -40,6 +40,19 @@
40
40
  }
41
41
  }
42
42
  },
43
+ "overlay": {
44
+ "$type": "color",
45
+ "$description": "Light theme. overlay tokens.",
46
+ "scrim": {
47
+ "$value": "{color.neutral.950}",
48
+ "$description": "Behind modal dialogs and sheets. Use at reduced opacity, e.g. bg-overlay-scrim/60. Never text or a surface.",
49
+ "$extensions": {
50
+ "studio.graftwork": {
51
+ "role": "decorative"
52
+ }
53
+ }
54
+ }
55
+ },
43
56
  "action": {
44
57
  "$type": "color",
45
58
  "$description": "Light theme. action tokens.",