/* https://grabient.com/_gG2gIMgJ4gHmgEDgFYgaMgRfgVAgGegC_gEg?style=linearSwatches&steps=11&angle=0 */
background: linear-gradient(0deg, #059e8c 0.000%, #059e8c 9.091%, #047054 calc(9.091% + 1px), #047054 18.182%, #6f4d4f calc(18.182% + 1px), #6f4d4f 27.273%, #db4581 calc(27.273% + 1px), #db4581 36.364%, #db5bc9 calc(36.364% + 1px), #db5bc9 45.455%, #6e86f6 calc(45.455% + 1px), #6e86f6 54.545%, #03b0ea calc(54.545% + 1px), #03b0ea 63.636%, #06c7ad calc(63.636% + 1px), #06c7ad 72.727%, #73be68 calc(72.727% + 1px), #73be68 81.818%, #dd9b49 calc(81.818% + 1px), #dd9b49 90.909%, #d86d66 calc(90.909% + 1px) 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gG2gIMgJ4gHmgEDgFYgaMgRfgVAgGegC_gEg?style=linearSwatches&steps=11&angle=0 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 847.214,400.000 L -47.214,400.000 L -47.214,363.636 L 847.214,363.636 Z" fill="#059e8c" fill-opacity="1.000" /><path d="M 847.214,363.636 L -47.214,363.636 L -47.214,327.273 L 847.214,327.273 Z" fill="#047054" fill-opacity="1.000" /><path d="M 847.214,327.273 L -47.214,327.273 L -47.214,290.909 L 847.214,290.909 Z" fill="#6f4d4f" fill-opacity="1.000" /><path d="M 847.214,290.909 L -47.214,290.909 L -47.214,254.545 L 847.214,254.545 Z" fill="#db4581" fill-opacity="1.000" /><path d="M 847.214,254.545 L -47.214,254.545 L -47.214,218.182 L 847.214,218.182 Z" fill="#db5bc9" fill-opacity="1.000" /><path d="M 847.214,218.182 L -47.214,218.182 L -47.214,181.818 L 847.214,181.818 Z" fill="#6e86f6" fill-opacity="1.000" /><path d="M 847.214,181.818 L -47.214,181.818 L -47.214,145.455 L 847.214,145.455 Z" fill="#03b0ea" fill-opacity="1.000" /><path d="M 847.214,145.455 L -47.214,145.455 L -47.214,109.091 L 847.214,109.091 Z" fill="#06c7ad" fill-opacity="1.000" /><path d="M 847.214,109.091 L -47.214,109.091 L -47.214,72.727 L 847.214,72.727 Z" fill="#73be68" fill-opacity="1.000" /><path d="M 847.214,72.727 L -47.214,72.727 L -47.214,36.364 L 847.214,36.364 Z" fill="#dd9b49" fill-opacity="1.000" /><path d="M 847.214,36.364 L -47.214,36.364 L -47.214,-0.000 L 847.214,0.000 Z" fill="#d86d66" fill-opacity="1.000" /></g>
</svg>
["#059e8c", "#047054", "#6f4d4f", "#db4581", "#db5bc9", "#6e86f6", "#03b0ea", "#06c7ad", "#73be68", "#dd9b49", "#d86d66"]
// https://grabient.com/_gG2gIMgJ4gHmgEDgFYgaMgRfgVAgGegC_gEg?style=linearSwatches&steps=11&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 11.0;
const float ANGLE = 0.0;
vec3 palette(float t) {
vec3 a = vec3(0.438, 0.524, 0.632);
vec3 b = vec3(0.486, 0.259, 0.344);
vec3 c = vec3(1.676, 1.119, 1.344);
vec3 d = vec3(0.414, 0.191, 0.288);
return a + b * cos(6.283185 * (c * t + d));
}
// N hard swatches sampled from the palette
vec3 stops(float t) {
float i = min(floor(clamp(t, 0.0, 1.0) * STEPS), STEPS - 1.0);
return palette(i / (STEPS - 1.0));
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 p = fragCoord - 0.5 * iResolution.xy;
// CSS angle: 0 = up, clockwise; span = CSS gradient-line length
vec2 dir = vec2(sin(radians(ANGLE)), cos(radians(ANGLE)));
float len = abs(iResolution.x * dir.x) + abs(iResolution.y * dir.y);
float t = dot(p, dir) / len + 0.5;
fragColor = vec4(stops(t), 1.0);
}
[
[0.438, 0.524, 0.632],
[0.486, 0.259, 0.344],
[1.676, 1.119, 1.344],
[0.414, 0.191, 0.288]
]