/* https://grabient.com/_gGGgFagE9gKfgR_gEjgBhgBjgC0gNegKygKViz0txDfz?style=linearSwatches&steps=13&angle=0 */
background: linear-gradient(0deg, #ff0044 0.000%, #ff0044 7.692%, #ff004c calc(7.692% + 1px), #ff004c 15.385%, #ff0255 calc(15.385% + 1px), #ff0255 23.077%, #ff175e calc(23.077% + 1px), #ff175e 30.769%, #ff2c68 calc(30.769% + 1px), #ff2c68 38.462%, #ff4272 calc(38.462% + 1px), #ff4272 46.154%, #ff587c calc(46.154% + 1px), #ff587c 53.846%, #ff6d86 calc(53.846% + 1px), #ff6d86 61.538%, #ff8390 calc(61.538% + 1px), #ff8390 69.231%, #ff999a calc(69.231% + 1px), #ff999a 76.923%, #ffafa4 calc(76.923% + 1px), #ffafa4 84.615%, #ffc5ad calc(84.615% + 1px), #ffc5ad 92.308%, #ffdbb5 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/_gGGgFagE9gKfgR_gEjgBhgBjgC0gNegKygKViz0txDfz?style=linearSwatches&steps=13&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,369.231 L 847.214,369.231 Z" fill="#ff0044" fill-opacity="1.000" /><path d="M 847.214,369.231 L -47.214,369.231 L -47.214,338.462 L 847.214,338.462 Z" fill="#ff004c" fill-opacity="1.000" /><path d="M 847.214,338.462 L -47.214,338.462 L -47.214,307.692 L 847.214,307.692 Z" fill="#ff0255" fill-opacity="1.000" /><path d="M 847.214,307.692 L -47.214,307.692 L -47.214,276.923 L 847.214,276.923 Z" fill="#ff175e" fill-opacity="1.000" /><path d="M 847.214,276.923 L -47.214,276.923 L -47.214,246.154 L 847.214,246.154 Z" fill="#ff2c68" fill-opacity="1.000" /><path d="M 847.214,246.154 L -47.214,246.154 L -47.214,215.385 L 847.214,215.385 Z" fill="#ff4272" fill-opacity="1.000" /><path d="M 847.214,215.385 L -47.214,215.385 L -47.214,184.615 L 847.214,184.615 Z" fill="#ff587c" fill-opacity="1.000" /><path d="M 847.214,184.615 L -47.214,184.615 L -47.214,153.846 L 847.214,153.846 Z" fill="#ff6d86" fill-opacity="1.000" /><path d="M 847.214,153.846 L -47.214,153.846 L -47.214,123.077 L 847.214,123.077 Z" fill="#ff8390" fill-opacity="1.000" /><path d="M 847.214,123.077 L -47.214,123.077 L -47.214,92.308 L 847.214,92.308 Z" fill="#ff999a" fill-opacity="1.000" /><path d="M 847.214,92.308 L -47.214,92.308 L -47.214,61.538 L 847.214,61.538 Z" fill="#ffafa4" fill-opacity="1.000" /><path d="M 847.214,61.538 L -47.214,61.538 L -47.214,30.769 L 847.214,30.769 Z" fill="#ffc5ad" fill-opacity="1.000" /><path d="M 847.214,30.769 L -47.214,30.769 L -47.214,-0.000 L 847.214,0.000 Z" fill="#ffdbb5" fill-opacity="1.000" /></g>
</svg>
["#ff0044", "#ff004c", "#ff0255", "#ff175e", "#ff2c68", "#ff4272", "#ff587c", "#ff6d86", "#ff8390", "#ff999a", "#ffafa4", "#ffc5ad", "#ffdbb5"]
// https://grabient.com/_gGGgFagE9gKfgR_gEjgBhgBjgC0gNegKygKViz0txDfz?style=linearSwatches&steps=13&angle=0
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 13.0;
const float ANGLE = 0.0;
vec3 palette(float t) {
vec3 a = vec3(0.569, 0.525, 0.496);
vec3 b = vec3(0.889, 1.525, 0.386);
vec3 c = vec3(0.106, 0.108, 0.196);
vec3 d = vec3(0.849, 0.677, 0.648);
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.569, 0.525, 0.496],
[0.889, 1.525, 0.386],
[0.106, 0.108, 0.196],
[0.849, 0.677, 0.648]
]