/* https://grabient.com/_gJQgIDgG5gJtgF7gGmgBngGFgGygKVgH_gI6?style=linearSwatches&steps=21&angle=0 */
background: linear-gradient(0deg, #43230f 0.000%, #43230f 4.762%, #472416 calc(4.762% + 1px), #472416 9.524%, #4c271f calc(9.524% + 1px), #4c271f 14.286%, #502c29 calc(14.286% + 1px), #502c29 19.048%, #553135 calc(19.048% + 1px), #553135 23.810%, #5a3842 calc(23.810% + 1px), #5a3842 28.571%, #5e404f calc(28.571% + 1px), #5e404f 33.333%, #63495e calc(33.333% + 1px), #63495e 38.095%, #68536c calc(38.095% + 1px), #68536c 42.857%, #6d5e7b calc(42.857% + 1px), #6d5e7b 47.619%, #726989 calc(47.619% + 1px), #726989 52.381%, #777497 calc(52.381% + 1px), #777497 57.143%, #7c80a5 calc(57.143% + 1px), #7c80a5 61.905%, #818cb1 calc(61.905% + 1px), #818cb1 66.667%, #8697bc calc(66.667% + 1px), #8697bc 71.429%, #8ba3c6 calc(71.429% + 1px), #8ba3c6 76.190%, #90aece calc(76.190% + 1px), #90aece 80.952%, #96b8d4 calc(80.952% + 1px), #96b8d4 85.714%, #9bc1d9 calc(85.714% + 1px), #9bc1d9 90.476%, #a0cadb calc(90.476% + 1px), #a0cadb 95.238%, #a5d2dc 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/_gJQgIDgG5gJtgF7gGmgBngGFgGygKVgH_gI6?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="#43230f" 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="#472416" 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="#4c271f" 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="#502c29" 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="#553135" 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="#5a3842" 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="#5e404f" 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="#63495e" 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="#68536c" 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="#6d5e7b" 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="#726989" 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="#777497" 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="#7c80a5" 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="#818cb1" 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="#8697bc" 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="#8ba3c6" 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="#90aece" 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="#96b8d4" 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="#9bc1d9" 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="#a0cadb" 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="#a5d2dc" fill-opacity="1.000" /></g>
</svg>
["#43230f", "#472416", "#4c271f", "#502c29", "#553135", "#5a3842", "#5e404f", "#63495e", "#68536c", "#6d5e7b", "#726989", "#777497", "#7c80a5", "#818cb1", "#8697bc", "#8ba3c6", "#90aece", "#96b8d4", "#9bc1d9", "#a0cadb", "#a5d2dc"]
// https://grabient.com/_gJQgIDgG5gJtgF7gGmgBngGFgGygKVgH_gI6?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.592, 0.515, 0.441);
vec3 b = vec3(0.621, 0.379, 0.422);
vec3 c = vec3(0.103, 0.389, 0.434);
vec3 d = vec3(0.661, 0.511, 0.570);
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.592, 0.515, 0.441],
[0.621, 0.379, 0.422],
[0.103, 0.389, 0.434],
[0.661, 0.511, 0.570]
]