/** * Type scales from the STOKR UI kit (section "Type scale"). Three scales share the same style names, so switching is one * constant (ACTIVE_SCALE): `uppercase` keeps the sizes and weights stokr.io shipped (name kept for the API), `sentence1` is * fluid (clamp 375 → 1440 px), `sentence2` is the updated sentence-case scale with whole-pixel line-heights. * Values here are the only place a font size, weight or spacing is written; CSS reads them as --text--*. * * Readability rule (kit, "Readability check — Font usage"), for the two sentence scales: capitals only for short labels of one * to three words, so `overline` and the two navigation-link styles (`navLink`, `navLinkRegular`: a few words, capitals in every * scale, like the site's menus) are the ONLY uppercase styles there. Titles, subtitles, buttons, labels, body and * disclaimers are sentence case, with letter-spacing 0 (the tracking they had was there for capitals). The `uppercase` scale is * exempt: its titles, buttons and labels are capitals, as on stokr.io. A test enforces both. */ export type FontFamilyName = 'openSans' | 'inter'; export type ScaleName = 'uppercase' | 'sentence1' | 'sentence2'; /** The only text styles set in capitals in the sentence scales (kit readability rule: short labels of one to three words). Also capitals in the uppercase scale. */ export declare const UPPERCASE_STYLES: readonly ["overline", "navLink", "navLinkRegular"]; /** Open Sans is what the site loads today; Inter (variable, self-hosted too) is the kit's sentence-case option: switch ACTIVE_FONT only. */ export declare const ACTIVE_SCALE: ScaleName; export declare const ACTIVE_FONT: FontFamilyName; export declare const fontFamilies: Record; export declare const fontWeights: { readonly light: 300; readonly regular: 400; readonly medium: 500; readonly semibold: 600; readonly bold: 700; readonly extrabold: 800; }; export interface TextStyle { size: string; lineHeight: string; weight: number; letterSpacing: string; uppercase?: boolean; underline?: boolean; } export interface TextSpec { desktop: TextStyle; mobile?: Partial; } export declare const textNames: readonly ["display", "titleXxl", "titleXl", "titleL", "titleM", "titleS", "titleXs", "titleXxs", "subtitleL", "subtitleM", "subtitleS", "bodyL", "bodyM", "bodyS", "amount", "amountCode", "amountCurrency", "buttonLabel", "dataLabel", "label", "overline", "navLink", "navLinkRegular", "labelRegular", "caption", "footnote", "linkL", "linkM", "linkS"]; export type TextName = (typeof textNames)[number]; export type TypeScale = Record; export declare const scales: Record; /** Mobile breakpoint of the kit (max-width): type styles switch to their `mobile` values at or below it. */ export declare const MOBILE_MAX_WIDTH = "767px";