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

Function getHex

packages/ui/src/theme/resolve.ts:524–527  ·  view source on GitHub ↗
(value: ColorValue | undefined)

Source from the content-addressed store, hash-verified

522}
523
524function getHex(value: ColorValue | undefined): HexColor | undefined {
525 if (!value?.startsWith("#")) return
526 return value as HexColor
527}
528
529export function resolveTheme(theme: DesktopTheme): { light: ResolvedTheme; dark: ResolvedTheme } {
530 return {

Callers 1

resolveThemeVariantFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected