(this: MacroContext | void, base: number, baseFontSize = 14)
| 414 | export type Spacing = PositiveSpacing | NegativeSpacing; |
| 415 | |
| 416 | export function fontRelative(this: MacroContext | void, base: number, baseFontSize = 14): string { |
| 417 | return base / baseFontSize + 'em'; |
| 418 | } |
| 419 | |
| 420 | export function edgeToText(this: MacroContext | void, height: keyof typeof baseSpacing): string { |
| 421 | return `calc(${baseSpacing[height]} * 3 / 8)`; |
no outgoing calls
no test coverage detected