useReferenceTheme()
Home > @gooddata/sdk-ui-theme-provider > useReferenceTheme
useReferenceTheme() function
Hook for reaching the reference theme from context.
Signature:
useReferenceTheme: () => ITheme | undefined
Returns:
ITheme | undefined
Remarks
The reference theme is the workspace theme prepared with the complementary palette enabled, regardless of how the application presents itself. Use it for computations that must be consistent across applications (e.g. color derivation); use useTheme() for presentation.