For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
I'm creating an app checkout ui extension. I would like change the background color of the button dynamically form the shopify app. Is this possible? I've tried React useRef, by querySelector. Is there any way to change the background color of the button?
Hello @thesandeep
yes, You can change the background color of your button using the Shopify Checkout Branding API. For more information, refer to the Shopify documentation at Shopify Checkout Branding API.
Additionally, you can also modify the button's appearance through the checkout settings.
If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.
Thank you.