Dark Light mode gradients with Buttons

hello community :slightly_smiling_face:
our design system works with dark light mode variables which works perfectly except for the buttons which have a gradient.
Any ideas on how I create this style working with dark/light mode?

buttons

The button should be able to resize with different text lengths (working with auto layout).

Any idea appreciated :slightly_smiling_face:

Hi @Lotta

AS of today, color variable doesn’t handle gradient. But someone as figured a way of doing it. You can find the post and the example file over there :

1 Like

great, thank you I will work through this! :slightly_smiling_face: