Template guide
Almost everything is a prop in the right panel. Start with the Fruit dial on the Home page.
- 01
Your four fruits
Open the Home page and select the Fruit dial layer. Its Fruits list holds everything that follows the chosen fruit: name, fruit line, juice, sugar and kcal, the can, the cut face, the swatch, the photo halves and the page colours (Ground, Surface, Text, Soft text, Accent, On accent) plus the 3D peel and juice colours.
Rename, re-colour or replace a fruit there and every section, the 3D fruit and the box builder follow it. You can have up to six.
- 02
The split, in real 3D
The Split section draws a real three.js fruit (r169, loaded from esm.sh). The peel uses the Peel texture and Peel relief images, tinted by each fruit's 3D peel colour. The cut faces are the Cut face images, and the can is your can photo.
Turn Real 3D off to use the photographed halves instead. Visitors who prefer reduced motion, and browsers without WebGL, always see the photographed, opened fruit with the can between the halves.
- 03
Photographs
Every photograph is a prop. The hero and the close share one scene in two shapes, 16:9 and 9:16: keep the wall in the same place in both so the can stands on it. Cans look best as cut-outs on a transparent background, about 709 by 1580 pixels.
- 04
Text and scroll lengths
Every line of text is a prop on its section. The pinned sections (Hero, Split, Range, Close) each have a Scroll length: how many screens of scroll they hold for. The Range runs sideways as you scroll down and its cans slide into place one by one.
- 05
Flavours in the CMS
The Flavours collection has one item per flavour with its own page at /flavours/name. Each item has its copy, numbers, can, cut face and colours, so a flavour page takes that fruit's look. Add an item and it appears in the Flavours list.
- 06
Build a box and the form
Build a box opens a sample box builder from the bar, the hero, the rail and the close. It shows the price and the cans but does not take payment: point the buttons at your shop's checkout when you have one. Its prices and text are props on the Navigation layer in the Site layout.
The contact form shows Sending, Sent and an error state. Put a form endpoint in its Send to field to receive messages.
- 07
Fonts, smooth scroll and motion
The type is Bricolage Grotesque for display and Geist for text, both from Google Fonts. Change the Display font and Text font fields on any section to another Google font.
Smooth scrolling uses Lenis through the Smooth scroll layer in the Site layout, and stays off on touch screens. Every motion respects reduced motion.
- 08
Sample content
Pith is a sample brand. The fruit, figures, growers, prices and addresses are made up, and the photographs are AI generated samples. Replace them with your own before you publish.