alouette
Version:
A modern, customizable design system built on top of NativeWind v5 with configurable defaults
14 lines • 839 B
TypeScript
import type { Accent, AccentOrNeutral, AlouetteModeTheme, AlouetteTheme } from "./AlouetteConfig";
/**
* Tracks the currently applied theme name (e.g. "dark_brand") so native reads
* and accent composition (`AccentScope`) know which theme
* is active. Set by `ScopedTheme` alongside NativeWind's variable context.
*
* Defaults to "light", matching the light defaults in the global `@theme` block.
*/
export declare const ThemeContext: import("react").Context<AlouetteTheme>;
export declare function useCurrentTheme(): AlouetteTheme;
export declare function useCurrentMode(): AlouetteModeTheme;
export declare function getThemeAccent(theme: AlouetteTheme): Accent | undefined;
export declare function useAccentOrInheritedOrBrand<T extends AccentOrNeutral>(accent: T | undefined): Accent | T;
//# sourceMappingURL=ThemeContext.d.ts.map