MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / isThemeName

Function isThemeName

apps/ui/src/lib/theme/theme.utils.ts:8–10  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

6import type { ThemeName } from "./theme.types";
7
8export function isThemeName(value: unknown): value is ThemeName {
9 return value === "light" || value === "dark";
10}
11
12export function readStoredTheme(): ThemeName | null {
13 const stored = localStore.get(THEME_STORAGE_KEY);

Callers 2

readStoredThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected