Color token classes for light and dark mode theming
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 2 base tokens and 29 semantic tokens for light mode
DarkColorTokens — extends LightColorTokens and overrides the internal palette for dark mode. Semantic tokens resolve automatically through inheritance.
The raw palette behind the semantic tokens (primerColorGray*, primerColorRed*, primerColorBlue*, primerColorGreen*) is internal. To change a color, override the semantic token that uses it.