Gradient
Gradient tokens define one single gradient, such as linear black-to-white
.
Example Token Payload
This is what the gradient payload looks like:
Gradient Stop
Gradient Stop represents one point where a new color is introduced within the gradient blend. Take the following example:
This gradient has 3 stops - red at the beginning, transparent in the middle, and purple at the end. In Supernova, the gradient stop is defined like this:
Note that each gradient stop color can be referenced from a different color token. If that is the case, referencedToken
will contain Color Token that is referenced.
Associated functions
You can use the following functions to retrieve font tokens from your design system:
@ds.tokensByType (with
"Gradient"
) attribute
Last updated
Was this helpful?