MCPcopy Create free account
hub / github.com/TanStack/devtools / createTheme

Function createTheme

packages/devtools-ui/src/components/theme.tsx:32–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30 })
31 return (
32 <ThemeContext value={{ theme, setTheme }}>
33 <span ref={container} style={{ display: 'contents' }}>
34 {props.children}
35 </span>
36 </ThemeContext>
37 )
38}
39
40export function createTheme() {
41 return getContext(ThemeContext)
42}

Callers 2

createStylesFunction · 0.90
createStylesFunction · 0.90

Calls 1

getContextFunction · 0.85

Tested by

no test coverage detected