26 lines
852 B
TypeScript
26 lines
852 B
TypeScript
//#region src/react-renderer/styles/index.d.ts
|
|
/**
|
|
* Injects A2UI structural styles into the document head.
|
|
* Includes utility classes (layout-*, typography-*, color-*, etc.) and React-specific overrides.
|
|
* Call this once at application startup.
|
|
*
|
|
* NOTE: CSS variables (--n-*, --p-*, etc.) must be defined by the host application on :root,
|
|
* just like in the Lit renderer. This allows full customization of the color palette.
|
|
*
|
|
* @example
|
|
* ```tsx
|
|
* import { injectStyles } from '@a2ui/react/styles';
|
|
*
|
|
* // In your app entry point:
|
|
* injectStyles();
|
|
* ```
|
|
*/
|
|
declare function injectStyles(): void;
|
|
/**
|
|
* Removes injected A2UI styles from the document.
|
|
* Useful for cleanup in tests or when unmounting.
|
|
*/
|
|
declare function removeStyles(): void;
|
|
//#endregion
|
|
export { injectStyles, removeStyles };
|
|
//# sourceMappingURL=index.d.mts.map
|