Skip to content
HTML Templates For Developers

Documentation

Tillway — Checkout Page Template

Version 1.0.0 · Vanilla HTML · 14 files · 80 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 14 files:

  • LICENSE.txt1.3 KB
  • README.md2.7 KB
  • assets/css/style.css16 KB
  • assets/fonts/public-sans-LICENSE.txt4.4 KB
  • assets/fonts/public-sans-latin-wght-italic.woff228 KB
  • assets/fonts/public-sans-latin-wght-normal.woff226 KB
  • assets/images/favicon.svg261 B
  • assets/images/mug.svg521 B
  • assets/images/tote.svg615 B
  • assets/images/wraps.svg603 B
  • assets/js/main.js16 KB
  • documentation/index.html12 KB
  • documentation/licenses/lucide-LICENSE.txt3.1 KB
  • index.html16 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#0f172a
  • --color-slate#334155
  • --color-muted#566275
  • --color-green#16a34a
  • --color-green-strong#15803d
  • --color-green-deep#14532d
  • --color-green-soft#f0fdf4
  • --color-rule#dbe1ea
  • --color-panel#f4f6f8
  • --color-white#ffffff
  • --color-danger#b91c1c
  • --color-warn-bg#fff8e1
  • --color-warn-line#e6b94a
  • --color-warn-ink#5a4306

Interactive features

Accordion steps

The step order is the STEPS array in assets/js/main.js and each step has a matching section with data-step in index.html. Add a step by adding both and a STEP_FIELDS entry.

Card formatting and validation

Formatting lives in formatCard() and formatExpiry(); rules for every field are in the RULES object. Test number: 4242 4242 4242 4242 with any future expiry and any 3 digit code.

Discount code

Demo code: TILL10 (10% off). Add codes to the CODES object at the top of main.js.

Delivery and tax

Edit prices, the free-shipping threshold and TAX_RATE in the configuration block at the top of main.js.

Order summary on mobile

Below 960px the summary is collapsed behind the toggle button; the breakpoint is set in style.css under the Order summary section.

Customisation notes

Connecting a payment provider

Replace showDone() in main.js with a call to your payment provider and show the confirmation only after it succeeds. Then remove the demo bar and the data-demo-note paragraphs.

Your basket

The ORDER array holds the three demo items. Fill it from your cart and keep the art value as an image file name in assets/images.

Countries

Add options to the country select in index.html and a matching branch in postalOk() for each postal code format.

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.

  • Checkout is a demonstration: card details are validated in the browser only, no payment is processed, no order is created and nothing is stored or sent.
  • The order basket, prices, delivery options and discount code are sample data defined in the script.

Bundled components and licences

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

  • Public Sans typeface — OFL-1.1 (assets/fonts/public-sans-LICENSE.txt)
  • Lucide icons (inlined SVG) — ISC (documentation/licenses/lucide-LICENSE.txt)

Changelog

Version 1.0.0 · Nov 23, 2026

  • Initial release.