useThemeSettings

4.1 The useThemeSettings hook provides a simple way for Weaverse Hydrogen components to retrieve and utilize the global theme settings.

The Weaverse Team avatar
Written by The Weaverse Team
Updated over a week 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.

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.

Did this answer your question?