/* https://grabient.com/_gG5gIDgJQgGmgF7gJtgGygGFgBngI6gH_gKV?style=linearSwatches&steps=21&angle=0 */
background: linear-gradient(0deg, #0f2343 0.000%, #0f2343 4.762%, #162447 calc(4.762% + 1px), #162447 9.524%, #1f274c calc(9.524% + 1px), #1f274c 14.286%, #292c50 calc(14.286% + 1px), #292c50 19.048%, #353155 calc(19.048% + 1px), #353155 23.810%, #42385a calc(23.810% + 1px), #42385a 28.571%, #4f405e calc(28.571% + 1px), #4f405e 33.333%, #5e4963 calc(33.333% + 1px), #5e4963 38.095%, #6c5368 calc(38.095% + 1px), #6c5368 42.857%, #7b5e6d calc(42.857% + 1px), #7b5e6d 47.619%, #896972 calc(47.619% + 1px), #896972 52.381%, #977477 calc(52.381% + 1px), #977477 57.143%, #a5807c calc(57.143% + 1px), #a5807c 61.905%, #b18c81 calc(61.905% + 1px), #b18c81 66.667%, #bc9786 calc(66.667% + 1px), #bc9786 71.429%, #c6a38b calc(71.429% + 1px), #c6a38b 76.190%, #ceae90 calc(76.190% + 1px), #ceae90 80.952%, #d4b896 calc(80.952% + 1px), #d4b896 85.714%, #d9c19b calc(85.714% + 1px), #d9c19b 90.476%, #dbcaa0 calc(90.476% + 1px), #dbcaa0 95.238%, #dcd2a5 calc(95.238% + 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/_gG5gIDgJQgGmgF7gJtgGygGFgBngI6gH_gKV?style=linearSwatches&steps=21&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,380.952 L 847.214,380.952 Z" fill="#0f2343" fill-opacity="1.000" /><path d="M 847.214,380.952 L -47.214,380.952 L -47.214,361.905 L 847.214,361.905 Z" fill="#162447" fill-opacity="1.000" /><path d="M 847.214,361.905 L -47.214,361.905 L -47.214,342.857 L 847.214,342.857 Z" fill="#1f274c" fill-opacity="1.000" /><path d="M 847.214,342.857 L -47.214,342.857 L -47.214,323.810 L 847.214,323.810 Z" fill="#292c50" fill-opacity="1.000" /><path d="M 847.214,323.810 L -47.214,323.810 L -47.214,304.762 L 847.214,304.762 Z" fill="#353155" fill-opacity="1.000" /><path d="M 847.214,304.762 L -47.214,304.762 L -47.214,285.714 L 847.214,285.714 Z" fill="#42385a" fill-opacity="1.000" /><path d="M 847.214,285.714 L -47.214,285.714 L -47.214,266.667 L 847.214,266.667 Z" fill="#4f405e" fill-opacity="1.000" /><path d="M 847.214,266.667 L -47.214,266.667 L -47.214,247.619 L 847.214,247.619 Z" fill="#5e4963" fill-opacity="1.000" /><path d="M 847.214,247.619 L -47.214,247.619 L -47.214,228.571 L 847.214,228.571 Z" fill="#6c5368" fill-opacity="1.000" /><path d="M 847.214,228.571 L -47.214,228.571 L -47.214,209.524 L 847.214,209.524 Z" fill="#7b5e6d" fill-opacity="1.000" /><path d="M 847.214,209.524 L -47.214,209.524 L -47.214,190.476 L 847.214,190.476 Z" fill="#896972" fill-opacity="1.000" /><path d="M 847.214,190.476 L -47.214,190.476 L -47.214,171.429 L 847.214,171.429 Z" fill="#977477" fill-opacity="1.000" /><path d="M 847.214,171.429 L -47.214,171.429 L -47.214,152.381 L 847.214,152.381 Z" fill="#a5807c" fill-opacity="1.000" /><path d="M 847.214,152.381 L -47.214,152.381 L -47.214,133.333 L 847.214,133.333 Z" fill="#b18c81" fill-opacity="1.000" /><path d="M 847.214,133.333 L -47.214,133.333 L -47.214,114.286 L 847.214,114.286 Z" fill="#bc9786" fill-opacity="1.000" /><path d="M 847.214,114.286 L -47.214,114.286 L -47.214,95.238 L 847.214,95.238 Z" fill="#c6a38b" fill-opacity="1.000" /><path d="M 847.214,95.238 L -47.214,95.238 L -47.214,76.190 L 847.214,76.190 Z" fill="#ceae90" fill-opacity="1.000" /><path d="M 847.214,76.190 L -47.214,76.190 L -47.214,57.143 L 847.214,57.143 Z" fill="#d4b896" fill-opacity="1.000" /><path d="M 847.214,57.143 L -47.214,57.143 L -47.214,38.095 L 847.214,38.095 Z" fill="#d9c19b" fill-opacity="1.000" /><path d="M 847.214,38.095 L -47.214,38.095 L -47.214,19.048 L 847.214,19.048 Z" fill="#dbcaa0" fill-opacity="1.000" /><path d="M 847.214,19.048 L -47.214,19.048 L -47.214,-0.000 L 847.214,0.000 Z" fill="#dcd2a5" fill-opacity="1.000" /></g>
</svg>
["#0f2343", "#162447", "#1f274c", "#292c50", "#353155", "#42385a", "#4f405e", "#5e4963", "#6c5368", "#7b5e6d", "#896972", "#977477", "#a5807c", "#b18c81", "#bc9786", "#c6a38b", "#ceae90", "#d4b896", "#d9c19b", "#dbcaa0", "#dcd2a5"]
// https://grabient.com/_gG5gIDgJQgGmgF7gJtgGygGFgBngI6gH_gKV?style=linearSwatches&steps=21&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 21.0;
const float ANGLE = 0.0;
vec3 palette(float t) {
vec3 a = vec3(0.441, 0.515, 0.592);
vec3 b = vec3(0.422, 0.379, 0.621);
vec3 c = vec3(0.434, 0.389, 0.103);
vec3 d = vec3(0.570, 0.511, 0.661);
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.441, 0.515, 0.592],
[0.422, 0.379, 0.621],
[0.434, 0.389, 0.103],
[0.570, 0.511, 0.661]
]