Documentation
Synopsis — HTML Report Template
Version 1.0.0 · Vanilla HTML · 17 files · 235 KB
Getting started
- Unzip the download and open index.html in a browser. No server, installation or build step is needed.
- Edit the text directly in the HTML files.
- Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
- Replace the artwork in assets/images/ with your own images.
- Upload the whole folder to any static host.
File structure
The download contains these 17 files:
- LICENSE.txt1.8 KB
- README.md2.8 KB
- assets/css/style.css18 KB
- assets/fonts/spectral-LICENSE.txt5.7 KB
- assets/fonts/spectral-latin-400-italic.woff222 KB
- assets/fonts/spectral-latin-400-normal.woff221 KB
- assets/fonts/spectral-latin-500-normal.woff222 KB
- assets/fonts/spectral-latin-600-normal.woff222 KB
- assets/fonts/spectral-latin-700-normal.woff222 KB
- assets/fonts/work-sans-LICENSE.txt4.4 KB
- assets/fonts/work-sans-latin-wght-italic.woff247 KB
- assets/fonts/work-sans-latin-wght-normal.woff249 KB
- assets/images/favicon.svg271 B
- assets/js/main.js3.0 KB
- documentation/index.html12 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html33 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-ink#0b3954--color-ink-deep#082d43--color-coral#ff6663--color-coral-text#c2332f--color-pale#bfd7ea--color-wash#eef4f9--color-text#1f2d3a--color-muted#4d6274--color-line#d3dfe9--color-desk#dde5ec--color-paper#ffffff
Interactive features
Side navigation
The sidebar lists every section.page with an id. Add a section and a matching list item in the aside; assets/js/main.js highlights the current one with IntersectionObserver.
Mobile menu
Below 1024px the sidebar becomes a Sections drop-down toggled by the top-bar button (aria-expanded). Escape closes it.
Print / Save as PDF
The button calls window.print(). Choose Save as PDF, paper A4, margins Default, and enable background graphics if your browser does not do it automatically.
Fit to screen
main.js scales the 210mm sheets to the available width through the --fit variable on narrow screens; it is reset before printing.
Customisation notes
Edit running titles and page numbers
The text in the page header and footer comes from the @top-left, @top-right and @bottom-left rules inside @page at the end of assets/css/style.css. Page numbers use counter(page). The on-screen copies are the .page__run and .page__num elements.
Keep sections to one page
Each section.page is built to fill one printed A4 page (about 255mm of content). If you add content, split it into a new section and update the contents page and the numbers in the side menu.
Update the charts
Charts are inline SVG in index.html with bars, points and labels positioned by hand. Move a rect's y and height, or a path's coordinates, to change a value; the chart title and desc elements describe the data for screen readers.
Change page size
Edit size in @page (for example letter) and the --sheet-w and --sheet-h variables for the on-screen sheet.
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.
- All organisations, people and figures are invented sample data. Nothing is saved or sent; the report is static HTML.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Spectral typeface — OFL-1.1 (
assets/fonts/spectral-LICENSE.txt) - Work Sans typeface — OFL-1.1 (
assets/fonts/work-sans-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.