// The letterspaced caps label, in one place. // // It was written out inline about thirty times across the pages — the same five // declarations each time — and had drifted: the same label role appeared at // both 0.18em and 0.16em tracking. Tracking now comes from --tracking-label, so // the design system decides it rather than each call site. // // Note the size: the system's own SectionLabel (components/core) sets labels at // --text-label (0.72rem) with weight 500, while this UI kit runs them smaller // and lighter. That difference is real and predates this file; it is kept here // so the kit looks as it did, rather than silently restyled. const LABEL_SIZE = 10; function uiLabel(overrides) { return { fontFamily: "var(--font-sans)", fontSize: LABEL_SIZE, letterSpacing: "var(--tracking-label)", textTransform: "uppercase", ...overrides, }; } Object.assign(window, { uiLabel, LABEL_SIZE });