# MD for: https://www.mercadopago.com.ar/developers/es/docs/checkout-api-orders/additional-settings/mobile/payment-visual-customizations.md \# Payment visual customizations Configure the appearance of Payment’s selector and screens through \`MPCheckoutAppearance\` before building checkout. \`sellerInfo\` provides the store name and logo; it does not replace theme tokens. :::::TabsComponent ::::TabComponent{title="Android"} :::AccordionComponent{title="Configure appearance" pill="client-side"} The \`checkoutAppearance\` argument is optional on Android. Use \`System\`, \`Light\` or \`Dark\` from \`MercadoPagoUserInterfaceStyle\` to select the device mode, light slot or dark slot. kotlin kotlin ``` import com.mercadopago.sdk.android.checkout.core.MercadoPagoCheckout import com.mercadopago.sdk.android.checkout.core.model.* import com.mercadopago.sdk.android.foundation.theme.MercadoPagoUserInterfaceStyle val appearance = MPCheckoutAppearance( style = MercadoPagoUserInterfaceStyle.System, ) val checkout = MercadoPagoCheckout.Builder( context = activity, checkoutType = MPCheckoutType.Payment(order = order), checkoutAppearance = appearance, ).build() ``` ::: :::AccordionComponent{title="Override theme tokens" pill="client-side"} \`MercadoPagoThemeConfiguration\` receives \`lightTheme\` and \`darkTheme\`. Each public \`MercadoPagoThemeProvider.Default\` provider groups \`color\`, \`spacing\`, \`radius\`, \`borderWidth\`, \`shape\` and \`typography\`. This example changes only the text accent color. kotlin kotlin ``` import androidx.compose.ui.graphics.Color import com.mercadopago.sdk.android.checkout.core.model.MPCheckoutAppearance import com.mercadopago.sdk.android.foundation.theme.* val base = MercadoPagoThemes.Default.lightTheme as MercadoPagoThemeProvider.Default val customTheme = base.copy( color = base.color.copy( text = base.color.text.copy(accent = Color(0xFF0066CC)), ), ) val appearance = MPCheckoutAppearance( theme = MercadoPagoThemeConfiguration( lightTheme = customTheme, darkTheme = customTheme, ), ) ``` The cast uses the default theme provider. Use public APIs rather than internal implementation symbols. ::: :::: ::::TabComponent{title="iOS"} :::AccordionComponent{title="Configure appearance" pill="client-side"} The \`checkoutAppearance\` argument is required on iOS; \`.init()\` uses the default. Use \`.automatic\`, \`.lightMode\` or \`.darkMode\`. Pass theme configuration through the \`theme\` argument, not through \`light\` and \`dark\` arguments directly on \`MPCheckoutAppearance\`. swift swift ``` import MercadoPagoCheckout import MPFoundation @MainActor func makeStyledCheckout(order: MPOrder) -> MercadoPagoCheckout { MercadoPagoCheckout.Builder( checkoutType: .payment(order: order), checkoutAppearance: .init(style: .automatic) ).build() } ``` ::: :::AccordionComponent{title="Override theme tokens" pill="client-side"} Each \`MPTheme\` provides \`colors\`, \`spacings\`, \`borderRadius\`, \`borderWidth\` and \`typography\`, plus the derived \`buttons\` and \`textFields\` appearances. This example changes a token in \`MPLightTheme\`. swift swift ``` import SwiftUI import MercadoPagoCheckout import MPFoundation @MainActor func makeCustomAppearance() -> MPCheckoutAppearance { var theme = MPLightTheme() theme.colors.text.accent = Color(red: 0, green: 0.4, blue: 0.8) return MPCheckoutAppearance( style: .automatic, theme: .init(light: theme, dark: theme) ) } ``` \`MPLightTheme\` rebuilds \`buttons\` and \`textFields\` when token categories change. A custom \`MPTheme\` implementation must keep those appearances consistent. ::: :::: ::::: ## Provide light and dark themes These examples use the same palette in both slots and do not implement a complete dark theme. The default configuration also uses the light palette in both slots; selecting dark mode does not create a new palette. - \*\*Android:\*\* supply complete \`MercadoPagoThemeProvider.Default\` providers with all six categories in \`lightTheme\` and \`darkTheme\`. - \*\*iOS:\*\* supply complete \`MPTheme\` implementations in \`theme: .init(light: lightTheme, dark: darkTheme)\`, including \`buttons\` and \`textFields\`. ## Validate appearance Check applicable selector, new card, CVV, installment, review, result and fallback screens. Test contrast, long text, system font sizes, disabled states, and light and dark modes. Configure tokens before building checkout. These tokens do not configure business data or text returned by the backend. Return to \[Payment integration\](https://www.mercadopago.com.ar/developers/en/docs/checkout-api-orders/payment-integration/mobile/payment) to build and present checkout.