MCPcopy
hub / github.com/simstudioai/sim / getThemeFromNextThemes

Function getThemeFromNextThemes

apps/sim/lib/core/utils/theme.ts:40–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 * Gets the current theme from next-themes localStorage
39 */
40export function getThemeFromNextThemes(): 'system' | 'light' | 'dark' {
41 if (typeof window === 'undefined') return 'system'
42 return (localStorage.getItem('sim-theme') as 'system' | 'light' | 'dark') || 'system'
43}

Callers

nothing calls this directly

Calls 1

getItemMethod · 0.80

Tested by

no test coverage detected