The angle is a direction, not a rotation
0deg points to the top and 90deg to the right, so 180deg runs downward. The gradient line is as long as the box needs, which is why the same stops look different on a square and on a wide hero.
Pikkola Gradient, tool No. 86
Stack linear, radial and conic layers, drag the angle on the canvas, move a stop with the handle, and leave with the CSS. The same stack exports as an SVG with real gradients or as a PNG, and the pattern on top can be dots, a grid or grain.
The studio
Drag on the canvas to turn a linear layer or move the centre of a radial one. A stop moves along the strip under the layer, so the position you see is the position in the CSS.
Two stops are the minimum.
Paste it into a rule.
One gradient per layer.
The PNG is drawn at 1200 × 750.
The colour list is the easy part. The angle, the blend and the pattern are what make a stack look designed rather than generated.
0deg points to the top and 90deg to the right, so 180deg runs downward. The gradient line is as long as the box needs, which is why the same stops look different on a square and on a wide hero.
Screen lightens, multiply darkens, overlay keeps the contrast of the layer under it. Two gradients that look muddy alone can make a third colour together, and one blend value is the whole difference.
A little noise hides the banding that a smooth gradient shows on an eight-bit screen. The grain here is a turbulence filter in an SVG data URI, which costs one line of CSS and no request.
The page writes CSS that a browser will draw exactly as the preview does, an SVG that other tools can read, and a PNG for the places that need a raster.
| Part | What this page does | What it will not do |
|---|---|---|
| Layers | Up to three, each linear, radial or conic, stacked in the CSS order | Animate them: the output is a static background |
| Stops | Two to five per layer, dragged along the strip | Interpolate in a colour space other than sRGB |
| The pattern | Dots, a grid or grain, drawn above the gradients | Tile a bitmap you supply |
| The SVG | One native gradient definition per layer, plus a pattern or a filter | Reproduce a conic gradient natively: it is written as 120 wedges |
| The PNG | Drawn on a canvas at 1200 × 750, blend modes included | Match the preview pixel for pixel at other sizes |
| The CSS | background-color, background-image, background-size and blend modes | Write a fallback for a browser without conic-gradient |
Everything is generated from the state on this page and nothing is stored: a reload returns to the first preset. The CSS is plain enough to edit by hand afterwards, which is the point of exporting it instead of an image.
Field guide
A CSS gradient is a background image with no file behind it. Stacking a few of them is how a flat rectangle gets depth, and the three controls that decide whether the result looks drawn or generated are the angle, the blend mode and the grain.
linear-gradient(0deg, ...) runs upward, so the first colour is at the bottom; 90deg runs to the right. The gradient line is sized to the box, which is why the same two colours look different in a square and in a wide hero: the line is longer and every stop spreads over more pixels. That is usually a feature. When it is not, a fixed background-size with a repeating gradient, or a radial gradient, keeps the geometry stable across sizes.
A conic gradient starts at twelve o'clock and sweeps clockwise unless from says otherwise. It is the only one of the three that makes a pie, a colour wheel or a spotlight that turns with the text, and it is the one SVG cannot do natively.
background-image takes a comma-separated list, and the first item is painted on top. Each layer has its own background-size, background-position and background-blend-mode in the same order, which is why the export writes all four lists when more than one layer is present. A layer can also be a pattern: a repeating radial gradient is dots, two repeating linear gradients are a grid, and both cost no request.
background-blend-mode mixes a layer with the layers under it inside the element. screen lightens and is the right choice for a glow, multiply darkens and is how a texture lands on a photo, overlay keeps the contrast of what is underneath. The same two gradients with and without a blend are two different designs, which is why the control is here and not in a comment.
An eight-bit screen holds 256 levels per channel, and a smooth transition across a thousand pixels has to step through them, so a soft gradient shows bands on a large monitor and in a compressed screenshot. A little noise breaks the steps up: the eye averages adjacent pixels and the band disappears. The trick is as old as film grain and it is the one place where adding a texture is a technical fix rather than a taste.
Here the grain is an SVG feTurbulence filter inside a data URI, with the strength in the rect's opacity. It is one line of CSS and no extra request, and it scales with background-size rather than tiling visibly like a PNG would.
The CSS is for a page: it stays editable, it is smaller than any image, and it responds to the element's size. The SVG is for a design tool or a place that needs a file: each layer becomes a real gradient definition, patterns become <pattern>, and a conic layer becomes 120 wedges because SVG 1.1 has no conic gradient. The PNG is for a social card, a slide or an email where CSS does not travel, and it is drawn at a fixed 1200 × 750 so that two people exporting the same stack get the same file.
When the question is whether text stays readable on the result, Pikkola Contrast measures it. When the gradient is going into a component, Pikkola CSS formats the rule around it.
No. The preview is a div with the generated CSS, the SVG is a string and the PNG is drawn on a canvas in this tab. Nothing is stored, so a reload starts again; the only request after the page loads is the cookieless page-view count.
It should not, and the export is drawn from the same layer list with the same blend modes at 1200 × 750. What can differ is the screen: a wide monitor renders the preview at a different aspect ratio, so a radial centre at 18% 82% lands on a different pixel. The PNG is the fixed-size answer.
Yes. A colour and an angle are not copyrightable, and the CSS this page writes is yours. Whether the result looks like a particular brand is a trademark question rather than a licence one, and that is true of any two colours.
Because SVG 1.1 has linear and radial gradients and no conic one. Writing 120 wedge paths produces a shape that every renderer draws and that can still be edited, at the cost of a larger file. The CSS export uses the real conic-gradient, so use that where the target is a browser.
Add grain, which is the noise pattern here, or move two stops very close together to make a hard edge on purpose. Banding appears when a smooth transition crosses many pixels at eight bits per channel, and a little noise dithers the edge so the eye stops seeing the steps. It is the one case where a texture is a technical fix.