Hi!
I’m creating a theme extension app for my client and I added a button to the cart page. I want that button to inherit the styles of the theme’s buttons, because if in the future the client changes the theme, I don’t want to have to edit the code and copy the new styles to my button.
Is this possible? or will I always have to go edit the button style?
Hi @ImoralesMV . If your app renders iframe content - you need to style button or add styling settings in app.
If your app renders content in theme flow (like innerHTML or else) - you can utilize theme classes.
If your app is global (in app store) - i think better to add class name field in settings, so user can add class name and button will look same as on clients theme.
1 Like
Thanks @Ihor-Sh !
I wil trye add the class to the button by config in my shopify app.