#Styles

Just as you can modify the colors and global design of Poool's paywall in the appearance tab of your Dashboard, you can also do this using code.
This front-end customization is especially useful when the SDK isn't able to retrieve the configuration used in your Dashboard.
ℹ️ These configuration values are overridden by your Dashboard configuration.

#Usage

fun styles(key: String, value: Any?, readOnly: Boolean? = null): Access

fun styles(styles: Map<String, Any>, readOnly: Boolean? = null): Access

#Options

#layout

  • Type: String
  • Accepted values: "portrait", "landscape"
  • Default: "portrait"
Defines the base layout of the paywall.

brandLogo

  • Type: String
  • Default: null
URL to your media's logo.
.png, .jpg or .svg format, 140px min height, 200kb max.

#brandCover

  • Type: String
  • Default: null
URL to your cover image.
.png or .jpg format, 140px min width, 380px min height, 200kb max

#buttonColor

  • Type: String
  • Default: "#000A24"
Main buttons color.

#buttonHoverColor

  • Type: String
  • Default: "#556677"
Main buttons hover color.

#skinColor

  • Type: String
  • Default: "#000A24"
Paywall's skin color.

#premiumColor

  • Type: String
  • Default: "#AA5D00"
Subscription color.