About checkout styling
Checkout styling customizations are available only to Shopify Plus merchants.
Anchor to How it worksHow it works
The GraphQL Admin API includes types and their associated fields for applying styling to checkout, checkout queue, checkout UI extensions, and customer account pages.
Styles are applied across these surfaces.
You can save styling changes to a draft checkout, which you can preview in the checkout editor, or to a production checkout on a live site. Review the following sections to familiarize yourself with API data structures and the role of checkout profiles in styling.
Anchor to Data structuresData structures
The branding API consists of the following objects:
-
designSystem: Sets the design language for the entire experience. Its values are set to establish your design system, which encompasses design components such as spacing, colors, typography, and other visual elements that are used throughout the branding process. ThedesignSystemobject represents the standardized design principles for the brand.designSystemprovides foundational tokens that are consumed in thecustomizationsobject. -
customizations: Styles specific parts of the UI, individual components, or groups of components. With some customizations, you can pull from design system values. Other customizations retrieve their values from a pre-defined array of tokens or a float range. These customizations can be made to adjust the interface to better align with a brand's identity or specific requirements.The following example JSON object shows the separate objects and their inner contents:
Advanced checkout branding object
Anchor to Checkout profileCheckout profile
Checkout branding properties apply to a checkout profile ID. Profiles are useful to test branding against a draft profile before publishing any changes.
The following example uses the checkoutProfiles query to retrieve a list of available checkout profile IDs. The is_published parameter highlights which checkout profile applies to your store's current live checkout. You supply the id in checkout branding mutations to customize your checkout's branding properties.
POST https://{shop}.myshopify.com/api/{api_version}/graphql.json
GraphQL query
JSON response
Anchor to Resetting stylesResetting styles
You can reset styles to their defaults by writing parent fields to null with
the GraphQL Admin API. Refer to examples of resetting
some
and
all
values to the defaults.
Anchor to LimitationsLimitations
-
You can't currently customize styling for individual pages.
Styles are applied across checkout, checkout queue, checkout UI extensions, and customer account pages.
-
SVG is not a supported image type for styling checkout.
Anchor to Developer tools and resourcesDeveloper tools and resources
Anchor to Get startedGet started
Follow these tutorials and learn how to apply custom styles.