0π
Got one solution to this. By adding gradient to the color attribute helps to show the colors accordingly.
:color = "gradient"
gradient: {
radial: false,
colors: [
{
color: β#1565C0β,
offset: 80,
opacity: β1β,
},
{
color: βredβ,
offset: 40,
opacity: β1β,
},
]
}
Source:stackexchange.com