MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / ThemeExample

Function ThemeExample

examples/sandbox/src/Theme.tsx:50–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48export const useTheme = () => useContext(ThemeContext)
49
50export const ThemeExample: Component = props => {
51 const [theme, {changeColor}] = useTheme()
52
53 return (
54 <>
55 <h1
56 style={{
57 color: theme.color,
58 }}
59 >
60 {theme.title}
61 </h1>
62 <input
63 type="color"
64 name="color"
65 value={theme.color}
66 onInput={e => changeColor(e.currentTarget.value)}
67 />
68 <label for="color">Change color theme</label>
69 </>
70 )
71}

Callers

nothing calls this directly

Calls 2

useThemeFunction · 0.85
changeColorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…