MCPcopy Index your code
hub / github.com/TanStack/devtools / createTheme

Function createTheme

packages/devtools/src/context/use-devtools-context.ts:22–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22export function createTheme() {
23 const { settings, setSettings } = createDevtoolsSettings()
24 const theme = createMemo(() => settings().theme)
25 return {
26 theme,
27 setTheme: (theme: DevtoolsStore['settings']['theme']) =>
28 setSettings({ theme }),
29 }
30}
31
32export const createPlugins = () => {
33 const { store, setStore } = createDevtoolsContext()

Callers 3

DevToolsFunction · 0.90
createStylesFunction · 0.90
PluginsTabFunction · 0.90

Calls 2

createDevtoolsSettingsFunction · 0.85
setSettingsFunction · 0.85

Tested by

no test coverage detected