MCPcopy Create free account
hub / github.com/codename-co/stack / handleThemeChange

Function handleThemeChange

packages/website/src/components/DarkModeSwitcher.tsx:42–50  ·  view source on GitHub ↗
(newTheme: string)

Source from the content-addressed store, hash-verified

40 xmlns="http://www.w3.org/2000/svg"
41 viewBox="0 0 24 24"
42 fill="none"
43 stroke-width="2"
44 stroke-linecap="round"
45 stroke-linejoin="round"
46 aria-hidden="true"
47 >
48 <path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" />
49 </svg>
50);
51
52export const DarkModeSwitcher: React.FC<{ children?: any }> = ({
53 children,

Callers 1

switchThemeFunction · 0.85

Calls 2

applySystemThemeFunction · 0.85
applyThemeFunction · 0.85

Tested by

no test coverage detected