Skip to content
HTML Templates For Developers

Documentation

Groundwork — Basic HTML & CSS Starter Template

Version 1.0.0 · Vanilla HTML · 10 files · 26 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 10 files:

  • LICENSE.txt1.2 KB
  • README.md2.4 KB
  • about.html8.8 KB
  • assets/css/style.css19 KB
  • assets/images/favicon.svg240 B
  • assets/js/main.js5.2 KB
  • contact.html9.6 KB
  • documentation/index.html11 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-white#ffffff
  • --color-gray-50#f9fafb
  • --color-gray-100#f3f4f6
  • --color-gray-200#e5e7eb
  • --color-gray-300#d1d5db
  • --color-gray-600#4b5563
  • --color-gray-800#1f2937
  • --color-blue-50#eff6ff
  • --color-blue-100#dbeafe
  • --color-blue-600#2563eb
  • --color-blue-700#1d4ed8
  • --color-red-600#b91c1c
  • --color-green-700#15803d

Interactive features

Phone menu

The button with the class nav-toggle controls the nav with id site-nav. main.js toggles aria-expanded and the class is-open. To add a link, add an li to .site-nav__list in every page.

Contact form validation

Each field has a rule in the RULES object in assets/js/main.js, keyed by the field's id, and an error paragraph with the id followed by -error. Add a field by adding both. To send messages, add a fetch() call where submitForm() is marked.

Customisation notes

Rebrand in one place

Change the blue in --color-blue-600 (and --color-blue-700 for hover) at the top of assets/css/style.css to recolour buttons, links, icons and the call-to-action band.

Change the font

The font stack is the --font-sans token. To use a web font, add a font file and an @font-face rule in section 1, then put its name first in --font-sans.

Add a page

Copy about.html, change the title, description and main content, then add a link to the navigation and footer of every page and mark the current one with aria-current="page".

Replace the illustration and icons

The hero drawing and icons are inline SVG. Replace them with your own SVG or an img element with width, height and alt text; keep decorative graphics marked aria-hidden="true".

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 contact form validates in the browser and shows a confirmation but sends nothing until you connect it to a backend.
  • The business, people, prices, address and phone number are fictional sample content.

Bundled components and licences

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

  • Lucide icons (inlined SVG) — ISC (documentation/licenses/lucide-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.