MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / isDark

Function isDark

docs/components/shiki.js:27–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27const isDark = () =>
28 typeof document !== 'undefined' && document.documentElement.classList.contains('dark')
29
30export function createHighlight(rerender) {
31 let hl = null

Callers 1

highlightFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected