/* https://grabient.com/_gGZgE0gDMgJQgHHgFVgMigNCgLzgOHgQGgweirqnxuo-?style=linearGradient&steps=34&angle=90 */
background: linear-gradient(90deg, #2e3c45 0.000%, #2d454e 3.030%, #2f5057 6.061%, #355d61 9.091%, #3c6b6b 12.121%, #477974 15.152%, #54877d 18.182%, #629585 21.212%, #73a28c 24.242%, #84ad91 27.273%, #96b796 30.303%, #a7bf99 33.333%, #b8c59a 36.364%, #c8c89a 39.394%, #d7c999 42.424%, #e3c796 45.455%, #edc391 48.485%, #f4bc8b 51.515%, #f9b484 54.545%, #faa97c 57.576%, #f99d74 60.606%, #f4906a 63.636%, #ed8261 66.667%, #e37457 69.697%, #d6664e 72.727%, #c85845 75.758%, #b74c3d 78.788%, #a64135 81.818%, #95392f 84.848%, #83322a 87.879%, #722d27 90.909%, #622b25 93.939%, #532c25 96.970%, #462f26 100.000%);
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="400" viewBox="0 0 800 400" preserveAspectRatio="none">
<!-- https://grabient.com/_gGZgE0gDMgJQgHHgFVgMigNCgLzgOHgQGgweirqnxuo-?style=linearGradient&steps=34&angle=90 -->
<defs>
<linearGradient id="gradient" x1="0.000" y1="0.500" x2="1.000" y2="0.500">
<stop offset="0.000" stop-color="#2e3c45" /><stop offset="0.030" stop-color="#2d454e" /><stop offset="0.061" stop-color="#2f5057" /><stop offset="0.091" stop-color="#355d61" /><stop offset="0.121" stop-color="#3c6b6b" /><stop offset="0.152" stop-color="#477974" /><stop offset="0.182" stop-color="#54877d" /><stop offset="0.212" stop-color="#629585" /><stop offset="0.242" stop-color="#73a28c" /><stop offset="0.273" stop-color="#84ad91" /><stop offset="0.303" stop-color="#96b796" /><stop offset="0.333" stop-color="#a7bf99" /><stop offset="0.364" stop-color="#b8c59a" /><stop offset="0.394" stop-color="#c8c89a" /><stop offset="0.424" stop-color="#d7c999" /><stop offset="0.455" stop-color="#e3c796" /><stop offset="0.485" stop-color="#edc391" /><stop offset="0.515" stop-color="#f4bc8b" /><stop offset="0.545" stop-color="#f9b484" /><stop offset="0.576" stop-color="#faa97c" /><stop offset="0.606" stop-color="#f99d74" /><stop offset="0.636" stop-color="#f4906a" /><stop offset="0.667" stop-color="#ed8261" /><stop offset="0.697" stop-color="#e37457" /><stop offset="0.727" stop-color="#d6664e" /><stop offset="0.758" stop-color="#c85845" /><stop offset="0.788" stop-color="#b74c3d" /><stop offset="0.818" stop-color="#a64135" /><stop offset="0.848" stop-color="#95392f" /><stop offset="0.879" stop-color="#83322a" /><stop offset="0.909" stop-color="#722d27" /><stop offset="0.939" stop-color="#622b25" /><stop offset="0.970" stop-color="#532c25" /><stop offset="1.000" stop-color="#462f26" />
</linearGradient>
</defs>
<rect x="0" y="0" width="800" height="400" fill="url(#gradient)" />
</svg>
["#2e3c45", "#2d454e", "#2f5057", "#355d61", "#3c6b6b", "#477974", "#54877d", "#629585", "#73a28c", "#84ad91", "#96b796", "#a7bf99", "#b8c59a", "#c8c89a", "#d7c999", "#e3c796", "#edc391", "#f4bc8b", "#f9b484", "#faa97c", "#f99d74", "#f4906a", "#ed8261", "#e37457", "#d6664e", "#c85845", "#b74c3d", "#a64135", "#95392f", "#83322a", "#722d27", "#622b25", "#532c25", "#462f26"]
// https://grabient.com/_gGZgE0gDMgJQgHHgFVgMigNCgLzgOHgQGgweirqnxuo-?style=linearGradient&steps=34&angle=90
// cosine gradient palette — https://iquilezles.org/articles/palettes/
const float STEPS = 34.0;
const float ANGLE = 90.0;
vec3 palette(float t) {
vec3 a = vec3(0.580, 0.479, 0.375);
vec3 b = vec3(0.402, 0.309, 0.232);
vec3 c = vec3(0.909, 0.946, 0.856);
vec3 d = vec3(1.477, 1.604, 3.676);
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.580, 0.479, 0.375],
[0.402, 0.309, 0.232],
[0.909, 0.946, 0.856],
[1.477, 1.604, 3.676]
]