Primer Checkout Android SDK is currently in beta (v3.0.0-beta).
The API is subject to change before the stable release.
Two classes define all color tokens:
LightColorTokens — open class with 16 base tokens and 26 semantic tokens for light mode
DarkColorTokens — extends LightColorTokens, overrides 15 base tokens for dark mode. Semantic tokens resolve automatically through inheritance.
Base tokens (16)
Override these to change foundational colors. All semantic tokens resolve through these.
Semantic tokens (26)
Resolve through base tokens. Override only when you need a specific mapping to change.
Text colors
Background
Border colors (outlined)
Border colors (transparent)
Icon colors
Utility
Customization
Override base tokens by extending LightColorTokens or DarkColorTokens:
Changing a base token affects all semantic tokens that reference it.