@actioneer/ads 0.5.0 → 0.5.1
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/manifest.json +1 -1
- package/package.json +1 -1
- package/styles.css +33 -5
- package/theme.css +33 -5
package/manifest.json
CHANGED
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -296,16 +296,28 @@
|
|
|
296
296
|
--color-overlay: var(--overlay);
|
|
297
297
|
|
|
298
298
|
/*
|
|
299
|
-
* shadcn-compat aliases —
|
|
300
|
-
*
|
|
301
|
-
*
|
|
299
|
+
* shadcn-compat aliases — map shadcn's expected color roles onto ADS tokens.
|
|
300
|
+
* ADS's own UI never uses these; they exist for the vendored chat components
|
|
301
|
+
* (src/components/ui, src/components/assistant-ui) AND for downstream shadcn
|
|
302
|
+
* consumers, so a shadcn Sidebar/Popover picks up the ADS palette instead of
|
|
303
|
+
* shadcn's grey/black defaults. The raw --sidebar-*/--popover values live in
|
|
304
|
+
* :root below.
|
|
302
305
|
*/
|
|
303
306
|
--color-primary-foreground: var(--brand-foreground);
|
|
304
307
|
--color-secondary-foreground: #ffffff;
|
|
305
308
|
--color-destructive: var(--color-danger-600);
|
|
306
309
|
--color-destructive-foreground: #ffffff;
|
|
307
|
-
--color-popover: var(--
|
|
308
|
-
--color-popover-foreground: var(--foreground);
|
|
310
|
+
--color-popover: var(--popover);
|
|
311
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
312
|
+
|
|
313
|
+
--color-sidebar: var(--sidebar);
|
|
314
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
315
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
316
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
317
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
318
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
319
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
320
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
309
321
|
}
|
|
310
322
|
|
|
311
323
|
/* ---- Theme (light only) ---- */
|
|
@@ -345,6 +357,22 @@
|
|
|
345
357
|
--input: #c7c6be;
|
|
346
358
|
--ring: rgb(63 122 52 / 0.5);
|
|
347
359
|
--overlay: rgb(26 26 23 / 0.5);
|
|
360
|
+
|
|
361
|
+
/* shadcn-compat raw surfaces — so a downstream shadcn Sidebar / Popover
|
|
362
|
+
(or an inline `var(--sidebar)` / `var(--popover)`) resolves to the ADS
|
|
363
|
+
palette instead of shadcn's grey/black defaults. The sidebar reads as the
|
|
364
|
+
warm greige canvas; its active item takes Sage. A consumer that had
|
|
365
|
+
hard-coded these can now delete its overrides and inherit from here. */
|
|
366
|
+
--sidebar: var(--surface);
|
|
367
|
+
--sidebar-foreground: var(--foreground);
|
|
368
|
+
--sidebar-primary: var(--brand);
|
|
369
|
+
--sidebar-primary-foreground: var(--brand-foreground);
|
|
370
|
+
--sidebar-accent: var(--muted);
|
|
371
|
+
--sidebar-accent-foreground: var(--foreground);
|
|
372
|
+
--sidebar-border: var(--border);
|
|
373
|
+
--sidebar-ring: var(--ring);
|
|
374
|
+
--popover: var(--elevated);
|
|
375
|
+
--popover-foreground: var(--foreground);
|
|
348
376
|
}
|
|
349
377
|
/* ---- Base, keyframes & component helpers ---- */
|
|
350
378
|
/* Hide scrollbars app-wide but keep scrollability. The demo UI is filled
|
package/theme.css
CHANGED
|
@@ -269,16 +269,28 @@
|
|
|
269
269
|
--color-overlay: var(--overlay);
|
|
270
270
|
|
|
271
271
|
/*
|
|
272
|
-
* shadcn-compat aliases —
|
|
273
|
-
*
|
|
274
|
-
*
|
|
272
|
+
* shadcn-compat aliases — map shadcn's expected color roles onto ADS tokens.
|
|
273
|
+
* ADS's own UI never uses these; they exist for the vendored chat components
|
|
274
|
+
* (src/components/ui, src/components/assistant-ui) AND for downstream shadcn
|
|
275
|
+
* consumers, so a shadcn Sidebar/Popover picks up the ADS palette instead of
|
|
276
|
+
* shadcn's grey/black defaults. The raw --sidebar-*/--popover values live in
|
|
277
|
+
* :root below.
|
|
275
278
|
*/
|
|
276
279
|
--color-primary-foreground: var(--brand-foreground);
|
|
277
280
|
--color-secondary-foreground: #ffffff;
|
|
278
281
|
--color-destructive: var(--color-danger-600);
|
|
279
282
|
--color-destructive-foreground: #ffffff;
|
|
280
|
-
--color-popover: var(--
|
|
281
|
-
--color-popover-foreground: var(--foreground);
|
|
283
|
+
--color-popover: var(--popover);
|
|
284
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
285
|
+
|
|
286
|
+
--color-sidebar: var(--sidebar);
|
|
287
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
288
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
289
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
290
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
291
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
292
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
293
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
282
294
|
}
|
|
283
295
|
|
|
284
296
|
/* ---- Theme (light only) ---- */
|
|
@@ -318,4 +330,20 @@
|
|
|
318
330
|
--input: #c7c6be;
|
|
319
331
|
--ring: rgb(63 122 52 / 0.5);
|
|
320
332
|
--overlay: rgb(26 26 23 / 0.5);
|
|
333
|
+
|
|
334
|
+
/* shadcn-compat raw surfaces — so a downstream shadcn Sidebar / Popover
|
|
335
|
+
(or an inline `var(--sidebar)` / `var(--popover)`) resolves to the ADS
|
|
336
|
+
palette instead of shadcn's grey/black defaults. The sidebar reads as the
|
|
337
|
+
warm greige canvas; its active item takes Sage. A consumer that had
|
|
338
|
+
hard-coded these can now delete its overrides and inherit from here. */
|
|
339
|
+
--sidebar: var(--surface);
|
|
340
|
+
--sidebar-foreground: var(--foreground);
|
|
341
|
+
--sidebar-primary: var(--brand);
|
|
342
|
+
--sidebar-primary-foreground: var(--brand-foreground);
|
|
343
|
+
--sidebar-accent: var(--muted);
|
|
344
|
+
--sidebar-accent-foreground: var(--foreground);
|
|
345
|
+
--sidebar-border: var(--border);
|
|
346
|
+
--sidebar-ring: var(--ring);
|
|
347
|
+
--popover: var(--elevated);
|
|
348
|
+
--popover-foreground: var(--foreground);
|
|
321
349
|
}
|