Build a hero card for a fictional breathing coach app, Lull, up to 760 by 560px, 28px radius, deep plum (#140d1f), filled by a WebGL fragment shader at 0.85 of the pixel ratio (capped at 1.5). Draw six nested rounded squares from a signed distance function, rotating slowly in alternating directions and morphing between square and circle, peach (#ffb38a) inside to lilac (#b9a3ff) outside. The lines are 1.2 units thick and their edge softness depends on distance from a focus point: 0.0025 right at the focus, growing to 0.085 far away, so the shapes are crisp near your pointer and melt into blur elsewhere; near the focus they also turn slightly mint (#8fe3cf) and gain a small halo. Add fine grain to stop banding. The rings breathe with the coach: they grow over 4s for "Breathe in", stay large for 4s on "Hold" and shrink over 6s for "Breathe out", and the serif word at the top changes with each phase. Overlay "Lull, a breathing coach", "In for 4, hold for 4, out for 6" and a pill button "Start a 2 minute session" that shows a countdown and becomes "End session". The focus follows the mouse or a dragging finger and drifts in a slow loop after 2.2s idle. Escape ends a session. Reduced motion stops the breathing. Fall back to CSS rings without WebGL.
Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.
Use it in three steps
- Copy the prompt with the button above.
- Paste it into your AI site builder, or any AI chat that writes code.
- Make it yours by changing the breathing counts and the colours of the rings.
About this SDF shader
This SDF shader draws every shape from a single formula that answers one question for each pixel: how far is it from the edge of a rounded square? With that distance in hand, the shader can make a line as sharp or as soft as it likes, and here the softness depends on how far the pixel is from your pointer. The six rings come into crisp focus wherever you point and melt into a soft glow everywhere else, like a camera finding its subject.
The shapes also breathe. Over four seconds they swell for the in breath, hold for four, and shrink over six for the out breath, while the word at the top tells you what to do. Each ring slowly turns and morphs between a square and a circle, so the picture never repeats exactly and stays calm to watch for two full minutes.
Why the prompt works
- It names the technique, a signed distance function in a WebGL fragment shader.
- It gives the softness range, 0.0025 to 0.085, which is what makes focus and blur.
- It sets the breathing timings and links them to the copy on screen.
- It keeps the shader light, with a resolution cap and a CSS fallback.
Where to use it
Wellbeing and meditation apps, audio products, focus timers and calm landing pages. Keep the text short and the colours soft, so the shapes stay the centre of attention.
The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.