# Customize Element appearance to match your iOS, Android, or React Native app

Match Mobile Checkout Elements to your iOS, Android, or React Native app.

After you [build a checkout page](https://docs.stripe.com/payments/mobile/checkout-sessions/build-a-checkout-page.md), you can customize colors, fonts, shapes, and other supported properties to match your app. Mobile Checkout Elements retain their layouts and interaction patterns. Assigning a configuration to an Element also opts your integration into that Element, so configure only the Elements you use.

### Want access to Mobile Checkout Elements?

Mobile Checkout Elements is in private preview. Share your email address to request access.

```bash
curl https://docs.stripe.com/preview/register \
  -X POST \
  -H "Content-Type: application/json" \
  -H "Referer: https://docs.stripe.com/payments/mobile/checkout-sessions/customize-appearance" \
  -d '{"email": "EMAIL", "preview": "elements_beta_preview"}'
```
![Two phones showing the Payment Element. The left one, labeled Default, uses the standard light appearance and a blue Pay button. The right one, labeled Customized, uses a dark appearance, purple accents, and a rounded purple Pay button.](https://b.stripecdn.com/docs-statics-srv/assets/customize-appearance-light-dark.65ed6fa158032342e0d060231df586a8.png)

Appearance APIs can change before public preview.

# React Native


Each Element configuration has an `appearance` object. Set its values to customize the Element’s appearance, then return the Element configurations from the `getConfiguration` function you pass to `useCheckoutElements`.

The React Native SDK supports the Payment, Express Checkout, and Currency Selector Elements on iOS and Android. It doesn’t support the Shipping Address Element.

## Customize the Payment Element 

Specify colors for light and dark modes, then set `style` to make Checkout follow the system theme or always use one color mode.

```tsx
import type { CheckoutElements } from '@stripe/stripe-react-native/src/types/CheckoutElements';

const appearance: CheckoutElements.PaymentElementConfiguration.Appearance = {
  colors: {
    light: {
      primary: '#635BFF',
      background: '#FFFFFF',
      componentBackground: '#F6F7F9',
      componentBorder: '#D8DEE4',
      componentDivider: '#D8DEE4',
      componentText: '#1A1F36',
      secondaryText: '#596780',
      placeholderText: '#8792A2',
      primaryText: '#1A1F36',
      icon: '#1A1F36',
      error: '#DF1B41',
    },
    dark: {
      primary: '#B7B1FF',
      background: '#171B24',
      componentBackground: '#242A36',
      componentBorder: '#3A4352',
      componentDivider: '#3A4352',
      componentText: '#FFFFFF',
      secondaryText: '#B5BECC',
      placeholderText: '#8D98A8',
      primaryText: '#FFFFFF',
      icon: '#FFFFFF',
      error: '#FF6B82',
    },
  },
};

const paymentElement: CheckoutElements.PaymentElementConfiguration = { appearance };
```

Return `style` and `paymentElement` from `getConfiguration`:

```tsx
return {
  clientSecret,
  returnURL: 'your-app://stripe-redirect',
  style: 'automatic',
  paymentElement,
};
```

On Android, the React Native SDK supports the `colors`, `font`, `shapes`, `primaryButton`, `embeddedPaymentElement`, and `formInsetValues` appearance properties.

## Customize the Express Checkout Element 

Wallet providers control their logos, brand colors, and button content. You can select a [button theme](https://docs.stripe.com/payments/mobile/checkout-sessions/express-checkout-element/accept-a-payment.md?platform=react-native#button-theme), set the buttons’ corner radius, and control how Stripe arranges them. Link buttons retain their required brand styling.

```tsx
import type { CheckoutElements } from '@stripe/stripe-react-native/src/types/CheckoutElements';

const appearance: CheckoutElements.ExpressCheckoutElementConfiguration.Appearance = {
  buttonTheme: 'automatic',
  borderRadius: 12,
  buttonLayout: {
    maxColumns: 2,
    maxRows: 1,
  },
};

const expressCheckoutElement: CheckoutElements.ExpressCheckoutElementConfiguration = {
  onResult: handleExpressCheckoutResult,
  appearance,
};
```

Return `expressCheckoutElement` from `getConfiguration` with your other Element configurations.

## Customize the Currency Selector Element 

Set `labelContent` to display a currency code, a formatted amount, or the representation Stripe selects for the purchase. Provide `light` and `dark` color palettes so the Currency Selector Element matches the system theme when Checkout’s `style` is `automatic`. A single palette with fixed color strings uses the same colors in both modes.

To use the custom Android font in this example, add a font file that you’re licensed to use at `android/app/src/main/res/font/avenir_next.ttf`, creating the `font` directory if needed. Set `font.family` to the resource filename without its extension (`avenir_next`), then rebuild your Android app. Checkout initialization fails if the font resource doesn’t exist. Omit `font.family` to use the default font instead.

```tsx
import { Platform } from 'react-native';
import type { CheckoutElements } from '@stripe/stripe-react-native/src/types/CheckoutElements';

const currencySelectorElement: CheckoutElements.CurrencySelectorElementConfiguration = {
  appearance: {
    contentVerticalPadding: 4,
    shapes: { cornerRadius: 12, borderWidth: 1 },
    colors: {
      light: {
        border: '#D8DEE4',
        background: '#F6F7F9',
        selectedBackground: '#FFFFFF',
        text: '#596780',
        selectedText: '#1A1F36',
        textSecondary: '#596780',
        danger: '#DF1B41',
      },
      dark: {
        border: '#3A4352',
        background: '#242A36',
        selectedBackground: '#171B24',
        text: '#B5BECC',
        selectedText: '#FFFFFF',
        textSecondary: '#B5BECC',
        danger: '#FF6B82',
      },
    },
    // Use the PostScript name on iOS and the font resource name on Android.
    font: {
      family: Platform.select({ ios: 'AvenirNext-Medium', android: 'avenir_next' }),
    },
    labelContent: 'amount',
  },
};
```

Return `currencySelectorElement` from `getConfiguration` with your other Element configurations.

