MCPcopy Create free account
hub / github.com/code-forge-io/react-router-devtools / applyTheme

Function applyTheme

docs/app/utils/theme.ts:14–17  ·  view source on GitHub ↗
(theme: "light" | "dark")

Source from the content-addressed store, hash-verified

12}
13
14export function applyTheme(theme: "light" | "dark") {
15 document.documentElement.setAttribute("data-theme", theme)
16 setStorageItem(THEME, theme)
17}

Callers 1

toggleFunction · 0.90

Calls 1

setStorageItemFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…