Documentation
Gridline — Product Catalog 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.3 KB
- assets/css/style.css16 KB
- assets/fonts/space-grotesk-LICENSE.txt4.3 KB
- assets/fonts/space-grotesk-latin-wght-normal.woff222 KB
- assets/images/favicon.svg290 B
- assets/js/main.js30 KB
- documentation/index.html10 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html8.9 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#ffffff--color-soft#f4f4f5--color-ink#18181b--color-muted#52525b--color-line#d4d4d8--color-lime#84cc16--color-lime-deep#3f6212--color-lime-soft#ecfccb--color-danger#b91c1c
Interactive features
Product data
Edit the PRODUCTS array and CATEGORIES list at the top of assets/js/main.js. Each product has a category, price, rating, stock and an art name.
Filters and sort
Filtering lives in filtered() and sorting in its sorters object; add a new sort by adding an option to the select and a function with the same key.
Load more
Change PAGE_SIZE in assets/js/main.js to alter how many products appear at a time.
Quick view
The dialog markup is the .modal element in index.html; openQuick() fills it from the product object.
Customisation notes
Use photographs
Replace artSvg(p) in main.js with a function that returns an img element using a new image field on each product.
Add a currency
All prices pass through the money() function in main.js; change it to format your currency.
Highlight colour
The lime accent is --color-lime in :root; --color-lime-deep is used where text needs more contrast.
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.
- Products, prices, ratings and stock levels are sample data.
- The bag is a simulated counter in the browser; there is no cart page or checkout.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Space Grotesk typeface — OFL-1.1 (
assets/fonts/space-grotesk-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.