/* https://grabient.com/_gJ0gHlgDgf7Cf7YgHyf5kf7zgCwgUuf2wfwVhBxgt6gD?style=linearSwatches&steps=13&angle=180 */
background: linear-gradient(180deg, #dcd4d8 0.000%, #dcd4d8 7.692%, #ccced7 calc(7.692% + 1px), #ccced7 15.385%, #bbc7d6 calc(15.385% + 1px), #bbc7d6 23.077%, #a9bed4 calc(23.077% + 1px), #a9bed4 30.769%, #98b6d0 calc(30.769% + 1px), #98b6d0 38.462%, #88accc calc(38.462% + 1px), #88accc 46.154%, #79a2c7 calc(46.154% + 1px), #79a2c7 53.846%, #6d98c1 calc(53.846% + 1px), #6d98c1 61.538%, #628dba calc(61.538% + 1px), #628dba 69.231%, #5b82b3 calc(69.231% + 1px), #5b82b3 76.923%, #5778ab calc(76.923% + 1px), #5778ab 84.615%, #566ea2 calc(84.615% + 1px), #566ea2 92.308%, #586498 calc(92.308% + 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/_gJ0gHlgDgf7Cf7YgHyf5kf7zgCwgUuf2wfwVhBxgt6gD?style=linearSwatches&steps=13&angle=180 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M -47.214,0.000 L 847.214,-0.000 L 847.214,30.769 L -47.214,30.769 Z" fill="#dcd4d8" fill-opacity="1.000" /><path d="M -47.214,30.769 L 847.214,30.769 L 847.214,61.538 L -47.214,61.538 Z" fill="#ccced7" fill-opacity="1.000" /><path d="M -47.214,61.538 L 847.214,61.538 L 847.214,92.308 L -47.214,92.308 Z" fill="#bbc7d6" fill-opacity="1.000" /><path d="M -47.214,92.308 L 847.214,92.308 L 847.214,123.077 L -47.214,123.077 Z" fill="#a9bed4" fill-opacity="1.000" /><path d="M -47.214,123.077 L 847.214,123.077 L 847.214,153.846 L -47.214,153.846 Z" fill="#98b6d0" fill-opacity="1.000" /><path d="M -47.214,153.846 L 847.214,153.846 L 847.214,184.615 L -47.214,184.615 Z" fill="#88accc" fill-opacity="1.000" /><path d="M -47.214,184.615 L 847.214,184.615 L 847.214,215.385 L -47.214,215.385 Z" fill="#79a2c7" fill-opacity="1.000" /><path d="M -47.214,215.385 L 847.214,215.385 L 847.214,246.154 L -47.214,246.154 Z" fill="#6d98c1" fill-opacity="1.000" /><path d="M -47.214,246.154 L 847.214,246.154 L 847.214,276.923 L -47.214,276.923 Z" fill="#628dba" fill-opacity="1.000" /><path d="M -47.214,276.923 L 847.214,276.923 L 847.214,307.692 L -47.214,307.692 Z" fill="#5b82b3" fill-opacity="1.000" /><path d="M -47.214,307.692 L 847.214,307.692 L 847.214,338.462 L -47.214,338.462 Z" fill="#5778ab" fill-opacity="1.000" /><path d="M -47.214,338.462 L 847.214,338.462 L 847.214,369.231 L -47.214,369.231 Z" fill="#566ea2" fill-opacity="1.000" /><path d="M -47.214,369.231 L 847.214,369.231 L 847.214,400.000 L -47.214,400.000 Z" fill="#586498" fill-opacity="1.000" /></g>
</svg>
["#dcd4d8", "#ccced7", "#bbc7d6", "#a9bed4", "#98b6d0", "#88accc", "#79a2c7", "#6d98c1", "#628dba", "#5b82b3", "#5778ab", "#566ea2", "#586498"]
// https://grabient.com/_gJ0gHlgDgf7Cf7YgHyf5kf7zgCwgUuf2wfwVhBxgt6gD?style=linearSwatches&steps=13&angle=180
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
const float ANGLE = 180.0;
vec3 palette(float t) {
vec3 a = vec3(0.693, 0.550, 0.289);
vec3 b = vec3(-0.356, -0.332, 0.558);
vec3 c = vec3(-0.367, -0.239, 0.157);
vec3 d = vec3(1.329, -0.589, -1.000);
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.693, 0.550, 0.289],
[-0.356, -0.332, 0.558],
[-0.367, -0.239, 0.157],
[1.329, -0.589, -1.000]
]