MCPcopy
hub / github.com/system-ui/theme-ui / ThemeUIProvider

Function ThemeUIProvider

packages/theme-provider/src/index.tsx:45–58  ·  view source on GitHub ↗
({ theme, children }: ThemeProviderProps)

Source from the content-addressed store, hash-verified

43}
44
45export const ThemeUIProvider = ({ theme, children }: ThemeProviderProps) => {
46 const outer = useThemeUI()
47
48 const isTopLevel = outer === __themeUiDefaultContextValue
49
50 return (
51 <CoreProvider theme={theme}>
52 <ColorModeProvider>
53 {isTopLevel && <RootStyles />}
54 {children}
55 </ColorModeProvider>
56 </CoreProvider>
57 )
58}
59
60/** @deprecated ThemeProvider is now called ThemeUIProvider to reduce confusion with Emotion */
61export const ThemeProvider: React.FC<ThemeProviderProps> = ({

Callers

nothing calls this directly

Calls 1

useThemeUIFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…