Skip to content
Changelog
new toolcsscolor

Gradient Editor

v1.0

The Gradient Editor puts color stops front and center. A wide track shows your gradient left to right, with a draggable handle for every stop.

Slide one and a flag shows its percentage, and click an empty spot to add a stop colored from its neighbors. With the keyboard, Tab moves between handles, arrows nudge by 1 (Shift for 10), Home and End jump to the ends, and Delete removes a stop. A gradient always keeps at least two stops.

Between each pair of stops is a midpoint diamond, as in Figma and Photoshop, that shifts where the blend between two colors lands. It's exported as a standard CSS color hint, so the result matches the preview.

Linear, radial and conic gradients each get fitting controls. Linear has a circular angle dial, a number field and quick buttons for common angles. Radial has a shape toggle, the four extent keywords and a 3×3 origin grid with X and Y fields. Conic uses a from angle and the same origin grid. Reverse flips the stop order and Distribute spaces the stops evenly.

You can choose the color space for blending: sRGB (the default), OKLCH, OKLab, HSL and others. OKLCH and OKLab keep the midpoint's brightness and colorfulness, which avoids the gray in the middle of blue to yellow. HSL and OKLCH also take a hue direction. A comparison strip shows sRGB above your chosen space, and the copied CSS uses the modern syntax, such as linear-gradient(90deg in oklch, …).

Import parses any linear-gradient(), radial-gradient() or conic-gradient() value you paste, including angle units, to right style keywords, in oklch shorter hue, double-position stops, color hints and stops without positions. Colors can be hex, rgb, hsl, oklch, named or transparent. You can replace the gradient or append its stops, and a malformed paste names the part that failed and changes nothing. Corner keywords become 45° diagonals.

Undo and redo (⌘Z / ⇧⌘Z) cover every change, and a drag counts as one step. Output is a background-image declaration or a Tailwind bg-[…] class with a v4 @theme snippet. Twelve presets cover all three types and several color spaces.

Your gradient is remembered between visits, and Share puts it in a link. Nothing is uploaded.

All changes