{"category":"calc","endpoint":"https://setget.net/v1/tools/css-gradient","examples":[{"input":{"angle":90,"stops":["#ff0000","#0000ff"]},"output":{"css":"linear-gradient(90deg, #ff0000, #0000ff)","declaration":"background: linear-gradient(90deg, #ff0000, #0000ff);","stops":[{"color":"#ff0000","position":0},{"color":"#0000ff","position":100}],"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"120\" height=\"120\" viewBox=\"0 0 120 120\"><defs><linearGradient id=\"g\" x1=\"0\" y1=\"0.5\" x2=\"1\" y2=\"0.5\"><stop offset=\"0%\" stop-color=\"#ff0000\"/><stop offset=\"100%\" stop-color=\"#0000ff\"/></linearGradient></defs><rect width=\"120\" height=\"120\" fill=\"url(#g)\"/></svg>"}},{"input":{"shape":"circle","stops":["gold","tomato 30%","rebeccapurple"],"type":"radial"},"output":{"css":"radial-gradient(circle, #ffd700, #ff6347 30%, #663399)","declaration":"background: radial-gradient(circle, #ffd700, #ff6347 30%, #663399);","stops":[{"color":"#ffd700","position":0},{"color":"#ff6347","position":30},{"color":"#663399","position":100}]},"title":"Radial with a positioned stop"}],"input_schema":{"additionalProperties":false,"properties":{"angle":{"description":"Angle in degrees. For linear, 0 points up and 90 points right (default 180). For conic, the starting angle (default 0).","examples":[90],"maximum":3600,"minimum":-3600,"type":"number"},"direction":{"description":"For linear gradients, a direction such as \"to right\" or \"to bottom left\" instead of an angle.","examples":["to right"],"maxLength":30,"type":"string"},"shape":{"default":"ellipse","description":"For radial gradients, the shape.","enum":["ellipse","circle"],"type":"string"},"stops":{"description":"Two or more colours in order. Add a position to any of them, as in \"#ff0000 25%\".","examples":[["#ff0000","#0000ff"]],"maxItems":20,"type":"array"},"type":{"default":"linear","description":"Kind of gradient.","enum":["linear","radial","conic"],"type":"string"}},"required":["stops"],"type":"object"},"keywords":["css gradient generator","linear-gradient","radial gradient","conic gradient","background gradient css","gradient maker","svg gradient"],"related":["color-convert","palette-generate","color-blend"],"slug":"css-gradient","summary":"Build a CSS linear, radial or conic gradient from a list of colour stops, with an SVG preview.","tier":"inline","title":"CSS gradient generator","url":"https://setget.net/tools/css-gradient"}
