CSS Gradient Generator: Linear, Radial, Conic
About this tool
About CSS Gradient Generator
This CSS gradient generator builds linear, radial, and conic gradients with a live preview and gives you CSS or a Tailwind class to copy. Design a gradient visually and take the code with you. Choose linear, radial or conic, set the angle, and add up to six colour stops, each with its own colour and position. The preview updates as you drag, so you can tune soft brand backgrounds, bold hero sections or subtle card fills by eye instead of by guesswork. Start from a preset, or shuffle random colours for inspiration. The output is clean, standards-based CSS with a solid-colour fallback for very old browsers, plus an arbitrary-value class for Tailwind CSS. Copy it straight into your stylesheet, component or design system. Gradients are built entirely in your browser with no sign-up and no watermark. Or start from 26 named gradient templates grouped by mood, from SaaS heroes and sunsets to pastels and dark premium tones. Optional AI assist can also turn a description such as "calm fintech brand" into a starting gradient, using your own AI key.
Built and maintained by Abhi JainUpdated
How to Make a CSS Gradient
- 1
Pick a type
Choose linear, radial or conic, and set the angle for linear and conic gradients.
- 2
Set colour stops
Pick colours and drag each stop's position, add stops or start from a preset.
- 3
Copy the code
Copy the CSS or the Tailwind class and paste it into your project.
CSS Gradient Generator: questions and answers
Which browsers support CSS gradients?
Linear and radial gradients work in every current browser. Conic gradients work in all modern browsers released since 2020. The generated code includes a solid-colour fallback line.
How do I use the gradient in Tailwind CSS?
Switch to the Tailwind tab and copy the bg-[…] class. It uses Tailwind's arbitrary-value syntax, so it works without changing your config.
How do I make a hard colour edge instead of a blend?
Put two stops at the same position, for example red at 50% and blue at 50%. The colours then switch sharply at that point.
Can I animate a gradient?
Gradients can't be transitioned directly, but you can animate background-position on an oversized gradient, or animate a custom property registered with @property.
Can AI help me design a gradient?
Yes, optionally. Click AI, describe a mood, brand or scene, and apply the suggested stops, type and angle, then keep editing. It uses your own AI key (Claude, OpenAI, Gemini and others); only your description and the current stops are sent, straight from your browser to that provider. Without a key the generator works exactly the same.
Are there ready-made gradient templates?
Yes. The gallery has 26 named gradients grouped by mood: product and SaaS, warm sunsets, cool ocean tones, nature, pastels, vivid and dark premium. Each thumbnail is the real gradient; click one to load its type, angle and stops, then edit anything.
Related Tools
- Mesh Gradient GeneratorSoft multi-colour mesh gradients with draggable points, as PNG or CSS.
- Background GeneratorWallpapers and backgrounds from gradients, mesh, patterns and grain, at phone, desktop, 4K and social sizes.
- Color Palette GeneratorColour harmonies, tints and shades and a 50–950 scale, exported as CSS, Tailwind, JSON or PNG.
- Box Shadow GeneratorLayered CSS box shadows with inset, presets and a live preview.