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

Function isDarkMode

packages/console/app/src/component/header.tsx:25–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23import "./header-context-menu.css"
24
25const isDarkMode = () => window.matchMedia("(prefers-color-scheme: dark)").matches
26
27const fetchSvgContent = async (svgPath: string): Promise<string> => {
28 try {

Callers 2

copyWordmarkToClipboardFunction · 0.85
copyLogoToClipboardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected