CSS Gradient Generator
Build a CSS gradient with a live preview and copy the code.
Runs on your device. Files are never uploaded.How to use CSS Gradient Generator
- Pick the gradient type and angle
- Choose the colours
- Copy the CSS
About this tool
Choose linear, radial or conic, set the angle, pick two or three colours and see the result instantly. Copy the ready CSS, including a plain-colour fallback.
Like every tool on YantraStack, it is free with no accounts, limits or watermarks, and it works offline once the page has loaded. See how to verify that nothing is uploaded.
Questions
Can I use more than three colours?
Not here. Copy the code and add more colour stops by hand, for example “#f00 0%, #0f0 50%, #00f 100%”.
Guides
CSS box-shadow explained: offsets, blur, spread and inset
Learn what each box-shadow value does and build one with sliders, including inner shadows and a matching drop-shadow filter for icons.
How to generate a colour palette from one base colour
Choose a base colour and make analogous, complementary, triadic, tetradic, split-complementary or shade palettes, with CSS variables ready to copy.
How to make a CSS gradient and copy the code
Build a linear, radial or conic CSS gradient with a live preview, pick the angle and colours, then copy the CSS with a fallback colour.