ThanklyTokens

data class ThanklyTokens(val accent: Color? = null, val surface: Color? = null, val onSurface: Color? = null, val headingStyle: TextStyle? = null, val bodyStyle: TextStyle? = null, val cornerRadius: Dp = 12.dp, val spacing: Dp = 12.dp)

Styling knobs for Thankly widgets.

Every value defaults to the host app's MaterialTheme, so an unconfigured partner gets widgets that already match their app. Override only what you need — anything left null keeps inheriting.

Constructors

Link copied to clipboard
constructor(accent: Color? = null, surface: Color? = null, onSurface: Color? = null, headingStyle: TextStyle? = null, bodyStyle: TextStyle? = null, cornerRadius: Dp = 12.dp, spacing: Dp = 12.dp)

Properties

Link copied to clipboard
val accent: Color? = null

Accent colour for emphasis. Defaults to the host's primary.

Link copied to clipboard
val bodyStyle: TextStyle? = null

Body text style. Defaults to the host's bodyMedium.

Link copied to clipboard

Corner radius for cards.

Link copied to clipboard
val headingStyle: TextStyle? = null

Heading text style. Defaults to the host's titleMedium.

Link copied to clipboard
val onSurface: Color? = null

Primary text colour. Defaults to the host's onSurface.

Link copied to clipboard
val spacing: Dp

Spacing between elements.

Link copied to clipboard
val surface: Color? = null

Surface colour behind a widget. Defaults to the host's surface.