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
32export function createTheme() {
33 const context = getContext(ThemeContext)
34 if (!context) {
35 throw new Error('createTheme must be used within a ThemeContextProvider')
36 }
37
38 return context
39}

Callers 2

createStylesFunction · 0.90
createStylesFunction · 0.90

Calls 1

getContextFunction · 0.85

Tested by

no test coverage detected