# Style the payment form at the checkout
Change the theme or appearance of Stripe's PaymentElement.
You can change the theme or appearance of Stripe’s [PaymentElement](https://docs.stripe.com/payments/payment-element.md) on your checkout page, using the [Appearance API](https://docs.stripe.com/elements/appearance-api.md).
You can set the following parameter in the Appearance API:
- [Theme](https://docs.stripe.com/elements/appearance-api.md?platform=web#theme): A foundational UI built by Stripe.
- [Variables](https://docs.stripe.com/elements/appearance-api.md?platform=web#variables): CSS definitions to apply across the theme.
- [Rules](https://docs.stripe.com/elements/appearance-api.md?platform=web#rules): Conditions that target individual DOM elements within iframe of the payment form.
This guide instructs you how to change the Appearance API parameters of the Stripe module by defining a custom module that overrides them.
## Create a new module
Create a new module with the following directory structure. Replace `Vendor` with your preferred vendor name.
```
app/code/Vendor/StripeCustomizations/
├── etc/
│ ├── module.xml
│ └── di.xml
├── Plugin/
│ └── Payments/
│ └── Helper/
│ └── InitParamsPlugin.php
└── registration.php
```
Inside `registration.php`, register your module with Magento.
```php
```
Inside `etc/di.xml`, define the plugin:
```xml
```
Inside `Plugin/Payments/Helper/InitParamsPlugin.php`, create the plugin class:
```php
'button',
'style' => [
'backgroundColor' => '#FF5733',
'fontSize' => '16px'
]
],
[
'selector' => 'input',
'style' => [
'borderColor' => '#CCCCCC'
]
]
];
return $result;
}
}
```
Enable the module:
```sh
php bin/magento module:enable Vendor_StripeCustomizations
php bin/magento setup:upgrade
php bin/magento cache:clean
php bin/magento cache:flush
```