Shopify / checkout-sheet-kit-swift

Shopify’s Checkout Sheet Kit makes it simple to perform a checkout inside your Swift native app.
MIT License
38 stars 15 forks source link

Can we change Pay Now Button Color? #190

Closed musharaf-at-NGI closed 4 months ago

musharaf-at-NGI commented 4 months ago

What area is the issue related to?

Checkout Sheet Kit

What version of Checkout Sheet Kit are you using?

2.0.1

Reproducible sample code

No response

Steps to Reproduce

Not able to change Pay Now Button Color with Existing Properties

Expected Behavior

There should be a property to change button Pay Now Color

Actual Behavior

Not able to change Pay Now Button Color with Existing Properties

Screenshots/Videos/Log output

image

Storefront domain

https://revibe-me.myshopify.com/

kiftio commented 4 months ago

If you use the web color scheme you'll inherit the colors from your desktop store, that you set in the checkout editor:

Screenshot 2024-07-11 at 09 10 32

We don't have Checkout Sheet Kit specific branding/color overrides yet for light/dark color schemes, but it's something that's planned.

markmur commented 4 months ago

As Daniel mentioned, using the web colorScheme should give you the desired effect.

ShopifyCheckoutSheetKit.configure {
    $0.colorScheme = .web
}
musharaf-at-NGI commented 4 months ago

Thank you @markmur And @kiftio for prompt response. It resolved the issue. We actually wanted to go with Web theme.