/* https://grabient.com/_gKdgHPgKkgGhgFxgD_gJkgL8gLOgXRgEsgNKk4rCo3oD?style=linearGradient&steps=21&angle=45 */
background: linear-gradient(45deg, #ffe0df 0.000%, #ffe8db 5.000%, #ffefd7 10.000%, #fff6d4 15.000%, #fffcd1 20.000%, #ffffd0 25.000%, #ffffce 30.000%, #ffffce 35.000%, #ffffce 40.000%, #ffffcf 45.000%, #ffffd1 50.000%, #ffffd4 55.000%, #ffffd7 60.000%, #fffcdb 65.000%, #fcf7df 70.000%, #f3f0e4 75.000%, #ebe9e9 80.000%, #e3e1ef 85.000%, #dcd8f4 90.000%, #d4cffa 95.000%, #cec6ff 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gKdgHPgKkgGhgFxgD_gJkgL8gLOgXRgEsgNKk4rCo3oD?style=linearGradient&steps=21&angle=45 -->
<defs>
<linearGradient id="gradient" x1="0.146" y1="0.854" x2="0.854" y2="0.146">
<stop offset="0.000" stop-color="#ffe0df" /><stop offset="0.050" stop-color="#ffe8db" /><stop offset="0.100" stop-color="#ffefd7" /><stop offset="0.150" stop-color="#fff6d4" /><stop offset="0.200" stop-color="#fffcd1" /><stop offset="0.250" stop-color="#ffffd0" /><stop offset="0.300" stop-color="#ffffce" /><stop offset="0.350" stop-color="#ffffce" /><stop offset="0.400" stop-color="#ffffce" /><stop offset="0.450" stop-color="#ffffcf" /><stop offset="0.500" stop-color="#ffffd1" /><stop offset="0.550" stop-color="#ffffd4" /><stop offset="0.600" stop-color="#ffffd7" /><stop offset="0.650" stop-color="#fffcdb" /><stop offset="0.700" stop-color="#fcf7df" /><stop offset="0.750" stop-color="#f3f0e4" /><stop offset="0.800" stop-color="#ebe9e9" /><stop offset="0.850" stop-color="#e3e1ef" /><stop offset="0.900" stop-color="#dcd8f4" /><stop offset="0.950" stop-color="#d4cffa" /><stop offset="1.000" stop-color="#cec6ff" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#ffe0df", "#ffe8db", "#ffefd7", "#fff6d4", "#fffcd1", "#ffffd0", "#ffffce", "#ffffce", "#ffffce", "#ffffcf", "#ffffd1", "#ffffd4", "#ffffd7", "#fffcdb", "#fcf7df", "#f3f0e4", "#ebe9e9", "#e3e1ef", "#dcd8f4", "#d4cffa", "#cec6ff"]
// https://grabient.com/_gKdgHPgKkgGhgFxgD_gJkgL8gLOgXRgEsgNKk4rCo3oD?style=linearGradient&steps=21&angle=45
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 21.0;
const float ANGLE = 45.0;
vec3 palette(float t) {
vec3 a = vec3(0.981, 0.775, 0.988);
vec3 b = vec3(0.294, 0.261, 0.180);
vec3 c = vec3(0.347, 0.433, 0.407);
vec3 d = vec3(2.004, 0.815, 1.357);
return a + b * cos(6.283185 * (c * t + d));
}
// N stops sampled from the palette, blended like the CSS gradient
vec3 stops(float t) {
float n = STEPS - 1.0;
float x = clamp(t, 0.0, 1.0) * n;
return mix(palette(floor(x) / n), palette(min(floor(x) + 1.0, n) / n), fract(x));
}
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.981, 0.775, 0.988],
[0.294, 0.261, 0.180],
[0.347, 0.433, 0.407],
[2.004, 0.815, 1.357]
]