UNPKG

alouette

Version:

A modern, customizable design system built on top of NativeWind v5 with configurable defaults

17 lines 830 B
type TokenName = `--${string}`; /** * Reads theme token values in JS for the few props that can't take a className * (gradient stops, `placeholderTextColor`, native Switch track/thumb, the Expo * browser chrome, SVG icon tint). Values come from the active `themeVariables` * map (`ThemeVariablesContext`) keyed by the active `ThemeContext`, so they stay * in sync with the palette CSS (default or the app's own). * * Replaces Uniwind's `useCSSVariable`. Unlike NativeWind's * `useUnstableNativeVariable` this works on web and native alike and is stable. */ export declare function useThemeToken(token: TokenName): string | undefined; export declare function useThemeToken<const T extends readonly TokenName[]>(tokens: T): { [K in keyof T]: string | undefined; }; export {}; //# sourceMappingURL=useThemeToken.d.ts.map