(name: string, fallback: string)
| 70 | export 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); |
no outgoing calls
no test coverage detected