@actioneer/ads 0.8.0 → 1.0.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/theme.css CHANGED
@@ -26,22 +26,33 @@
26
26
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular,
27
27
  "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
28
28
 
29
- /* ---- Type scale ---- five canonical steps: S · M · L · XL · 2XL.
30
- Root stays 16px so spacing is unaffected. */
31
- --text-s: 0.8125rem; /* 13px · captions, secondary text, table cells */
32
- --text-s--line-height: 1.125rem; /* 18px */
33
- --text-m: 0.9375rem; /* 15px · default body */
34
- --text-m--line-height: 1.375rem; /* 22px */
35
- --text-l: 1.1875rem; /* 19px · emphasized body, section headings */
36
- --text-l--line-height: 1.625rem; /* 26px */
37
- --text-xl: 1.5625rem; /* 25px · page titles */
38
- --text-xl--line-height: 2rem; /* 32px */
39
- --text-2xl: 1.9375rem; /* 31px · display */
40
- --text-2xl--line-height: 2.375rem; /* 38px */
41
-
42
- /* Compatibility aliases keep existing ADS consumers on the new scale. */
43
- --text-xs: var(--text-s);
44
- --text-xs--line-height: var(--text-s--line-height);
29
+ /* ---- Type scale ---- seven canonical steps: XS · S · M · L · XL · 2XL · 3XL.
30
+ Roles follow the agent workflow. Root stays 16px so spacing is unaffected. */
31
+ --text-xs: 0.625rem; /* 10px · compact chips and micro metadata */
32
+ --text-xs--line-height: 0.875rem; /* 14px */
33
+ --text-s: 0.75rem; /* 12px · table headers and uppercase kickers */
34
+ --text-s--line-height: 1rem; /* 16px */
35
+ --text-m: 0.875rem; /* 14px · default body, table cells, record names */
36
+ --text-m--line-height: 1.25rem; /* 20px */
37
+ --text-l: 1rem; /* 16px · tabs, form labels, and section titles */
38
+ --text-l--line-height: 1.375rem; /* 22px */
39
+ --text-xl: 1.125rem; /* 18px · metric values and subtitles */
40
+ --text-xl--line-height: 1.5rem; /* 24px */
41
+ --text-2xl: 1.5rem; /* 24px · page titles */
42
+ --text-2xl--line-height: 2rem; /* 32px */
43
+ --text-3xl: 2rem; /* 32px · large data display */
44
+ --text-3xl--line-height: 2.5rem; /* 40px */
45
+
46
+ /* This is the complete ADS scale. Remove Tailwind's larger default steps so
47
+ Storybook and product code cannot silently introduce an eighth size. */
48
+ --text-4xl: initial;
49
+ --text-5xl: initial;
50
+ --text-6xl: initial;
51
+ --text-7xl: initial;
52
+ --text-8xl: initial;
53
+ --text-9xl: initial;
54
+
55
+ /* Compatibility aliases keep existing ADS consumers on the canonical scale. */
45
56
  --text-sm: var(--text-s);
46
57
  --text-sm--line-height: var(--text-s--line-height);
47
58
  --text-base: var(--text-m);
@@ -187,21 +198,21 @@
187
198
  /* Demo logo indigo — source for artifact canvas wash. */
188
199
  --color-brand-mark: #2e1065;
189
200
 
190
- /* ---- Radii ---- five canonical steps: XS · S · M · L · XL.
201
+ /* ---- Radii ---- four canonical steps: XS · S · M · L.
191
202
  M (6px) is the default corner radius. */
192
203
  --radius-xs: 0.125rem; /* 2px · micro details */
193
204
  --radius-s: 0.25rem; /* 4px · compact controls */
194
205
  --radius-m: 0.375rem; /* 6px · default controls and surfaces */
195
- --radius-l: 0.5rem; /* 8px · menus and cards */
196
- --radius-xl: 0.75rem; /* 12px · large panels and feature surfaces */
206
+ --radius-l: 0.5rem; /* 8px · menus, cards, and large surfaces */
197
207
 
198
208
  /* Compatibility aliases preserve existing ADS utilities. */
199
209
  --radius-sm: var(--radius-s);
200
210
  --radius-md: var(--radius-m);
201
211
  --radius-lg: var(--radius-l);
202
- --radius-2xl: var(--radius-xl);
203
- --radius-3xl: var(--radius-xl);
204
- --radius-4xl: var(--radius-xl);
212
+ --radius-xl: var(--radius-l);
213
+ --radius-2xl: var(--radius-l);
214
+ --radius-3xl: var(--radius-l);
215
+ --radius-4xl: var(--radius-l);
205
216
  /* Shape-only exception for avatars, icon buttons, progress tracks, chips,
206
217
  and badges. It is not part of the corner-radius scale. */
207
218
  --radius-full: 9999px;
@@ -253,8 +264,8 @@
253
264
  --sidebar-item: 2rem; /* 32px — collapsed rail hit target (square) */
254
265
  --sidebar-logo: 1.25rem; /* 20px — brand mark, centered in a --sidebar-item square */
255
266
  --sidebar-text-indent: 2.375rem; /* px-3 + icon size-4 + gap-2.5 — history rows align to nav-item text */
256
- --sidebar-navigation-text-size: var(--text-m); /* 15px — sidebar actions, items, history, and account text */
257
- --sidebar-section-label-size: 0.8125rem; /* 13px — section and history labels */
267
+ --sidebar-navigation-text-size: var(--text-m); /* 14px — sidebar actions, items, history, and account text */
268
+ --sidebar-section-label-size: var(--text-s); /* 12px — section and history labels */
258
269
  --panel-header-height: 2.75rem; /* 44px — Panel / toolbar header */
259
270
  --aside-width: 20rem; /* 320px — right-hand panel column */
260
271
 
@@ -267,7 +278,7 @@
267
278
  --thread-max-width: 44rem; /* chat column cap — readable prose measure, all panes */
268
279
  --thread-max-width-wide: 64rem; /* rich-content breakout cap (tables/charts/tool cards) on wide panes; prose keeps --thread-max-width */
269
280
  --composer-bg: var(--elevated); /* pure white composer surface */
270
- --composer-radius: var(--radius-xl);
281
+ --composer-radius: var(--radius-l);
271
282
  --composer-padding: 0.5rem;
272
283
  --composer-placeholder-max-h: calc(var(--text-m--line-height) * 2); /* rotating placeholder clamp — two lines of the input's own rhythm, so it can never overlap the accessory row */
273
284
  --chat-texture-opacity: 0.06; /* welcome-state halftone wash */
@@ -429,16 +440,18 @@
429
440
  --foreground: var(--color-wg12); /* step 12 */
430
441
 
431
442
  /* Both surface contexts point directly into the approved WG text steps.
432
- WG10 is the tertiary/de-emphasis step and clears AA on White and WG2. */
443
+ WG9 is the tertiary/de-emphasis step for nonessential metadata. It clears
444
+ normal-text AA on White; use Secondary when normal text on WG2 must clear
445
+ AA. */
433
446
  --text-on-white-primary: var(--color-wg12); /* 16.32:1 · AAA */
434
447
  --text-on-white-secondary: var(--color-wg11); /* 8.76:1 · AAA */
435
- --text-on-white-tertiary: var(--color-wg10); /* 5.60:1 · AA */
448
+ --text-on-white-tertiary: var(--color-wg9); /* 4.50:1 · AA */
436
449
  --text-on-warm-grey-primary: var(--color-wg12); /* 14.43:1 on WG2 · AAA */
437
450
  --text-on-warm-grey-secondary: var(--color-wg11); /* 7.75:1 on WG2 · AAA */
438
- --text-on-warm-grey-tertiary: var(--color-wg10); /* 4.95:1 on WG2 · AA */
451
+ --text-on-warm-grey-tertiary: var(--color-wg9); /* 3.98:1 on WG2 · large text AA */
439
452
 
440
- /* Existing context-free utilities remain compatibility aliases. Their
441
- tertiary value stays conservative across WG2–WG4 and White. */
453
+ /* Existing context-free utilities remain conservative compatibility aliases
454
+ across WG2–WG4 and White until their call sites adopt a surface role. */
442
455
  --text-primary: var(--color-wg12); /* 12.93:1 AAA (WG4 min surf) */
443
456
  --text-secondary: var(--color-wg11); /* 6.94:1 AA (WG4 min surf) */
444
457
  --text-tertiary: color-mix(in srgb, var(--color-wg10) 80%, var(--color-wg11)); /* 4.86:1 AA (WG4) */
@@ -469,8 +482,8 @@
469
482
  --brand-hover: var(--color-wg11); /* lighter hover lift */
470
483
  --brand-text: var(--color-wg12); /* action text / links */
471
484
 
472
- /* Interactive row hover/focus uses the WG1 highlight wash. */
473
- --table-row-hover: var(--color-wg2);
485
+ /* Interactive row hover/focus uses the WG3 highlight wash. */
486
+ --table-row-hover: var(--color-wg3);
474
487
  --table-row-selected: var(--color-wg1);
475
488
 
476
489
  /* Quiet component fill. WG3 is the first interactive-background
@@ -520,7 +533,7 @@
520
533
  --texture-ink: var(--color-wg12); /* brand-texture / pixel-blast marks */
521
534
  --table-shell: var(--color-white); /* simplified single-surface table */
522
535
  --table-stroke: var(--color-wg3); /* table outline + row separators */
523
- --table-header-foreground: var(--color-wg11); /* readable secondary table heading text */
536
+ --table-header-foreground: var(--text-tertiary); /* 12px tertiary table heading text */
524
537
  --specimen-stroke: var(--color-wg3); /* showcase preview + variant-group frames */
525
538
  --table-scroll-hint: color-mix(in srgb, var(--color-wg12) 4%, transparent); /* right-edge wash */
526
539
  --surface-inverse: var(--color-wg12); /* dark hero / inverse surface base */