Logo
  1. Docs
  2. API References

useThemeSettings

Published on Oct 11, 2023, updated a month ago

The useThemeSettings hook is an interface for accessing the global theme settings within a Weaverse Hydrogen theme, enabling components to adapt to merchant-configured preferences.

Usage

Import the hook from @weaverse/hydrogen package then call it within a React component to get an object containing the current global theme settings.

WEAVERSE_EMBEDED_CODE

For a deeper understanding of how global theme settings are established and how they interact with the useThemeSettings hook, you can reference the Global Theme Settings article.

Was this article helpful?