CupThread React Native & Expo SDK - v0.1.0
    Preparing search index...

    Function getThemeColors

    • Resolves full ThemeColors for a given SdkTheme and dark mode state.

      Parameters

      • theme: SdkTheme

        Selected theme identifier (e.g. 'system', 'ocean', 'dark').

      • isDarkMode: boolean = false

        Boolean indicating if device system dark mode is active (used for 'system').

      Returns ThemeColors

      Complete ThemeColors color token mapping.

      import { getThemeColors } from '@cupthread/react-native';

      const colors = getThemeColors('ocean');
      console.log(`Primary color: ${colors.primary}`);