Color stops
background-image: linear-gradient(90deg, #226688 0%, #88cc99 100%);
Ready
A gradient in a design tool is a stack of stops. The CSS is one line, and the bugs hide in the syntax: a missing percent, a color with no hash, a single stop. This page writes background-image for a linear, radial, or conic gradient. Each stop is a line with a hex color and a percentage. The opening pair is #226688 at 0% and #88cc99 at 100%, linear, at 90 degrees, which comes out as background-image: linear-gradient(90deg, #226688 0%, #88cc99 100%);
Ninety degrees runs left to right. Zero runs bottom to top, because CSS angles start at the vertical and move clockwise. Radial ignores the angle and uses an ellipse. Conic uses the angle as the start of the sweep, written as from 90deg. You need at least two stops. Stops can share a position if you want a hard stripe. An eight-digit hex is allowed when a stop should be translucent.
This is a rule, not a PNG. The mesh page bakes a two-color pooled blend into an image for tools that cannot read CSS. Use that when the gradient has to be a file. Use this when it has to stay in a stylesheet and accept more than two stops.
Linear, 90 degrees, stops #226688 0% and #88cc99 100%.
background-image: linear-gradient(90deg, #226688 0%, #88cc99 100%);
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
Left to right. CSS zero points upward and angles move clockwise, so 180 points down.
Each line has to be a hex color and a percentage, like #226688 0%. A bare color, or rgb(), or a percentage without a color, does not parse here.
Two stops at the same percentage, different colors. The blend has no room to happen.
When the next tool is a slide, a video editor, or an image tag. The mesh and background pages export bitmaps. This page exports CSS.
No. Radial is an ellipse. The angle is used by linear and by conic.