Skip to content

Checkout styles

Customize the Checkout drop-in using CSS classes and design tokens. This page covers the Checkout-specific container classes and customization examples. For comprehensive information about design tokens, responsive breakpoints, and styling best practices, see Styling Drop-In Components.

Version: 2.1.0

Customization example

Add this to blocks/commerce-checkout/commerce-checkout.css to customize the Checkout drop-in.

For a complete list of available design tokens (colors, spacing, typography, etc.), see the Design tokens reference.

.checkout-out-of-stock__title {
color: var(--color-neutral-900);
font: var(--type-body-2-strong-font);
letter-spacing: var(--type-body-2-strong-letter-spacing);
color: var(--color-brand-900);
font: var(--type-body-2-strong-font);
letter-spacing: var(--type-body-2-strong-letter-spacing);
}

Container classes

The Checkout drop-in uses BEM-style class naming. Use the browser DevTools to inspect elements and find specific class names.

/* AddressValidation */
.checkout-address-validation {}
.checkout-address-validation__option {}
.checkout-address-validation__option-title {}
.checkout-address-validation__options {}
.checkout-address-validation__options--busy {}
.checkout-address-validation__subtitle {}
.checkout-address-validation__title {}
/* BillToShippingAddress */
.checkout-bill-to-shipping-address {}
.checkout-bill-to-shipping-address__error {}
/* EstimateShipping */
.cart-order-summary__shipping {}
.checkout-estimate-shipping {}
.checkout-estimate-shipping__caption {}
.checkout-estimate-shipping__label {}
.checkout-estimate-shipping__label--bold {}
.checkout-estimate-shipping__label--muted {}
.checkout-estimate-shipping__price {}
.checkout-estimate-shipping__price--bold {}
.checkout-estimate-shipping__price--muted {}
.dropin-skeleton {}
/* LoginForm */
.checkout-login-form__content {}
.checkout-login-form__customer-details {}
.checkout-login-form__customer-email {}
.checkout-login-form__customer-name {}
.checkout-login-form__heading {}
.checkout-login-form__heading-label {}
.checkout-login-form__link {}
.checkout-login-form__sign-in {}
.checkout-login-form__sign-out {}
.checkout-login-form__title {}
.dropin-field__hint {}
/* OutOfStock */
.checkout-out-of-stock {}
.checkout-out-of-stock__action {}
.checkout-out-of-stock__actions {}
.checkout-out-of-stock__item {}
.checkout-out-of-stock__items {}
.checkout-out-of-stock__message {}
.checkout-out-of-stock__title {}
.dropin-card {}
.dropin-card__content {}
/* PaymentMethods */
.checkout-payment-methods--full-width {}
.checkout-payment-methods__content {}
.checkout-payment-methods__error {}
.checkout-payment-methods__methods {}
.checkout-payment-methods__spinner {}
.checkout-payment-methods__title {}
.checkout-payment-methods__wrapper {}
.checkout-payment-methods__wrapper--busy {}
.checkout__content {}
/* PlaceOrder */
.checkout-place-order {}
.checkout-place-order__button {}
/* ServerError */
.checkout-server-error {}
.checkout-server-error__icon {}
.error-icon {}
/* ShippingMethods */
.checkout-shipping-methods__content {}
.checkout-shipping-methods__error {}
.checkout-shipping-methods__method {}
.checkout-shipping-methods__options--busy {}
.checkout-shipping-methods__options--toggleButton {}
.checkout-shipping-methods__spinner {}
.checkout-shipping-methods__title {}
.dropin-price {}
.dropin-radio-button__label {}
.dropin-toggle-button__content {}
/* TermsAndConditions */
.checkout-terms-and-conditions {}
.checkout-terms-and-conditions__error {}
/* MergedCartBanner */
.checkout__banner {}