MCPcopy Create free account
hub / github.com/chokcoco/iCSS / setTheme

Function setTheme

website/app/contexts/AppContext.tsx:33–40  ·  view source on GitHub ↗
(newTheme: Theme)

Source from the content-addressed store, hash-verified

31 }, []);
32
33 const setTheme = (newTheme: Theme) => {
34 try {
35 setThemeState(newTheme);
36 applyTheme(newTheme);
37 } catch (error) {
38 console.warn('Failed to set theme:', error);
39 }
40 };
41
42 const setLanguage = (newLanguage: Language) => {
43 try {

Callers 1

ThemeToggleFunction · 0.85

Calls 1

applyThemeFunction · 0.90

Tested by

no test coverage detected