context
Getting a gradient you actually like means endless nudging of stops in a design tool, then fighting banding and wrong aspect ratios when you export it as a wallpaper. I wanted one focused workspace where gradients are the whole point, from first idea to a MacBook-ready file.
constraints
- -Exports had to stay band-free and sharp at 4K–6K, with no upscaling
- -Slider drags had to feel instant, even for blurred mesh and frosted gradients
- -It had to feel like a real design tool: canvas, frames, layers, shortcuts
- -Everything runs in the browser, with no server rendering
approach
Built on Next.js with the Toolcraft UI kit for the Figma-style panels. Gradients are rendered per pixel by a custom engine (linear, radial, angular, diamond, mesh blobs and a frosted wash), with grain and dithering baked in. Previews and exports run in Web Workers so the canvas never blocks, and images are analysed in OKLab to fit the closest gradient model.
key decisions
- -One renderer for both previews and exports, so what you see is what you download
- -Re-render at the target size instead of scaling, so wallpapers never pixelate
- -Smooth effects computed on a coarse grid and upsampled, about 10× faster with no visible difference
- -Color codes live beside each frame on the canvas, never inside the exported image
outcome
A focused gradient workspace: draw frames, iterate with randomize and variations, paste a photo to get its gradient, and download a wallpaper sized for a MacBook Pro 16″ or a 4K–6K display in about a second.