Documentation
Threadline — Fashion Store Template
Version 1.0.0 · Vanilla HTML · 15 files · 153 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 15 files:
- LICENSE.txt1.8 KB
- README.md2.8 KB
- assets/css/style.css32 KB
- assets/fonts/cormorant-LICENSE.txt4.4 KB
- assets/fonts/cormorant-latin-wght-italic.woff237 KB
- assets/fonts/cormorant-latin-wght-normal.woff235 KB
- assets/fonts/montserrat-LICENSE.txt4.4 KB
- assets/fonts/montserrat-latin-wght-normal.woff237 KB
- assets/images/favicon.svg285 B
- assets/js/main.js37 KB
- collection.html11 KB
- documentation/index.html11 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html16 KB
- product.html13 KB
Colours
These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.
--paper#f7f5f2--paper-2#efebe5--ink#111111--ink-soft#55504b--line#d9d3cb--blush#e8c7c8--blush-deep#d7a5a8
Interactive features
Product catalogue
Edit the PRODUCTS array at the top of assets/js/main.js: name, category, drawing type, price, colours, sold-out sizes and copy. Collection, home, bag and product pages all read it.
Collection filters and sort
Filters are generated from the catalogue and SWATCH tables. Add a colour to SWATCH and reference it in a product to get a new swatch and filter.
Quick view and size guide
Modals open from any element with data-open="dialog-id" and close with Escape, the scrim or a data-close button. Edit the measurement table in product.html.
Bag drawer
Change FREE_SHIP in main.js for the free-shipping threshold. Replace the demo checkout button handler with a link to your real checkout.
Shop the look
Edit the LOOK array in initHome and the matching rows and pin positions in index.html.
Customisation notes
Adding a garment shape
Drawings live in the SHAPES object and the details() function in main.js. Add a path under a new key and reference it as a product type.
Replacing illustrations with photography
Swap the art() call in card() and the gallery code for an img tag pointing at your own files; the layout already uses fixed 4:5 frames.
Product URLs
Product links use product.html?p=<id>. For a real shop, generate one page per product or keep this pattern behind a server route.
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.
- Newsletter form validates in the browser only; nothing is sent
- Checkout in the bag drawer is a labelled demonstration; no payment is processed
- Catalogue, stock levels and prices are invented demo data
- Bag contents persist in localStorage when available, otherwise in memory
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Cormorant typeface — OFL-1.1 (
assets/fonts/cormorant-LICENSE.txt) - Montserrat typeface — OFL-1.1 (
assets/fonts/montserrat-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.