Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
32
export 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
createStyles
Function · 0.90
createStyles
Function · 0.90
Calls
1
getContext
Function · 0.85
Tested by
no test coverage detected