The stack
What each part does here.
I built the interactive parts of Stack Burger Co. with Svelte. These are the technologies on the page, and the job each one does.
Framework
Svelte
Runs three islands, the hero burger, the 3D tray and the order panel, which share one rune store of layers, price and shake requests.
3D & WebGL
Threlte
Builds both scenes as Svelte components, one per layer of the order, rendering only on demand and pausing when they leave the screen.
3D & WebGL
Rapier physics
Drops each layer as a rigid body with a fitted collider, steps at a fixed 60 Hz, sleeps settled stacks and loads only near the builder.
Scroll & timeline
GSAP
Drops the hero burger's layers onto the board, counts the total up, pops price tags and receipt rows, and slaps sections into view.
Built on the same base as every template
- AstroBuilds every page to static HTML and loads each island's framework only where it is used.
- TypeScriptTypes the content, the components and every script, so mistakes surface at build time.
- Tailwind CSS 4Utility classes and design tokens, scoped to each template's own folder.
What each technology adds in general is under how my 2D templates and 3D templates differ.
Typography
The fonts it's set in.
I chose two open-licence families for Stack Burger Co. and host them with the site, so the text never waits on a font service.
Headings
Fredoka
In the font library: FredokaStack Burger Co.
Text
Nunito
In the font library: NunitoYour paragraphs, set in Nunito as on Stack Burger Co.: how your visitors read every page.
See Stack Burger Co. in other fonts before you choose yours.
Try other fonts on Stack Burger Co.Colours
The colours it's painted in.
I painted Stack Burger Co. in eight colours on a light background, each with a single job: the same eight jobs every palette in my colour library fills.
- Background
#FFF4DD - Surface
#FFFCF4 - Text
#2B1D16 - Muted text
#5C4334 - Accent
#C2341C - On accent
#FFFFFF - Second accent
#F5B82E - Lines
#DDD2BD
- Scheme
- Light
- Previews in
- Light palettes
- 3D scene
- Keeps its own colours, so a new palette repaints the page around it.
See Stack Burger Co. in other colours before you choose yours.
Try other colours on Stack Burger Co.Signature effects
What you'll see.
Motion style: Physics & play, Product viewer.
- 01Build-a-burger with real 3D physics
- 02Ingredients that drop and stack
- 03Shake to wobble the stack
- 04Live order and price
The app behind this template
Stack Burger Orders
Online ordering for a burger restaurant, with a 3D burger to build and a live kitchen board, from checkout to the rider's hand-off.
- Astro
- Svelte
- Postgres
- Drizzle
Live demo coming soon
Start a project
Start with Stack Burger Co..
Tell me about your business, and I'll shape Stack Burger Co. around it: your words, your pictures and the way you want visitors to reach you.
Or email me at paramaguruvh@gmail.com
