yarcl
    Preparing search index...

    Interface FontFaceToken

    A font file to load, emitted as an @font-face rule.

    interface FontFaceToken {
        display?: "auto" | "block" | "swap" | "fallback" | "optional";
        family: string;
        src: string | string[];
        style?: "normal" | "italic";
        weight?: string | number;
    }
    Index
    display?: "auto" | "block" | "swap" | "fallback" | "optional"

    How the font displays while loading.

    'swap'
    
    family: string

    Family name to reference from typography.families, e.g. 'Inter'.

    src: string | string[]

    Font file URL(s), e.g. '/fonts/inter.woff2', or 'local(Inter)'. The format is inferred from the extension.

    style?: "normal" | "italic"

    Font style of this file.

    weight?: string | number

    Weight or weight range, e.g. 400 or '100 900' for variable fonts.