Skip to content

Instantly share code, notes, and snippets.

@jarthorn
Created September 13, 2023 14:48
Show Gist options
  • Save jarthorn/4c9d5af8925a37b5ccd86f8e10367c31 to your computer and use it in GitHub Desktop.
Save jarthorn/4c9d5af8925a37b5ccd86f8e10367c31 to your computer and use it in GitHub Desktop.
mutation checkoutBrandingUpsert($checkoutBrandingInput: CheckoutBrandingInput!, $checkoutProfileId: ID!) {
checkoutBrandingUpsert(checkoutBrandingInput: $checkoutBrandingInput, checkoutProfileId: $checkoutProfileId) {
checkoutBranding {
designSystem {
colors {
schemes {
scheme1 {
primaryButton {
background
text
hover {
background
text
}
}
base {
background
}
}
scheme4 {
base {
background
}
}
}
}
}
customizations {
main {
colorScheme
}
}
}
}
}
{
"checkoutProfileId": "gid://shopify/CheckoutProfile/1",
"checkoutBrandingInput": {
"designSystem": {
"colors": {
"schemes": {
"scheme1": {
"primaryButton": {
"background": "#FF0000",
"text": "#00FF00",
"hover": {
"text": "#FF0000",
"background":"#00FF00"
}
},
"base": {
"background": "#FFFFFF"
}
},
"scheme2": {
"base": {
"background": "#00FF00"
}
}
}
}
},
"customizations": {
"main": {
"colorScheme": "COLOR_SCHEME2"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment