open-nav
    Preparing search index...

    Interface InvoiceTheme

    Visual configuration for the invoice document.

    Every field is optional; what is left out falls back to a restrained default that prints well in black and white. Values that end up inside the stylesheet are validated rather than interpolated blindly — a theme is configuration, but configuration is still input.

    interface InvoiceTheme {
        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;
    }
    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

    Appended verbatim after the generated stylesheet. The escape hatch.

    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.

    Logo shown in the header. Use embedImage to inline a local file.

    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.