1import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
2import type { MobileThemeVariables } from "./mobileTheme";
3
4/**
5 * Complete JS palette for native and third-party APIs that cannot consume a
6 * Uniwind className (React Navigation, native editors, Markdown, SVG gradients,
7 * Reanimated worklets). Ordinary React Native rendering must use className.
8 *
9 * This bridge follows the same single React theme commit as the root
10 * ScopedTheme instead of subscribing every consumer to CSS-variable updates.
11 */
12export function useUniwindTheme(): MobileThemeVariables {
13 return useAppearancePreferences().themeVariables;
14}