MCPcopy Create free account
hub / github.com/anomalyco/opencode / clear

Function clear

packages/ui/src/theme/context.tsx:114–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114function clear() {
115 drop(STORAGE_KEYS.THEME_CSS_LIGHT)
116 drop(STORAGE_KEYS.THEME_CSS_DARK)
117}
118
119function ensureThemeStyleElement(): HTMLStyleElement {
120 const existing = document.getElementById(THEME_STYLE_ID) as HTMLStyleElement | null

Callers 3

onStorageFunction · 0.70
context.tsxFile · 0.70
setThemeFunction · 0.70

Calls 1

dropFunction · 0.70

Tested by

no test coverage detected