font
import { font } from "https://raw.githubusercontent.com/Hatscat/MetavaScript/main/index.ts";
helper to generate a CSS font value
@example
// returns "12px A"
font(12)
@example
// returns "50% A"
font(50, "%")
@example
// returns "2em Arial"
font("2", "em", "Arial")
function font(
sizeValue: number | string,
sizeUnit?,
family?,
): string;