@terpjs/contract 0.30.0 → 0.32.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/src/tokens.css CHANGED
@@ -22,29 +22,33 @@
22
22
  --color-neutral-300: #bcc6d6;
23
23
  --color-neutral-400: #8d99ad;
24
24
  --color-neutral-500: #64748b;
25
- --color-neutral-600: #475569;
25
+ --color-neutral-600: #445165;
26
26
  --color-neutral-700: #334155;
27
27
  --color-neutral-800: #1e293b;
28
28
  --color-neutral-900: #0f172a;
29
- --color-status-success: #15803d;
29
+ --color-status-success: #137538;
30
30
  --color-status-success-soft: #f0fdf4;
31
- --color-status-warning: #b45309;
31
+ --color-status-warning: #a74d08;
32
32
  --color-status-warning-soft: #fffbeb;
33
- --color-status-danger: #b91c1c;
33
+ --color-status-danger: #aa1a1a;
34
34
  --color-status-danger-soft: #fef2f2;
35
- --color-status-info: #0369a1;
35
+ --color-status-danger-fill: #b91c1c;
36
+ --color-status-danger-fill-contrast: #ffffff;
37
+ --color-status-info: #0368a0;
36
38
  --color-status-info-soft: #f0f9ff;
37
39
  --color-focus-ring: rgba(37,99,235,0.35);
38
40
  --color-bg-canvas: #eef1f6;
41
+ --color-bg-subtle: #f7f8fb;
39
42
  --color-bg-surface: #ffffff;
40
43
  --color-bg-raised: #ffffff;
41
44
  --color-bg-inset: #e5eaf2;
45
+ --color-bg-summary: #e4edfd;
42
46
  --color-fg-default: #0f172a;
43
- --color-fg-muted: #475569;
47
+ --color-fg-muted: #445165;
44
48
  --color-fg-subtle: #56647a;
45
- --color-fg-accent: #1d4ed8;
49
+ --color-fg-accent: #1a46c3;
46
50
  --color-border-default: #d8dfea;
47
- --color-border-strong: #bcc6d6;
51
+ --color-border-strong: #848b97;
48
52
  --color-border-subtle: #e5eaf2;
49
53
  --color-interactive-hover: #e5eaf2;
50
54
  --color-interactive-active: #d8dfea;
@@ -140,8 +144,69 @@
140
144
  --font-letter-spacing-wide: 0.08em;
141
145
  }
142
146
 
143
- /* Dark: an explicit choice via <html data-theme="dark">.
144
- The slate-neutral dark counterpart to light, and the theme the OS dark preference selects. */
147
+ /* Twilight: an explicit choice via <html data-theme="twilight">.
148
+ A dimmed violet dark between midday and evening: light text on violet-grey surfaces well above evening's near-black, for a room that is getting dark rather than one that is. */
149
+ [data-theme='twilight'] {
150
+ color-scheme: dark;
151
+ --appearance-show-light: none;
152
+ --appearance-show-dark: block;
153
+ --color-brand-primary: #6d3fc8;
154
+ --color-brand-primary-contrast: #ffffff;
155
+ --color-brand-primary-hover: #7c4fd6;
156
+ --color-brand-primary-soft: #4b3f72;
157
+ --color-neutral-0: #3a3449;
158
+ --color-neutral-50: #312c3f;
159
+ --color-neutral-100: #453e57;
160
+ --color-neutral-200: #534b68;
161
+ --color-neutral-300: #675e80;
162
+ --color-neutral-400: #8579a3;
163
+ --color-neutral-500: #b2a6ca;
164
+ --color-neutral-600: #e2ddec;
165
+ --color-neutral-700: #e6e0ef;
166
+ --color-neutral-800: #f1edf7;
167
+ --color-neutral-900: #faf8fc;
168
+ --color-status-success: #a1ecc7;
169
+ --color-status-success-soft: #24493a;
170
+ --color-status-warning: #f7d79a;
171
+ --color-status-warning-soft: #4e3d1f;
172
+ --color-status-danger: #fccbce;
173
+ --color-status-danger-soft: #572836;
174
+ --color-status-danger-fill: #b91c1c;
175
+ --color-status-danger-fill-contrast: #ffffff;
176
+ --color-status-info: #c1e0fa;
177
+ --color-status-info-soft: #284261;
178
+ --color-focus-ring: rgba(188,166,255,0.5);
179
+ --color-bg-canvas: #312c3f;
180
+ --color-bg-subtle: #363044;
181
+ --color-bg-surface: #3a3449;
182
+ --color-bg-raised: #453e57;
183
+ --color-bg-inset: #312c3f;
184
+ --color-bg-summary: #4b3f72;
185
+ --color-fg-default: #faf8fc;
186
+ --color-fg-muted: #e2ddec;
187
+ --color-fg-subtle: #cbc2df;
188
+ --color-fg-accent: #e3daff;
189
+ --color-border-default: #534b68;
190
+ --color-border-strong: #8f89a2;
191
+ --color-border-subtle: #453e57;
192
+ --color-interactive-hover: #453e57;
193
+ --color-interactive-active: #534b68;
194
+ --color-interactive-selected: #4b3f72;
195
+ --color-sidebar-bg: #3a3449;
196
+ --color-sidebar-fg: #faf8fc;
197
+ --color-sidebar-muted: #dbd4e8;
198
+ --color-sidebar-accent: #534b68;
199
+ --color-sidebar-border: #534b68;
200
+ --color-chart-1: #c4b0ff;
201
+ --color-chart-2: #74e3ad;
202
+ --color-chart-3: #f2c164;
203
+ --color-chart-4: #92c8f6;
204
+ --color-chart-5: #f7a0d4;
205
+ }
206
+
207
+ /* Evening: an explicit choice via <html data-theme="evening">, or its earlier name "dark".
208
+ The slate-neutral dark counterpart to midday. */
209
+ [data-theme='evening'],
145
210
  [data-theme='dark'] {
146
211
  color-scheme: dark;
147
212
  --appearance-show-light: none;
@@ -157,36 +222,40 @@
157
222
  --color-neutral-300: #475569;
158
223
  --color-neutral-400: #64748b;
159
224
  --color-neutral-500: #94a3b8;
160
- --color-neutral-600: #b4c0d0;
225
+ --color-neutral-600: #ced6e0;
161
226
  --color-neutral-700: #e2e8f0;
162
227
  --color-neutral-800: #f1f5f9;
163
228
  --color-neutral-900: #f1f5f9;
164
- --color-status-success: #4ade80;
229
+ --color-status-success: #79e7a1;
165
230
  --color-status-success-soft: #132f21;
166
- --color-status-warning: #fbbf24;
231
+ --color-status-warning: #fccb4b;
167
232
  --color-status-warning-soft: #332711;
168
- --color-status-danger: #f87171;
233
+ --color-status-danger: #fcc3c3;
169
234
  --color-status-danger-soft: #3b1a1a;
170
- --color-status-info: #38bdf8;
235
+ --color-status-danger-fill: #b91c1c;
236
+ --color-status-danger-fill-contrast: #ffffff;
237
+ --color-status-info: #96dcfb;
171
238
  --color-status-info-soft: #12303f;
172
239
  --color-focus-ring: rgba(96,165,250,0.45);
173
240
  --color-bg-canvas: #0f172a;
241
+ --color-bg-subtle: #172033;
174
242
  --color-bg-surface: #1e293b;
175
243
  --color-bg-raised: #263449;
176
244
  --color-bg-inset: #0f172a;
245
+ --color-bg-summary: #15304e;
177
246
  --color-fg-default: #f1f5f9;
178
- --color-fg-muted: #b4c0d0;
179
- --color-fg-subtle: #94a3b8;
180
- --color-fg-accent: #60a5fa;
247
+ --color-fg-muted: #ced6e0;
248
+ --color-fg-subtle: #b0bbca;
249
+ --color-fg-accent: #b7d6fd;
181
250
  --color-border-default: #334155;
182
- --color-border-strong: #475569;
251
+ --color-border-strong: #727d8c;
183
252
  --color-border-subtle: #263449;
184
253
  --color-interactive-hover: #263449;
185
254
  --color-interactive-active: #334155;
186
255
  --color-interactive-selected: #15304e;
187
256
  --color-sidebar-bg: #1e293b;
188
257
  --color-sidebar-fg: #f1f5f9;
189
- --color-sidebar-muted: #b4c0d0;
258
+ --color-sidebar-muted: #c9d2dd;
190
259
  --color-sidebar-accent: #334155;
191
260
  --color-sidebar-border: #334155;
192
261
  --color-chart-1: #60a5fa;
@@ -196,8 +265,9 @@
196
265
  --color-chart-5: #f472b6;
197
266
  }
198
267
 
199
- /* Midnight: an explicit choice via <html data-theme="midnight">.
200
- A near-black dark for low light and OLED displays: cooler neutrals, a deeper canvas than dark, and a deeper accent that holds a white label at AA. */
268
+ /* Night: an explicit choice via <html data-theme="night">, or its earlier name "midnight".
269
+ A near-black dark for low light and OLED displays: cooler neutrals, a deeper canvas than evening, and a deeper accent that holds a white label at AA. The theme the OS dark preference selects. */
270
+ [data-theme='night'],
201
271
  [data-theme='midnight'] {
202
272
  color-scheme: dark;
203
273
  --appearance-show-light: none;
@@ -213,36 +283,40 @@
213
283
  --color-neutral-300: #30363d;
214
284
  --color-neutral-400: #484f58;
215
285
  --color-neutral-500: #7d8590;
216
- --color-neutral-600: #9aa4b2;
217
- --color-neutral-700: #c9d1d9;
218
- --color-neutral-800: #e6edf3;
219
- --color-neutral-900: #f0f6fc;
220
- --color-status-success: #3fb950;
286
+ --color-neutral-600: #d0d5db;
287
+ --color-neutral-700: #dbe0e6;
288
+ --color-neutral-800: #e0e6ec;
289
+ --color-neutral-900: #e6ecf2;
290
+ --color-status-success: #a1dda9;
221
291
  --color-status-success-soft: #0c2417;
222
- --color-status-warning: #d29922;
292
+ --color-status-warning: #e8cb8d;
223
293
  --color-status-warning-soft: #271a06;
224
- --color-status-danger: #f85149;
294
+ --color-status-danger: #fcbebb;
225
295
  --color-status-danger-soft: #2b0d0d;
226
- --color-status-info: #58a6ff;
296
+ --color-status-danger-fill: #b91c1c;
297
+ --color-status-danger-fill-contrast: #ffffff;
298
+ --color-status-info: #aed4ff;
227
299
  --color-status-info-soft: #0b2545;
228
300
  --color-focus-ring: rgba(88,166,255,0.5);
229
301
  --color-bg-canvas: #010409;
302
+ --color-bg-subtle: #070b10;
230
303
  --color-bg-surface: #0d1117;
231
304
  --color-bg-raised: #161b22;
232
305
  --color-bg-inset: #010409;
233
- --color-fg-default: #f0f6fc;
234
- --color-fg-muted: #9aa4b2;
235
- --color-fg-subtle: #8b949e;
236
- --color-fg-accent: #58a6ff;
306
+ --color-bg-summary: #0d1d34;
307
+ --color-fg-default: #e6ecf2;
308
+ --color-fg-muted: #d0d5db;
309
+ --color-fg-subtle: #b3b9bf;
310
+ --color-fg-accent: #b5d8ff;
237
311
  --color-border-default: #30363d;
238
- --color-border-strong: #484f58;
312
+ --color-border-strong: #61676e;
239
313
  --color-border-subtle: #21262d;
240
314
  --color-interactive-hover: #161b22;
241
315
  --color-interactive-active: #21262d;
242
316
  --color-interactive-selected: #0c2d6b;
243
317
  --color-sidebar-bg: #0d1117;
244
318
  --color-sidebar-fg: #f0f6fc;
245
- --color-sidebar-muted: #9aa4b2;
319
+ --color-sidebar-muted: #c7cdd4;
246
320
  --color-sidebar-accent: #21262d;
247
321
  --color-sidebar-border: #21262d;
248
322
  --color-chart-1: #58a6ff;
@@ -252,62 +326,6 @@
252
326
  --color-chart-5: #f778ba;
253
327
  }
254
328
 
255
- /* Twilight: an explicit choice via <html data-theme="twilight">.
256
- A warm violet-tinted dark. Its neutrals sit in a different hue family from dark and midnight, which is what proves a theme is a palette rather than a lightness setting. */
257
- [data-theme='twilight'] {
258
- color-scheme: dark;
259
- --appearance-show-light: none;
260
- --appearance-show-dark: block;
261
- --color-brand-primary: #5b21b6;
262
- --color-brand-primary-contrast: #ffffff;
263
- --color-brand-primary-hover: #6d28d9;
264
- --color-brand-primary-soft: #2b2350;
265
- --color-neutral-0: #241f31;
266
- --color-neutral-50: #1a1622;
267
- --color-neutral-100: #2d2740;
268
- --color-neutral-200: #3a3350;
269
- --color-neutral-300: #4d4468;
270
- --color-neutral-400: #6b5f8a;
271
- --color-neutral-500: #9d90b8;
272
- --color-neutral-600: #b9aecd;
273
- --color-neutral-700: #d8d0e6;
274
- --color-neutral-800: #ece7f3;
275
- --color-neutral-900: #f6f3fa;
276
- --color-status-success: #5ed49a;
277
- --color-status-success-soft: #14322a;
278
- --color-status-warning: #e8b04b;
279
- --color-status-warning-soft: #332612;
280
- --color-status-danger: #f58a92;
281
- --color-status-danger-soft: #3a1a25;
282
- --color-status-info: #7cb8f0;
283
- --color-status-info-soft: #1a2c44;
284
- --color-focus-ring: rgba(167,139,250,0.5);
285
- --color-bg-canvas: #1a1622;
286
- --color-bg-surface: #241f31;
287
- --color-bg-raised: #2d2740;
288
- --color-bg-inset: #1a1622;
289
- --color-fg-default: #f6f3fa;
290
- --color-fg-muted: #b9aecd;
291
- --color-fg-subtle: #a294bd;
292
- --color-fg-accent: #a78bfa;
293
- --color-border-default: #3a3350;
294
- --color-border-strong: #4d4468;
295
- --color-border-subtle: #2d2740;
296
- --color-interactive-hover: #2d2740;
297
- --color-interactive-active: #3a3350;
298
- --color-interactive-selected: #2b2350;
299
- --color-sidebar-bg: #241f31;
300
- --color-sidebar-fg: #f6f3fa;
301
- --color-sidebar-muted: #b9aecd;
302
- --color-sidebar-accent: #3a3350;
303
- --color-sidebar-border: #3a3350;
304
- --color-chart-1: #a78bfa;
305
- --color-chart-2: #5ed49a;
306
- --color-chart-3: #e8b04b;
307
- --color-chart-4: #7cb8f0;
308
- --color-chart-5: #f58ac8;
309
- }
310
-
311
329
  /* High contrast: an explicit choice via <html data-theme="contrast">.
312
330
  A high-contrast light theme: white surfaces, near-black text, darkened accents and visible borders. Every declared text pairing reaches AAA, not just AA. Not wired to `prefers-contrast: more` — that needs a dark high-contrast counterpart first, or a user who asked for both more contrast and dark would be handed a light theme. */
313
331
  [data-theme='contrast'] {
@@ -335,19 +353,23 @@
335
353
  --color-status-warning-soft: #fdf1e0;
336
354
  --color-status-danger: #96000c;
337
355
  --color-status-danger-soft: #fce8e8;
356
+ --color-status-danger-fill: #96000c;
357
+ --color-status-danger-fill-contrast: #ffffff;
338
358
  --color-status-info: #0b4a8f;
339
359
  --color-status-info-soft: #e5f0fb;
340
360
  --color-focus-ring: rgba(8,66,160,0.7);
341
361
  --color-bg-canvas: #ffffff;
362
+ --color-bg-subtle: #ffffff;
342
363
  --color-bg-surface: #ffffff;
343
364
  --color-bg-raised: #ffffff;
344
365
  --color-bg-inset: #f2f2f2;
366
+ --color-bg-summary: #e8f0fe;
345
367
  --color-fg-default: #000000;
346
368
  --color-fg-muted: #141414;
347
369
  --color-fg-subtle: #1f1f1f;
348
370
  --color-fg-accent: #0842a0;
349
371
  --color-border-default: #595959;
350
- --color-border-strong: #000000;
372
+ --color-border-strong: #404040;
351
373
  --color-border-subtle: #767676;
352
374
  --color-interactive-hover: #f2f2f2;
353
375
  --color-interactive-active: #e0e0e0;
@@ -364,59 +386,63 @@
364
386
  --color-chart-5: #8c0a4d;
365
387
  }
366
388
 
367
- /* Dark: the OS preference, unless the app pinned any theme explicitly. */
389
+ /* Night: the OS preference, unless the app pinned any theme explicitly. */
368
390
  @media (prefers-color-scheme: dark) {
369
391
  :root:not([data-theme]) {
370
392
  color-scheme: dark;
371
393
  --appearance-show-light: none;
372
394
  --appearance-show-dark: block;
373
- --color-brand-primary: #1d4ed8;
395
+ --color-brand-primary: #0b4ea8;
374
396
  --color-brand-primary-contrast: #ffffff;
375
- --color-brand-primary-hover: #2563eb;
376
- --color-brand-primary-soft: #15304e;
377
- --color-neutral-0: #1e293b;
378
- --color-neutral-50: #0f172a;
379
- --color-neutral-100: #263449;
380
- --color-neutral-200: #334155;
381
- --color-neutral-300: #475569;
382
- --color-neutral-400: #64748b;
383
- --color-neutral-500: #94a3b8;
384
- --color-neutral-600: #b4c0d0;
385
- --color-neutral-700: #e2e8f0;
386
- --color-neutral-800: #f1f5f9;
387
- --color-neutral-900: #f1f5f9;
388
- --color-status-success: #4ade80;
389
- --color-status-success-soft: #132f21;
390
- --color-status-warning: #fbbf24;
391
- --color-status-warning-soft: #332711;
392
- --color-status-danger: #f87171;
393
- --color-status-danger-soft: #3b1a1a;
394
- --color-status-info: #38bdf8;
395
- --color-status-info-soft: #12303f;
396
- --color-focus-ring: rgba(96,165,250,0.45);
397
- --color-bg-canvas: #0f172a;
398
- --color-bg-surface: #1e293b;
399
- --color-bg-raised: #263449;
400
- --color-bg-inset: #0f172a;
401
- --color-fg-default: #f1f5f9;
402
- --color-fg-muted: #b4c0d0;
403
- --color-fg-subtle: #94a3b8;
404
- --color-fg-accent: #60a5fa;
405
- --color-border-default: #334155;
406
- --color-border-strong: #475569;
407
- --color-border-subtle: #263449;
408
- --color-interactive-hover: #263449;
409
- --color-interactive-active: #334155;
410
- --color-interactive-selected: #15304e;
411
- --color-sidebar-bg: #1e293b;
412
- --color-sidebar-fg: #f1f5f9;
413
- --color-sidebar-muted: #b4c0d0;
414
- --color-sidebar-accent: #334155;
415
- --color-sidebar-border: #334155;
416
- --color-chart-1: #60a5fa;
417
- --color-chart-2: #2dd4bf;
418
- --color-chart-3: #fbbf24;
419
- --color-chart-4: #a78bfa;
420
- --color-chart-5: #f472b6;
397
+ --color-brand-primary-hover: #1158c7;
398
+ --color-brand-primary-soft: #0c2d6b;
399
+ --color-neutral-0: #0d1117;
400
+ --color-neutral-50: #010409;
401
+ --color-neutral-100: #161b22;
402
+ --color-neutral-200: #21262d;
403
+ --color-neutral-300: #30363d;
404
+ --color-neutral-400: #484f58;
405
+ --color-neutral-500: #7d8590;
406
+ --color-neutral-600: #d0d5db;
407
+ --color-neutral-700: #dbe0e6;
408
+ --color-neutral-800: #e0e6ec;
409
+ --color-neutral-900: #e6ecf2;
410
+ --color-status-success: #a1dda9;
411
+ --color-status-success-soft: #0c2417;
412
+ --color-status-warning: #e8cb8d;
413
+ --color-status-warning-soft: #271a06;
414
+ --color-status-danger: #fcbebb;
415
+ --color-status-danger-soft: #2b0d0d;
416
+ --color-status-danger-fill: #b91c1c;
417
+ --color-status-danger-fill-contrast: #ffffff;
418
+ --color-status-info: #aed4ff;
419
+ --color-status-info-soft: #0b2545;
420
+ --color-focus-ring: rgba(88,166,255,0.5);
421
+ --color-bg-canvas: #010409;
422
+ --color-bg-subtle: #070b10;
423
+ --color-bg-surface: #0d1117;
424
+ --color-bg-raised: #161b22;
425
+ --color-bg-inset: #010409;
426
+ --color-bg-summary: #0d1d34;
427
+ --color-fg-default: #e6ecf2;
428
+ --color-fg-muted: #d0d5db;
429
+ --color-fg-subtle: #b3b9bf;
430
+ --color-fg-accent: #b5d8ff;
431
+ --color-border-default: #30363d;
432
+ --color-border-strong: #61676e;
433
+ --color-border-subtle: #21262d;
434
+ --color-interactive-hover: #161b22;
435
+ --color-interactive-active: #21262d;
436
+ --color-interactive-selected: #0c2d6b;
437
+ --color-sidebar-bg: #0d1117;
438
+ --color-sidebar-fg: #f0f6fc;
439
+ --color-sidebar-muted: #c7cdd4;
440
+ --color-sidebar-accent: #21262d;
441
+ --color-sidebar-border: #21262d;
442
+ --color-chart-1: #58a6ff;
443
+ --color-chart-2: #3fb950;
444
+ --color-chart-3: #d29922;
445
+ --color-chart-4: #bc8cff;
446
+ --color-chart-5: #f778ba;
421
447
  }
422
448
  }