Re-scoped from @lilith/ui-theme to @cocotte/ui-theme. In-set cross-package deps re-pointed to @cocotte; out-of-set @lilith deps preserved (same Verdaccio). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
No EOL
759 B
TypeScript
25 lines
No EOL
759 B
TypeScript
/** @jsxImportSource react */
|
|
/**
|
|
* Global style component that injects theme values as CSS custom properties on :root.
|
|
*
|
|
* Opt-in via `<ThemeProvider cssVariables>` or standalone `<ThemeCssVariables />`.
|
|
*
|
|
* @example
|
|
* ```tsx
|
|
* // Via ThemeProvider prop
|
|
* <ThemeProvider themeName="cyberpunk" cssVariables>
|
|
* <App />
|
|
* </ThemeProvider>
|
|
*
|
|
* // Or standalone (must be inside ThemeProvider)
|
|
* <ThemeCssVariables />
|
|
*
|
|
* // Then use in CSS:
|
|
* .card {
|
|
* background: var(--theme-color-background-primary);
|
|
* border-radius: var(--theme-radius-md);
|
|
* }
|
|
* ```
|
|
*/
|
|
export declare const ThemeCssVariables: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
//# sourceMappingURL=ThemeCssVariables.d.ts.map
|