@cartridge-engine/theme
    Preparing search index...

    Function useTheme

    • Access the theme API from within a component tree wrapped by ThemeProvider.

      Returns { color, style, themeId, themes, setTheme, mergeTheme, addThemes }.

      Must be used inside <ThemeProvider>. Throws with a clear error message if no provider is found in the component tree.

      Returns ThemeContextValue