CSS Gradient Generator – Linear, Radial & Conic
background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
bg-[linear-gradient(135deg,#6366f1_0%,#06b6d4_100%)]
Create CSS gradients visually. Pick your gradient type (linear, radial, or conic), add up to 5 color stops, and drag the angle slider or click a preset direction. The CSS and Tailwind JIT class update live. Copy with one click and paste directly into your code.
Frequently Asked Questions
What is a CSS linear gradient?
A CSS linear gradient transitions between two or more colors along a straight line. You control the direction using an angle (e.g., 90deg for left-to-right) or a keyword (to right, to bottom). Example: background: linear-gradient(90deg, #6366f1, #06b6d4);
What is a radial gradient?
A radial gradient radiates outward from a center point, creating a circular or elliptical blend. It is useful for spotlight effects or circular color transitions. Example: background: radial-gradient(circle, #6366f1, #06b6d4);
What is a conic gradient?
A conic gradient sweeps colors around a center point, like a colour wheel or pie chart. It uses an angle to define the starting position. Example: background: conic-gradient(from 0deg, red, yellow, green, blue);
How do I add more than two colors to a gradient?
Click the "+ Add color" button to add additional color stops (up to 5). Each stop is evenly spaced. You can pick any color with the color picker and the CSS is regenerated instantly.
What are color stops in a gradient?
Color stops define where each color begins and ends along the gradient line. A stop like #6366f1 0% means indigo starts at the beginning. #06b6d4 100% means cyan ends at the end. You can add intermediate stops for more complex multi-color effects.
How do I use the Tailwind arbitrary value?
In Tailwind CSS v3 (JIT mode) and v4, you can use arbitrary values in square brackets. The generated class like bg-[linear-gradient(135deg,#6366f1_0%,#06b6d4_100%)] can be pasted directly into your HTML className and will work in projects with Tailwind JIT.
Can I use gradients as text fill?
Yes. Apply the gradient as background-image, then add background-clip: text and -webkit-background-clip: text, and set color: transparent. This clips the gradient to the text shape, creating a gradient text effect.
What browser support do CSS gradients have?
Linear and radial gradients are supported in all modern browsers and have been for over a decade. Conic gradients have excellent modern browser support (Chrome 69+, Firefox 83+, Safari 12.1+) and are safe to use in 2024+.
Related Developer Tools
Base64 Encoder / Decoder
Encode and decode Base64 instantly.
Border Radius Generator
Generate CSS border-radius visually with live preview.
Box Shadow Generator
Generate CSS box shadows visually with live preview.
Color Palette Generator
Create harmonious color palettes from any color.
Color Picker
Pick colors and get HEX, RGB, HSL, CMYK instantly.
CSS Formatter / Beautifier
Format and beautify CSS code instantly.
CSS Minifier
Minify CSS code instantly in browser.
HEX to RGBA Converter
Convert HEX colors to RGB/RGBA instantly.
HTML Minifier
Minify HTML to reduce page size instantly.
HTML Table Generator
Create HTML tables in seconds.
