Bookshop website · Featured · HTML template included

Marginalia

Marginalia is a premium bookshop website website template built with Next.js, TypeScript, Tailwind and CSS 3D books driven by plain JavaScript (React + CSS, no libraries). It also ships as a plain HTML template: the download includes a hand-editable HTML, CSS and JavaScript version with no build step. A bookshop website built around real 3D books drawn from their covers, the spine coloured from each cover and set in type. The books stand in a curved arc in front of a painted reading room and the one in the middle turns to face you; click it and it flies to the middle of the screen and opens on its hinge to its first line, with its formats and Add to bag. Then oak shelves by genre whose books slide out as you point at them, a bookseller's pick that turns from spine to cover to back as you scroll while the note writes itself in, a grid of books that swing toward you, the shopfront opening out of an arched window, and a bag that stacks your books as spines. One download has all three: the full Shopify theme (every store page designed to match, with Shopify's cart and checkout), the Next.js site and a plain HTML version. The code of its first section is free as a Claude Code prompt; the exact tested source code is $19 for this template alone (one project), or $249 for Full Access — every template on the shelf, with a commercial license for unlimited projects.

Next.jsTypeScriptTailwind CSSCSS 3DHTML
Source code locked
Live demo ↗

Buy Marginalia on its own for $19 (one project), or get Full Access — all 40 templates, every future drop, unlimited projects — for $249 once.

Founding price — rises to $299 when the shelf reaches 60 templates (20 to go).

What you spend on single website templates in 30 days counts towards Full Access. Buy 10 within 30 days and Full Access unlocks at no extra charge.

Images and video in the demo are placeholders for preview only, not licensed for a live site. Replace them with your own before launch. License

Shopify theme included

Selling on Shopify? The same download has the full Shopify theme: every store page designed to match (book page, collections, search, cart, journal, accounts), editable in the theme editor, with Shopify's cart and checkout, plus its setup guide and the demo books to import. The theme, the Next.js site and the HTML version: one $19 package.

See the demo store ↗ · password marginalia

Specifications

Framework
Next.js · TypeScript · Tailwind
HTML version
Included · plain HTML, CSS & JS
Motion
CSS 3D books driven by plain JavaScript (React + CSS, no libraries)
Category
Commerce
Use case
Bookshop website
Responsive
Desktop → mobile
License
Commercial · one project (single) or unlimited (Full Access)
Delivery
Instant ZIP download

What the paid download adds

  • The same design as a Shopify section (Marginalia for Shopify): one file to paste into any Online Store 2.0 theme
  • Plain HTML, CSS & JS version included — no build step, opens straight from the folder
  • The exact deployed code — tested, not AI-guessed
  • Config-driven copy, palette & assets
  • Compressed media included
  • Deploy README — Vercel or your own VPS
  • Commercial license — one project per single template, unlimited with Full Access
  • Free updates to this template

Skip the build: download this exact site for $19.

The free prompt is the demo's real code for its opening section. The download is the whole site from the demo, every section, tested, images included: open it, swap in your own pictures, text and prices.

Download the code · $19

The free code prompt

The demo's real source code for its opening section, file by file, with every picture and film already hosted. Paste it into Claude Code and it builds exactly what you see in the demo, free. The download is the whole Marginalia site, tested and licensed, for $19.

# MARGINALIA: full code

A bookshop website built around real 3D books drawn from their covers, the spine coloured from each cover and set in type. The books stand in a curved arc in front of a painted reading room and the one in the middle turns to face you; click it and it flies to the middle of the screen and opens on its hinge to its first line, with its formats and Add to bag. Then oak shelves by genre whose books slide out as you point at them, a bookseller's pick that turns from spine to cover to back as you scroll while the note writes itself in, a grid of books that swing toward you, the shopfront opening out of an arched window, and a bag that stacks your books as spines. One download has all three: the full Shopify theme (every store page designed to match, with Shopify's cart and checkout), the Next.js site and a plain HTML version.

Below is the complete source of the opening section of the demo at https://studio.smartduke.com/templates/marginalia. Create these files **exactly as written**. Do not restyle, rename, simplify or "improve" anything: every number in them is tuned. The rest of the page comes with the download.

## 1. Set up the project

Create a Next.js app (App Router, TypeScript, Tailwind CSS v4, `src/` folder):

```bash
npx create-next-app@latest marginalia --ts --app --src-dir --tailwind --eslint --import-alias "@/*" --use-npm
cd marginalia
```

It needs Next.js 16 and React 19 (what create-next-app installs today).

Then replace or create the 16 files in section 3. Delete anything else create-next-app put in `src/app/` (for example `page.module.css`) except `favicon.ico`.

Run `npm run dev` and open http://localhost:3000.

Create a free account to unlock the code

No password — we email you a 6-digit code. A free account unlocks 2 prompts a day and keeps your downloads. See our privacy policy.

Marginalia — questions

What is the Marginalia template built with?

Marginalia is a Bookshop website website built with Next.js, TypeScript, Tailwind CSS, CSS 3D, HTML. The motion is driven by CSS 3D books driven by plain JavaScript (React + CSS, no libraries), with Lenis smooth scrolling and GSAP ScrollTrigger for the scroll choreography.

How much does Marginalia cost?

The free code prompt, the demo's real code for its opening section, is $0. The exact, tested source code — the same site shown in the demo — costs $19 on its own, with a commercial license for one project. Full Access is $249 once for every template plus every future drop, with a license for unlimited projects. Whatever you spend on single templates counts towards Full Access for 30 days, and buying 10 templates within 30 days unlocks Full Access at no extra charge. Both are instant ZIP downloads.

Can I use Marginalia for a client project?

Yes. Buying Marginalia on its own includes a commercial license for one end product, which can be a paid client project. Full Access covers Marginalia — and every other template — in unlimited end products. Everything is config-driven, so copy, palette and assets re-skin from a single file.

What's the difference between the free prompt and the paid download?

The free prompt is the demo's real source code for its opening section, with the pictures hosted, so Claude Code builds that part exactly as you see it. The paid download is the whole site: every section, tested, documented and licensed, with free updates.

Is Marginalia available as a plain HTML template?

Yes. Alongside the Next.js source, the Marginalia download includes an html/ folder with the same site as plain HTML, CSS and JavaScript. There is no build step and nothing to install: open index.html in a browser or upload the folder to any web host. The copy lives in one HTML file, colours and fonts are CSS variables, and the animation is one readable script.

Related templates

Part of

Unlock Marginalia — and everything else.

$19 buys this exact tested site for one project. Full Access unlocks it, the other 39 on the shelf, and every future drop — $249 once, unlimited projects.

What you spend on single website templates in 30 days counts towards Full Access. Buy 10 within 30 days and Full Access unlocks at no extra charge.