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

    Function ThemeProvider

    • Context provider for theming.

      Loads theme definitions either from a directory of {id}.json files (via the path prop) or from pre-built inline objects (via themes).

      Descendant components can use the useTheme hook to access color() and style() functions, and setTheme() to switch themes.

      Parameters

      Returns Element