/* https://grabient.com/_gNtgNufL4gA0gArhCQgPPge-gBmgN8gEPgOw?style=linearSwatches&steps=8&angle=45 */
background: linear-gradient(45deg, #eadea4 0.000%, #eadea4 12.500%, #edd6c2 calc(12.500% + 1px), #edd6c2 25.000%, #e6e6d7 calc(25.000% + 1px), #e6e6d7 37.500%, #dbe8e3 calc(37.500% + 1px), #dbe8e3 50.000%, #d3d7e6 calc(50.000% + 1px), #d3d7e6 62.500%, #d4dce0 calc(62.500% + 1px), #d4dce0 75.000%, #deebd2 calc(75.000% + 1px), #deebd2 87.500%, #e9e0ba calc(87.500% + 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/_gNtgNufL4gA0gArhCQgPPge-gBmgN8gEPgOw?style=linearSwatches&steps=8&angle=45 -->
<defs>
<clipPath id="bounds">
<rect x="0" y="0" width="800" height="400" />
</clipPath>
</defs>
<g clip-path="url(#bounds)"><path d="M 416.228,816.228 L -216.228,183.772 L -141.228,108.772 L 491.228,741.228 Z" fill="#eadea4" fill-opacity="1.000" /><path d="M 491.228,741.228 L -141.228,108.772 L -66.228,33.772 L 566.228,666.228 Z" fill="#edd6c2" fill-opacity="1.000" /><path d="M 566.228,666.228 L -66.228,33.772 L 8.772,-41.228 L 641.228,591.228 Z" fill="#e6e6d7" fill-opacity="1.000" /><path d="M 641.228,591.228 L 8.772,-41.228 L 83.772,-116.228 L 716.228,516.228 Z" fill="#dbe8e3" fill-opacity="1.000" /><path d="M 716.228,516.228 L 83.772,-116.228 L 158.772,-191.228 L 791.228,441.228 Z" fill="#d3d7e6" fill-opacity="1.000" /><path d="M 791.228,441.228 L 158.772,-191.228 L 233.772,-266.228 L 866.228,366.228 Z" fill="#d4dce0" fill-opacity="1.000" /><path d="M 866.228,366.228 L 233.772,-266.228 L 308.772,-341.228 L 941.228,291.228 Z" fill="#deebd2" fill-opacity="1.000" /><path d="M 941.228,291.228 L 308.772,-341.228 L 383.772,-416.228 L 1016.228,216.228 Z" fill="#e9e0ba" fill-opacity="1.000" /></g>
</svg>
["#eadea4", "#edd6c2", "#e6e6d7", "#dbe8e3", "#d3d7e6", "#d4dce0", "#deebd2", "#e9e0ba"]
// https://grabient.com/_gNtgNufL4gA0gArhCQgPPge-gBmgN8gEPgOw?style=linearSwatches&steps=8&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 8.0;
const float ANGLE = 45.0;
vec3 palette(float t) {
vec3 a = vec3(0.877, 0.878, -3.336);
vec3 b = vec3(0.052, 0.043, 4.240);
vec3 c = vec3(0.975, 1.982, 0.102);
vec3 d = vec3(0.892, 0.271, 0.944);
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.877, 0.878, -3.336],
[0.052, 0.043, 4.240],
[0.975, 1.982, 0.102],
[0.892, 0.271, 0.944]
]