export type GradientType = 'linear' | 'radial'; export type RadialPositionY = 'center' | 'top' | 'bottom'; export type RadialPositionX = 'center' | 'left' | 'right'; export type RadialPositions = [RadialPositionY, RadialPositionX]; export type Stop = { color: string; offset: number; }; export type Gradient = { angle?: number; positions?: RadialPositions; stops: Stop[]; type: GradientType; };