/* https://grabient.com/_gN0gNRgO7gB0f_jf_TgH0gH0gH0gAKgAAf_2?style=linearGradient&steps=12&angle=135 */
background: linear-gradient(135deg, #ffd1e8 0.000%, #fdd1e8 9.091%, #f9d2ea 18.182%, #f3d4eb 27.273%, #ecd5ee 36.364%, #e4d7f1 45.455%, #dbdaf4 54.545%, #d3dcf8 63.636%, #cdddfa 72.727%, #c8dffd 81.818%, #c5e0fe 90.909%, #c4e0ff 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gN0gNRgO7gB0f_jf_TgH0gH0gH0gAKgAAf_2?style=linearGradient&steps=12&angle=135 -->
<defs>
<linearGradient id="gradient" x1="0.146" y1="0.146" x2="0.854" y2="0.854">
<stop offset="0.000" stop-color="#ffd1e8" /><stop offset="0.091" stop-color="#fdd1e8" /><stop offset="0.182" stop-color="#f9d2ea" /><stop offset="0.273" stop-color="#f3d4eb" /><stop offset="0.364" stop-color="#ecd5ee" /><stop offset="0.455" stop-color="#e4d7f1" /><stop offset="0.545" stop-color="#dbdaf4" /><stop offset="0.636" stop-color="#d3dcf8" /><stop offset="0.727" stop-color="#cdddfa" /><stop offset="0.818" stop-color="#c8dffd" /><stop offset="0.909" stop-color="#c5e0fe" /><stop offset="1.000" stop-color="#c4e0ff" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#ffd1e8", "#fdd1e8", "#f9d2ea", "#f3d4eb", "#ecd5ee", "#e4d7f1", "#dbdaf4", "#d3dcf8", "#cdddfa", "#c8dffd", "#c5e0fe", "#c4e0ff"]
// https://grabient.com/_gN0gNRgO7gB0f_jf_TgH0gH0gH0gAKgAAf_2?style=linearGradient&steps=12&angle=135
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 12.0;
const float ANGLE = 135.0;
vec3 palette(float t) {
vec3 a = vec3(0.884, 0.849, 0.955);
vec3 b = vec3(0.116, -0.029, -0.045);
vec3 c = vec3(0.500, 0.500, 0.500);
vec3 d = vec3(0.010, 0.000, -0.010);
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.884, 0.849, 0.955],
[0.116, -0.029, -0.045],
[0.500, 0.500, 0.500],
[0.010, 0.000, -0.010]
]