Documentation
Laurel — Certificate HTML Template
Version 1.0.0 · Vanilla HTML · 13 files · 137 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 13 files:
- LICENSE.txt1.4 KB
- README.md2.5 KB
- assets/css/style.css12 KB
- assets/fonts/cormorant-LICENSE.txt4.4 KB
- assets/fonts/cormorant-latin-wght-italic.woff237 KB
- assets/fonts/cormorant-latin-wght-normal.woff235 KB
- assets/fonts/dancing-script-LICENSE.txt4.3 KB
- assets/fonts/dancing-script-latin-wght-normal.woff242 KB
- assets/images/favicon.svg317 B
- assets/js/main.js2.7 KB
- documentation/index.html11 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html26 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-ivory#fbf7ec--color-paper#fffdf6--color-navy#1b2a49--color-navy-soft#3a4a6b--color-gold#b8860b--color-gold-light#e3bc5b--color-desk#dcd7c8--color-ink-muted#5a6074
Interactive features
Style switch
The toolbar buttons set data-style on the #certificate element. Edit the .certificate[data-style="modern"] block in assets/css/style.css, or add another button and block for a third look.
Paper size
The A4 / Letter buttons change the on-screen ratio and write an @page rule from assets/js/main.js. Edit the PAGE_SIZES object to add other sizes.
Editable text
Elements with contenteditable are edited by clicking them; press Enter to finish. Remove the attribute from any element you want locked.
Print / Save as PDF
The button calls window.print(). Choose Save as PDF as the destination and turn on background graphics if your browser does not do so automatically.
Customisation notes
Change the certificate text
Edit the text inside .certificate__org, .certificate__title, .certificate__name, .certificate__award and the .sign blocks in index.html. The name uses a script font; switch it to --font-serif in the stylesheet for long names.
Change the seal and emblem
The seal and laurel emblem are inline SVG in index.html. Change the fill colours to recolour them, or replace the star path with your own mark.
Printing tips
Set margins to None and disable headers and footers in the print dialog. Text edits made on screen are not saved; print or save the PDF before leaving the page.
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.
- Text edits exist only in the open page; nothing is saved or sent. Reloading restores the sample certificate.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Cormorant typeface — OFL-1.1 (
assets/fonts/cormorant-LICENSE.txt) - Dancing Script typeface — OFL-1.1 (
assets/fonts/dancing-script-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.