Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
export
function
applyTheme(theme:
"light"
|
"dark"
) {
15
document.documentElement.setAttribute(
"data-theme"
, theme)
16
setStorageItem(THEME, theme)
17
}
Callers
1
toggle
Function · 0.90
Calls
1
setStorageItem
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…