Use this template — copy the source into a new project:
npx degit bswxyz/formwork-chroma my-appLive demo → https://bswxyz.github.io/formwork-chroma/ · How it was built
An iridescent liquid-metal blob raymarched live in a fragment shader — no models, no textures, just math.
A free, MIT-licensed website template. Good for: creative studios, motion designers, anyone who wants a jaw-drop hero. The demo brand ("CHROMA") is fictional — every word and colour is meant to be replaced with yours.
- Signed-distance-field raymarching with smooth-min metaball fusion
- Procedural iridescent environment + Fresnel rim — chrome without an HDRI
- One metaball follows the cursor, so visitors stir the metal
This repo is a template — everything is plain HTML/CSS/JS with relative paths, so it works under any repo name with zero configuration.
- Click Use this template → Create a new repository (top of this page).
Name it whatever you like —
my-site,portfolio, anything. - In your new repo: Settings → Pages → Build and deployment → Deploy from a branch,
then pick
main// (root)and save. (CLI: see below.) - Wait ~1 minute. Your site is live at
https://YOUR-USERNAME.github.io/YOUR-REPO-NAME/.
Prefer the command line?
gh repo create my-site --template bswxyz/formwork-chroma --public --clone
cd my-site
gh api --method POST /repos/YOUR-USERNAME/my-site/pages \
-f 'source[branch]=main' -f 'source[path]=/'No build step, no dependencies to install — edit the files, push, done. The only external requests are Google Fonts and (where used) pinned CDN copies of GSAP/three.js.
- Blob layout: edit the sphere centres/radii in
map()inmain.js;smink-values control melt - Iridescence: the
env()function's cosine palette sets the rainbow banding - Type: Syne + Space Grotesk via
:root/ Google Fonts — swap freely
The /guide/ page documents the signature technique in depth (with code) — keep it, rewrite it,
or delete the folder entirely.
index.html the page
styles.css all styling (design tokens in :root at the top)
main.js the signature effect + motion
guide/index.html how-it-works write-up (optional — yours to keep or delete)
- Works with JS disabled or a CDN failure (content is never permanently hidden)
- Respects
prefers-reduced-motion; keyboard focus styles throughout - Canvas/WebGL feature-detected with graceful fallbacks; devicePixelRatio capped for performance
- Responsive at phone / tablet / desktop widths
MIT — free for personal and commercial use, no attribution required (a link back is always appreciated). Part of FORMWORK — a collection of 25 free website templates: the full gallery →