I’m looking for assistance in transforming a linear gradient from my Figma design into a radial gradient for CSS. My original gradient in Figma is shown below:
background: linear-gradient(206.12deg, rgba(231, 51, 255, 0.5) -74.73%, rgba(207, 67, 255, 0.483696) 6.69%, rgba(0, 204, 255, 0.5) 108.36%);
I realize that linear gradients aren’t suitable for circular designs, so I’ve attempted to create a radial gradient instead, but the results aren’t matching my expectations.
Here’s the approach I’ve taken:
.circle-gradient {
width: 200px;
height: 200px;
border-radius: 50%;
background: radial-gradient(
circle,
rgba(231, 51, 255, 0.5) 15%,
rgba(207, 67, 255, 0.48) 45%,
rgba(0, 204, 255, 0.5) 95%
);
}
The color transitions don’t blend as they do in Figma, and the overall effect appears inconsistent. Can anyone suggest how to align the CSS output more closely with the design I created in Figma? What adjustments am I missing?