I’m struggling to recreate a complex gradient design from Figma into an Android vector drawable. The design shows a rounded rectangle with multiple layered gradients that create a unique visual effect.
Design specifications:
Rectangle dimensions:
width: 312dp
height: 474dp
corner-radius: 8dp
Background layers (3 gradient combinations):
// First circular gradient
conic-gradient(from 180deg at center, #FFFFFF -9.78deg, #000000 9.35deg, #FFFFFF 69.37deg, #000000 121.87deg, #FFFFFF 161.25deg, #000000 202.5deg, #FFFFFF 245.62deg, #000000 303.75deg, #FFFFFF 350.22deg, #000000 369.35deg)
// Second circular gradient
conic-gradient(from 180deg at center, #FFFFFF -22.26deg, #000000 27.81deg, #FFFFFF 81.58deg, #000000 116.79deg, #FFFFFF 158.7deg, #000000 216.69deg, #FFFFFF 262.5deg, #000000 307.09deg, #FFFFFF 337.74deg, #000000 387.81deg)
// Base linear gradient
linear-gradient(151.68deg, #1DC4BD 0.54%, rgba(217,240,66,0.98) 17.64%, rgba(248,165,253,0.89) 42.5%, rgba(162,172,249,0.95) 60.11%, rgba(60,244,147,0.59) 83.94%, #3DBEF0 100%)
Blend modes: screen, difference, normal
Opacity: 0.5
I’ve tried converting this manually and using SVG conversion tools but can’t achieve the same visual result in Android XML format. My closest attempt produces a different appearance than the original Figma design.
How can I properly translate these layered circular gradients with blend modes into an Android vector drawable XML file? Are there alternative approaches or workarounds for achieving this effect?