Templates

Templates you can copy.

19 complete pages built with Deck 0.1.3. Each one is a single HTML file you can open in a browser right now — no build step, no package install, nothing to compile. Copy the file, repoint the paths at your copy of Deck, and start deleting the parts you do not want.

MIT licensed 14 new One file each 21,428 lines total No dependencies

Websites

Complete marketing sites, top bar to footer, each in its own brand colour — which in Deck is one number.

Commerce

The pages that take money. The store, product and checkout pages are one shop and link to each other.

App screens

One app, four screens, sharing a top bar, a sidebar, a phone tab bar and a drawer. Click between them.

Sections

Several takes on one section per page, each self-contained, each with a button that copies its HTML.


How do I use one of these?

Save the file, change the paths, open it. There is no step three, because there is nothing to build.

Every template loads Deck with tags near the top. They point two folders up, which is where Deck sits on this site. Repoint them at wherever you put Deck and the rest of the file works unchanged. Templates with a carousel, a drawer or a quantity stepper load the optional extras file as well:

<link rel="stylesheet" href="../assets/deck/deck.css">
<script src="../assets/deck/deck.js" defer></script>
<script src="../assets/deck/deck-extras.js" defer></script>

Icons are the one thing that needs care. They are referenced as ../assets/deck/deck-icons.svg#name, and that file has to be served from your own site. A cross-origin <use href> is blocked by the browser and renders nothing at all — so a CDN URL works perfectly for the stylesheet and silently fails for icons.

They are HTML, not PHP

Deliberately. A plain HTML file drops into Rails, Django, Go, Laravel, Astro, a static site, or nothing at all. Rename to .php and it keeps working.

The photos are placeholders

Templates that use photography load it from Unsplash so the preview looks finished. Swap in your own images before you ship; every image has its width and height set, so the layout does not move when you do.

What is in them?

Only classes Deck actually ships, plus a short page-local style block in @layer app.pages where a layout needs one. The build fails if a template uses a class that is neither, so nothing here can quietly rot when a class is renamed — the same check that keeps the documentation honest covers these files too.

Everything is MIT licensed, like Deck itself. Use them commercially, change them, ship them, no attribution needed.