CSS code
Color stops
export const prerender = true;
Generate beautiful random CSS gradients — linear, radial, and conic — with harmonious colors.
What gradient types are supported?
Linear (with a random angle), Radial (circular from a random center point), and Conic (sweeping around a center point).
How are the colors generated?
Colors are generated using HSL harmony rules — analogous hue spreads, consistent saturation (50–90%), and balanced lightness (35–65%) — so gradients always look beautiful.
Can I use the CSS code directly?
Yes. The generated CSS background value is ready to paste into your stylesheet or inline style attribute.