@athenaintel/react 0.11.1 → 0.11.3

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/README.md CHANGED
@@ -357,6 +357,24 @@ text anchors, and positioned citations are also preserved by `parseAthenaCitatio
357
357
  `page_rect` may include `unit=percent` (the default) or `unit=point`; retain the unit so the region
358
358
  maps to the correct PDF coordinates.
359
359
 
360
+ ## Styling
361
+
362
+ `styles.css` is a self-contained stylesheet compiled at package build time. One import styles every SDK component — the host app does **not** need Tailwind:
363
+
364
+ ```tsx
365
+ import '@athenaintel/react/styles.css';
366
+ ```
367
+
368
+ It contains the design tokens, the Tailwind utilities the SDK components use, and an element reset (preflight) **scoped to the SDK's own chrome** (`.aui-root` trees and `.athena-sdk-chrome` roots, including portaled tooltips/popups). It never restyles the host page — not even host components you nest inside `AthenaProvider` to use hooks like `useSendMessage`: the reset only reaches SDK-rendered roots, design tokens live on the provider's `.athena-sdk` wrapper (inert custom properties) rather than `:root`, and everything ships in CSS cascade layers so any unlayered host rule wins on conflict.
369
+
370
+ Hosts that already run **Tailwind v4** (like the athena-app template) may instead — or additionally — compile the SDK's classes themselves:
371
+
372
+ ```css
373
+ @source "../node_modules/@athenaintel/react/dist";
374
+ ```
375
+
376
+ Importing `styles.css` alongside a host Tailwind build is harmless (utilities are identical and layered). One caveat for themed Tailwind hosts: token values set on the `.athena-sdk` element shadow values inherited from `:root`, so define your app's token overrides on `.athena-sdk` too (`:root, .athena-sdk { --primary: …; }`) — or use the `theme` prop below, which always wins.
377
+
360
378
  ## Theming
361
379
 
362
380
  ```tsx
@@ -369,6 +387,15 @@ import { themes } from '@athenaintel/react';
369
387
 
370
388
  Preset themes: `light`, `dark`, `midnight`, `warm`, `purple`, `green`.
371
389
 
390
+ For CSS-level theming without the `theme` prop, set the design-token custom properties on `.athena-sdk` (unlayered rules override the SDK's layered defaults):
391
+
392
+ ```css
393
+ .athena-sdk {
394
+ --primary: oklch(0.4 0.15 260);
395
+ --radius: 1rem;
396
+ }
397
+ ```
398
+
372
399
  ## Key Components
373
400
 
374
401
  - **`<AthenaProvider>`** — Runtime, auth, theming, and configuration