MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / read

Function read

dashboard/graph/src/canvasHelpers.ts:72–72  ·  view source on GitHub ↗
(name: string, fallback: string)

Source from the content-addressed store, hash-verified

70export function readTheme(el: HTMLElement): ThemeColors {
71 const styles = getComputedStyle(el);
72 const read = (name: string, fallback: string) => styles.getPropertyValue(name).trim() || fallback;
73 const family: Record<string, string> = {};
74 for (const [key, [token, fallback]] of Object.entries(KIND_FAMILY_TOKENS)) {
75 family[key] = read(token, fallback);

Callers 5

readThemeFunction · 0.70
dashboard_source_stampFunction · 0.50
is_probably_utf8_textFunction · 0.50
build_queriesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected