Skip to main content
Primer Checkout Android SDK is currently in beta (v3.0.0-beta). The API is subject to change before the stable release.

Definition

data class SpacingTokens(
    val xxsmall: Dp = 2.dp,
    val xsmall: Dp = 4.dp,
    val small: Dp = 8.dp,
    val medium: Dp = 12.dp,
    val large: Dp = 16.dp,
    val xlarge: Dp = 20.dp,
    val base: Dp = 4.dp,
)

Properties

TokenPreviewDefaultUsage
xxsmall2.dpIcon padding, minimal gaps
xsmall4.dpChip padding, tight spacing
small8.dpBetween form fields
medium12.dpSection internal padding
large16.dpContainer padding, major gaps
xlarge20.dpBetween major sections
base4.dpBase unit for calculations
Access via LocalPrimerTheme.current.spacingTokens inside the checkout composable tree.