Skip to main content
Explore how PrimerThemeOverride tokens affect different parts of Primer Checkout on React Native. Select a token to see which components it impacts, adjust values with sliders and color pickers, and copy the generated TypeScript code into your project.
This explorer shows a subset of the tokens in PrimerThemeOverride, with their light mode defaults. For a complete reference, see the React Native Color tokens page.

How to Use

  1. Token → Components mode: Click a token to see which parts of the checkout it affects (highlighted in green)
  2. Component → Tokens mode: Click a component to see which tokens control its appearance
  3. Adjust values: Use the sliders and color pickers to preview changes in real time
  4. Copy generated code: The TypeScript code updates live — copy it into your project
Some colors follow others, as they do in the SDK. Changing colors.brand also changes the focus border, and changing colors.backgroundPrimary also changes the input fill and the Pay button label, unless you set those tokens too. The generated code lists only the tokens you changed. See Tokens that follow others.

Applying Tokens in Your Code

Once you’ve configured your theme, pass it to the theme prop of PrimerCheckoutProvider. It styles every Primer component inside the provider:
light applies in light mode only. To theme dark mode, set the same groups under dark. Any token you leave out of dark uses Primer’s dark default, not your light value. See PrimerThemeOverride.