ThemeProvider
Home > @gooddata/sdk-ui-theme-provider > ThemeProvider
ThemeProvider variable
Fetches the theme object from the backend upon mounting and passes both theme object and isThemeLoading flag to the context via ThemeContextProvider.
Signature:
ThemeProvider: React.FC<IThemeProviderProps>
Remarks
Converts properties from theme object into CSS variables and injects them into
via setCssPropertiesBoth backend and workspace can be passed as an arguments, otherwise the component tries to get these from the context