nightshelf

pro

Get the prompt, project and Figma file with monthly ($29 a month) or yearly ($249 a year). Plus tax where it applies.

A one-screen website for a fictional storybook collection, "Nightshelf — A Library Above the Clouds", rendered live in three.js over an evening sky. Sixteen square cloth-bound storybooks stand on a slowly turning wheel like the rays of a sun, each with an AI gouache cover illustration and typography painted in code. Scroll, use a trackpad or swipe to turn the wheel; it snaps book by book, and the book in the light slides out of the ring while its neighbours fan away, with a collision check that keeps them from touching. The title, author, description and tags swap with a staggered, line-by-line reveal. Hover lifts and lights the book, a click takes it out of the wheel: it arcs towards you, the cover swings open on its hinge, the page block reacts and you leaf through a frontispiece, a title page with a vignette, four pages of the real opening chapter (verbatim from public-domain editions) and a colophon, each page turn a procedural paper bend that curls from the lower corner. Previous and Next buttons, the arrow keys or a click on either half turn the pages, and closing flies the book back into its exact slot. On phones one page is in view and the camera follows the turning leaf. Includes twinkling stars with a shooting star every few seconds, pointer parallax, a sky that dims while reading, an All books list that glides the wheel to any book, About and Order panels in frosted glass, an ambient evening track with synthesised paper sounds and an animated sound toggle, a loader and keyboard control.

what you get

prompt
Paste it into Claude, Codex, Kimi or Cursor to rebuild this template. Tested: we rebuild every template from its prompt before it goes live.
project
The Vite + React source code as a .zip, ready to run.
figma file
The editable design as a .fig file to import into Figma.

what's inside

  • loader
  • navigation
  • 3d gallery
  • carousel
  • book reader
  • page turn
  • side panel
  • sound toggle
  • keyboard navigation
  • touch gestures

stack

  • react
  • vite
  • typescript
  • three
  • webgl
  • gsap
  • canvas
  • web audio

fonts

Instrument Serif, Geist

Free fonts, linked in the prompt.

colors

  • #090719
  • #2D1837
  • #84445F
  • #E3998E
  • #F1E7D4
  • #FFFFFF

license

With monthly or yearly: personal and commercial work, client projects included. Don't resell or share the template, prompt or files.

read the license