open-nav
    Preparing search index...

    Function loadTheme

    • Load a theme from a JSON file.

      A logoFile field is read relative to the theme file and inlined, so a theme can be checked in next to its logo and stay portable.

      Parameters

      • filePath: string
      • io: { readBinary?: (path: string) => Buffer; readFile?: (path: string) => string } = {}

      Returns InvoiceTheme