MCPcopy
hub / github.com/codeaashu/claude-code / apply

Function apply

web/lib/theme.tsx:38–45  ·  view source on GitHub ↗
(resolved: ResolvedTheme)

Source from the content-addressed store, hash-verified

36 const root = document.documentElement
37
38 const apply = (resolved: ResolvedTheme) => {
39 setResolvedTheme(resolved)
40 if (resolved === 'light') {
41 root.classList.add('light')
42 } else {
43 root.classList.remove('light')
44 }
45 }
46
47 if (theme === 'system') {
48 const mq = window.matchMedia('(prefers-color-scheme: light)')

Callers 2

ThemeProviderFunction · 0.70
handlerFunction · 0.70

Calls 1

addMethod · 0.45

Tested by

no test coverage detected