Documentation
Showcase — Product Page Template
Version 1.0.0 · Vanilla HTML · 10 files · 49 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 10 files:
- LICENSE.txt1.3 KB
- README.md2.4 KB
- assets/css/style.css17 KB
- assets/fonts/manrope-LICENSE.txt4.3 KB
- assets/fonts/manrope-latin-wght-normal.woff224 KB
- assets/images/favicon.svg368 B
- assets/js/main.js17 KB
- documentation/index.html11 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html14 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-bg#f5f5f7--color-surface#ffffff--color-ink#111111--color-muted#5c5c63--color-line#dcdce1--color-accent#ff6a00--color-accent-ink#b84a00--color-accent-soft#fff0e5
Interactive features
Gallery and zoom
Edit the VIEWS array and the art() function in assets/js/main.js, or replace the generated SVG with your own images inside #stage-art.
Colour swatches
Edit the COLORS array in assets/js/main.js: each colour has a name, swatch colour and the tones the artwork uses.
Add to cart
Change PRICE and replace addToCart() in assets/js/main.js with a call to your shop's cart API.
Tabs
Add a button with role=tab and a matching role=tabpanel in index.html; the script picks them up automatically.
Customisation notes
Replace the structured data
The Product JSON-LD in the head of index.html contains placeholder values (PLACEHOLDER-SKU-0001, example.com URLs, a placeholder brand). Replace every one with your real product data before publishing, or search engines will show incorrect information.
Swap the illustrations for photos
Put an img element inside #stage-art and inside each thumbnail button, and remove the renderStage() colour redraw if you do not need swatch-driven artwork.
Change the accent colour
Edit --color-accent and --color-accent-ink in :root. The artwork's orange details are inside main.js and can be updated there.
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 cart is simulated in the browser: the count and toast reset on reload and no payment or order is processed.
- Reviews, rating and stock information are sample data.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Manrope typeface — OFL-1.1 (
assets/fonts/manrope-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.