Build linear, radial, and conic CSS gradients. Add color stops, adjust positions, pick from presets, and copy the CSS.
The CSS Gradient Generator lets you build linear, radial, and conic gradients interactively by picking colors, dragging stop positions, and selecting angles. A live preview updates instantly so you can iterate quickly, and the tool outputs ready-to-paste background, background-image, and Tailwind arbitrary-value snippets.
Whether you need a two-tone hero background or a complex multi-stop conic chart fill, this tool generates the exact CSS without requiring you to memorize gradient syntax. Everything runs locally in your browser — no images are uploaded or stored.
A linear gradient transitions colors along a straight line at a given angle. A radial gradient radiates from a central point outward in a circle or ellipse. A conic gradient rotates colors around a center point like a color wheel — useful for pie charts and angular effects.
The tool outputs a Tailwind arbitrary value in the format class="bg-[...]". Copy that class name and paste it directly into your HTML element. Tailwind's JIT compiler will generate the corresponding CSS on the fly. Make sure your Tailwind version supports arbitrary values (v3+).
Yes, up to five color stops are supported. Click + Add Stop to insert a new stop. Each stop has its own color picker and position slider so you can precisely control where each transition occurs. Stops are automatically sorted by position in the CSS output.