MCPcopy 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
14const prefersLightMQ = "(prefers-color-scheme: light)";
15const getPreferredTheme = () =>
16 window.matchMedia(prefersLightMQ).matches ? "light" : "dark";
17
18export function ThemeProvider({
19 children,

Callers 1

ThemeProviderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected