MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / preferredTheme

Function preferredTheme

cli/src/hooks/use-theme.tsx:70–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 const preferredTheme = (): ThemeName => {
71 for (const detector of THEME_PRIORITY) {
72 const result = detector.detect()
73 if (result) {
74 return result
75 }
76 }
77 return 'dark'
78 }
79
80 const resolved = preferredTheme()
81

Callers 1

detectSystemThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected