MCPcopy Create free account
hub / github.com/vercel/examples / val

Function val

python/vibe-coding-ide/frontend/src/components/Editor/EditorPane.tsx:248–249  ·  view source on GitHub ↗
(name: string, fallback: string)

Source from the content-addressed store, hash-verified

246 const defineTheme = (m: typeof monacoInstance) => {
247 const css = getComputedStyle(document.documentElement)
248 const val = (name: string, fallback: string) =>
249 css.getPropertyValue(name).trim() || fallback
250 const bg = val('--vscode-bg', '#0a0a0a')
251 const panel = val('--vscode-panel', '#0f0f0f')
252 const border = val('--vscode-panel-border', '#1a1a1a')

Callers 2

defineThemeFunction · 0.85
EditorPaneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected