Documentation
Mercato — E-commerce Store Template
Version 1.0.0 · Vanilla HTML · 99 files · 256 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 99 files:
- LICENSE.txt1.9 KB
- README.md6.5 KB
- assets/css/style.css41 KB
- assets/fonts/dm-sans-LICENSE.txt4.4 KB
- assets/fonts/dm-sans-latin-wght-italic.woff239 KB
- assets/fonts/dm-sans-latin-wght-normal.woff236 KB
- assets/fonts/dm-serif-display-LICENSE.txt4.5 KB
- assets/fonts/dm-serif-display-latin-400-italic.woff224 KB
- assets/fonts/dm-serif-display-latin-400-normal.woff224 KB
- assets/images/editorial.svg12 KB
- assets/images/favicon.svg361 B
- assets/images/hero.svg4.9 KB
- assets/images/products/bowl-chalk-1.svg1.6 KB
- assets/images/products/bowl-chalk-2.svg1.7 KB
- assets/images/products/bowl-chalk-3.svg1.7 KB
- assets/images/products/bowl-clay-1.svg1.6 KB
- assets/images/products/bowl-clay-2.svg1.7 KB
- assets/images/products/bowl-clay-3.svg1.7 KB
- assets/images/products/candle-olive-1.svg1.8 KB
- assets/images/products/candle-olive-2.svg1.9 KB
- assets/images/products/candle-olive-3.svg1.8 KB
- assets/images/products/candle-sand-1.svg1.8 KB
- assets/images/products/candle-sand-2.svg1.9 KB
- assets/images/products/candle-sand-3.svg1.8 KB
- assets/images/products/cushion-clay-1.svg2.7 KB
- assets/images/products/cushion-clay-2.svg2.8 KB
- assets/images/products/cushion-clay-3.svg2.8 KB
- assets/images/products/cushion-olive-1.svg2.7 KB
- assets/images/products/cushion-olive-2.svg2.8 KB
- assets/images/products/cushion-olive-3.svg2.8 KB
- assets/images/products/cushion-sand-1.svg2.7 KB
- assets/images/products/cushion-sand-2.svg2.8 KB
- assets/images/products/cushion-sand-3.svg2.8 KB
- assets/images/products/lamp-ink-1.svg1.8 KB
- assets/images/products/lamp-ink-2.svg1.9 KB
- assets/images/products/lamp-ink-3.svg1.8 KB
- assets/images/products/lamp-sand-1.svg1.8 KB
- assets/images/products/lamp-sand-2.svg1.9 KB
- assets/images/products/lamp-sand-3.svg1.8 KB
- assets/images/products/mirror-ink-1.svg1.3 KB
- assets/images/products/mirror-ink-2.svg1.4 KB
- assets/images/products/mirror-ink-3.svg1.4 KB
- assets/images/products/mirror-oak-1.svg1.3 KB
- assets/images/products/mirror-oak-2.svg1.4 KB
- assets/images/products/mirror-oak-3.svg1.4 KB
- assets/images/products/mug-olive-1.svg1.8 KB
- assets/images/products/mug-olive-2.svg1.9 KB
- assets/images/products/mug-olive-3.svg1.8 KB
- assets/images/products/mug-sand-1.svg1.8 KB
- assets/images/products/mug-sand-2.svg1.9 KB
- assets/images/products/mug-sand-3.svg1.8 KB
- assets/images/products/pendant-ink-1.svg1.3 KB
- assets/images/products/pendant-ink-2.svg1.4 KB
- assets/images/products/pendant-ink-3.svg1.3 KB
- assets/images/products/pendant-olive-1.svg1.3 KB
- assets/images/products/pendant-olive-2.svg1.4 KB
- assets/images/products/pendant-olive-3.svg1.3 KB
- assets/images/products/pitcher-chalk-1.svg1.3 KB
- assets/images/products/pitcher-chalk-2.svg1.4 KB
- assets/images/products/pitcher-chalk-3.svg1.3 KB
- assets/images/products/pitcher-olive-1.svg1.3 KB
- assets/images/products/pitcher-olive-2.svg1.4 KB
- assets/images/products/pitcher-olive-3.svg1.3 KB
- assets/images/products/planter-chalk-1.svg1.7 KB
- assets/images/products/planter-chalk-2.svg1.8 KB
- assets/images/products/planter-chalk-3.svg1.7 KB
- assets/images/products/planter-clay-1.svg1.7 KB
- assets/images/products/planter-clay-2.svg1.8 KB
- assets/images/products/planter-clay-3.svg1.7 KB
- assets/images/products/table-ink-1.svg1.5 KB
- assets/images/products/table-ink-2.svg1.6 KB
- assets/images/products/table-ink-3.svg1.5 KB
- assets/images/products/table-oak-1.svg1.5 KB
- assets/images/products/table-oak-2.svg1.6 KB
- assets/images/products/table-oak-3.svg1.5 KB
- assets/images/products/throw-ink-1.svg8.0 KB
- assets/images/products/throw-ink-2.svg8.1 KB
- assets/images/products/throw-ink-3.svg8.1 KB
- assets/images/products/throw-sand-1.svg8.0 KB
- assets/images/products/throw-sand-2.svg8.1 KB
- assets/images/products/throw-sand-3.svg8.1 KB
- assets/images/products/vase-ink-1.svg1.8 KB
- assets/images/products/vase-ink-2.svg1.9 KB
- assets/images/products/vase-ink-3.svg1.8 KB
- assets/images/products/vase-olive-1.svg1.8 KB
- assets/images/products/vase-olive-2.svg1.9 KB
- assets/images/products/vase-olive-3.svg1.8 KB
- assets/images/products/vase-sand-1.svg1.8 KB
- assets/images/products/vase-sand-2.svg1.9 KB
- assets/images/products/vase-sand-3.svg1.8 KB
- assets/js/main.js47 KB
- cart.html11 KB
- checkout.html17 KB
- documentation/index.html17 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- documentation/licenses/simple-icons-LICENSE.txt6.4 KB
- index.html17 KB
- product.html14 KB
- shop.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-ink#1b1b1f--color-muted#5f5d57--color-olive#5b6b3a--color-olive-dark#46532c--color-olive-deep#2f3a1c--color-sand#efe9dd--color-sand-deep#e2dac8--color-white#ffffff--color-line#ddd6c6--color-danger#a8321f--color-ok#3c6a2a--color-sale#a8452c--sw-olive#5b6b3a--sw-sand#d6c8aa--sw-ink#2a2a30--sw-clay#b5654a--sw-chalk#f1ede4--sw-oak#b58656
Interactive features
Product catalogue
Edit the CATALOGUE array at the top of assets/js/main.js. Each product has an id, name, category, price, colours, optional sizes and copy. Add artwork as assets/images/products/<id>-<colour>-<1|2|3>.svg.
Currency and shipping
Change LOCALE, CURRENCY and the SHIPPING object in the configuration block of main.js. Every price on the site is formatted from these values.
Promo codes
Demo codes: HEARTH10 (10% off), WELCOME25 ($25 off baskets of $100 or more) and FREESHIP (free standard shipping). Add or change codes in the PROMOS object in main.js.
Cart persistence
The basket is stored under the localStorage key mercato.cart and falls back to memory when storage is unavailable. Change CART_KEY in main.js to rename it.
Shop filters
Filters, sort and search read the catalogue, so new products appear automatically. Preset a view with shop.html?cat=Lighting or shop.html?q=linen.
Checkout validation
Field rules are in the fields object inside initCheckout(). Replace onValid() with a call to your payment provider; the card field accepts the demo number 4242 4242 4242 4242.
Customisation notes
Adding a product colour
Add the colour key to COLOURS in main.js, a matching --sw-<key> token and a [data-colour="<key>"] rule in the swatch map in style.css, then add artwork named with that key.
Replacing the artwork
Product images are plain SVG files; swap them for photographs of the same 4:5 ratio and keep the file names, or change imgSrc() in main.js to point elsewhere.
Brand and navigation
The header and footer markup is repeated on each page. Change the wordmark and links in all five files, or move them into your template engine.
Making checkout real
The demo banner, the data-demo-note lines and the success panel are all marked up in checkout.html. Remove them once the form posts to a real payment provider.
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 newsletter form validates the address and shows a message but does not store or send it.
- Products, prices, reviews, stock and customer quotes are fictional sample data; the cart lives in the browser only.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- DM Sans typeface — OFL-1.1 (
assets/fonts/dm-sans-LICENSE.txt) - DM Serif Display typeface — OFL-1.1 (
assets/fonts/dm-serif-display-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt) - Simple Icons brand marks (inlined SVG) — CC0-1.0 (
documentation/licenses/simple-icons-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.