Colors

@Serializable
data class Colors(val background: PaywallColor, val text1: PaywallColor, val text2: PaywallColor? = null, val text3: PaywallColor? = null, val callToActionBackground: PaywallColor, val callToActionForeground: PaywallColor, val callToActionSecondaryBackground: PaywallColor? = null, val accent1: PaywallColor? = null, val accent2: PaywallColor? = null, val accent3: PaywallColor? = null, val closeButton: PaywallColor? = null, val tierControlBackground: PaywallColor? = null, val tierControlForeground: PaywallColor? = null, val tierControlSelectedBackground: PaywallColor? = null, val tierControlSelectedForeground: PaywallColor? = null)

Constructors

Link copied to clipboard
constructor(background: PaywallColor, text1: PaywallColor, text2: PaywallColor? = null, text3: PaywallColor? = null, callToActionBackground: PaywallColor, callToActionForeground: PaywallColor, callToActionSecondaryBackground: PaywallColor? = null, accent1: PaywallColor? = null, accent2: PaywallColor? = null, accent3: PaywallColor? = null, closeButton: PaywallColor? = null, tierControlBackground: PaywallColor? = null, tierControlForeground: PaywallColor? = null, tierControlSelectedBackground: PaywallColor? = null, tierControlSelectedForeground: PaywallColor? = null)

Properties

Link copied to clipboard
@Serializable(with = PaywallColor.Serializer::class)
val accent1: PaywallColor? = null

Primary accent color.

Link copied to clipboard
@Serializable(with = PaywallColor.Serializer::class)
val accent2: PaywallColor? = null

Secondary accent color.

Link copied to clipboard
@Serializable(with = PaywallColor.Serializer::class)
val accent3: PaywallColor? = null

Tertiary accent color.

Link copied to clipboard

Color for the background of the paywall.

Link copied to clipboard

Background color of the main call to action button.

Link copied to clipboard

Foreground color of the main call to action button.

Link copied to clipboard

If present, the CTA will create a vertical gradient from callToActionBackground to this color.

Link copied to clipboard
@Serializable(with = PaywallColor.Serializer::class)
val closeButton: PaywallColor? = null

Close button accent color.

Link copied to clipboard

Color for the primary text element.

Link copied to clipboard
@Serializable(with = PaywallColor.Serializer::class)
val text2: PaywallColor? = null

Color for secondary text element.

Link copied to clipboard
@Serializable(with = PaywallColor.Serializer::class)
val text3: PaywallColor? = null

Color for tertiary text element.

Link copied to clipboard

Tier control background color.

Link copied to clipboard

Tier control foreground color.

Link copied to clipboard

Tier control selected background color.

Link copied to clipboard

Tier control selected foreground color.