Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/triggerdotdev/jsonhero-web
/ getPreferredTheme
Function
getPreferredTheme
app/components/ThemeProvider.tsx:15–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
14
const prefersLightMQ =
"(prefers-color-scheme: light)"
;
15
const getPreferredTheme = () =>
16
window.matchMedia(prefersLightMQ).matches ?
"light"
:
"dark"
;
17
18
export function ThemeProvider({
19
children,
Callers
1
ThemeProvider
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected