open-nav
    Preparing search index...

    Interface ResolvedTheme

    interface ResolvedTheme {
        accentColor: string;
        baseFontSize: string;
        borderColor: string;
        customCss?: string;
        fontFamily: string;
        footerLines: string[];
        inkColor: string;
        issuerContact: string[];
        logo?: InvoiceLogo;
        mutedColor: string;
        pageMargin: string;
        pageSize: string;
        panelColor: string;
        provenanceNote: boolean;
        template: "standard" | "compact";
        zebraRows: boolean;
    }

    Hierarchy

    • Required<Omit<InvoiceTheme, "logo" | "customCss">>
      • ResolvedTheme
    Index
    accentColor: string

    Accent for headings, rules and the total.

    baseFontSize: string

    Base size, as a CSS length. Everything else scales from it.

    borderColor: string

    Rules and borders.

    customCss?: string
    fontFamily: string

    CSS font stack. Give a real fallback chain; a PDF converter needs it.

    footerLines: string[]

    Lines printed in the footer, e.g. payment terms or company details.

    inkColor: string

    Body text colour.

    issuerContact: string[]

    Extra lines in the supplier block: phone, email, web, registration.

    mutedColor: string

    Secondary text: labels, references, the footer.

    pageMargin: string

    Page margin for @page, e.g. 16mm 14mm.

    pageSize: string

    Page size for @page, e.g. A4 or Letter.

    panelColor: string

    Background of the markings panel.

    provenanceNote: boolean

    Show the "rendered from reported data" note. Defaults to true.

    template: "standard" | "compact"

    Layout template — a structural choice above colours and fonts.

    standard (the default) is the roomy layout. compact tightens the spacing and type scale to fit more on a page, for a dense invoice or a short receipt. Both honour every other theme field.

    zebraRows: boolean

    Tint alternate table rows. Off by default; it prints heavier.