Skip to content
HTML Templates For Developers

Documentation

Invoicely — Invoice Generator UI

Version 1.0.0 · Vanilla HTML · 12 files · 78 KB

Back to the template

Getting started

  1. Unzip the download and open index.html in a browser. No server, installation or build step is needed.
  2. Edit the text directly in the HTML files.
  3. Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
  4. Replace the artwork in assets/images/ with your own images.
  5. Upload the whole folder to any static host.

File structure

The download contains these 12 files:

  • LICENSE.txt1.8 KB
  • README.md2.6 KB
  • assets/css/style.css15 KB
  • assets/fonts/geist-LICENSE.txt4.4 KB
  • assets/fonts/geist-latin-wght-normal.woff229 KB
  • assets/fonts/geist-mono-LICENSE.txt4.4 KB
  • assets/fonts/geist-mono-latin-wght-normal.woff223 KB
  • assets/images/favicon.svg298 B
  • assets/js/main.js16 KB
  • documentation/index.html12 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html12 KB

Colours

These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.

  • --color-bg#f4f4f5
  • --color-surface#ffffff
  • --color-border#e4e4e7
  • --color-border-strong#d4d4d8
  • --color-text#18181b
  • --color-muted#52525b
  • --color-accent#059669
  • --color-accent-strong#047857
  • --color-accent-soft#ecfdf5
  • --color-danger#b91c1c

Interactive features

Live preview and totals

Every field carries a data-field attribute bound to the state object in assets/js/main.js. The totals() function computes subtotal, discount, tax and total in cents; change the order of operations there if your tax rules differ.

Line items

Add line item appends a row; the bin button removes it and moves focus sensibly. Items are objects with id, desc, qty and rate in the sampleData() function.

Currency

Add a currency by adding an option to the select in index.html and an entry for it in the LOCALES object in main.js.

Logo upload

The file is read with FileReader into a data URL held in memory only. MAX_LOGO_BYTES in main.js sets the size limit.

Print / Save as PDF

The button calls window.print(). The print stylesheet hides everything except the paper; choose Save as PDF and set margins to Default.

Reset

Reset rebuilds the state from sampleData(). Edit that function to change the invoice that loads.

Customisation notes

Change the sample invoice

All sample values live in sampleData() at the top of assets/js/main.js. Empty values hide their blocks in the preview, so you can start with a blank invoice by clearing them.

Change the invoice layout

The paper is the article.paper element in index.html with data-out placeholders. Move or restyle blocks freely; the script only needs the data-out names it already fills.

Switch to US Letter or A4

The print rule uses @page { size: auto }, so the printer or PDF dialog chooses the paper. To lock a size, set size: A4 or size: letter in the @page rule at the end of style.css.

Saving invoices

The generator keeps no data between visits. To persist invoices, serialise the state object to your own backend or to localStorage inside a try block.

What is front-end only

This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.

  • The editor is a front-end form: nothing is saved, emailed or sent, and reloading the page restores the sample invoice. Uploaded logos stay in browser memory.

Bundled components and licences

Everything the template needs is inside the download; nothing is loaded from the network.

  • Geist typeface — OFL-1.1 (assets/fonts/geist-LICENSE.txt)
  • Geist Mono typeface — OFL-1.1 (assets/fonts/geist-mono-LICENSE.txt)
  • Lucide icons (inlined SVG) — ISC (documentation/licenses/lucide-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.