Skip to main content
Question

Dark Light mode gradients with Buttons

  • December 21, 2023
  • 2 replies
  • 929 views

Lotta

hello community πŸ™‚
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 πŸ™‚

2 replies

Haroll
  • Active Member
  • 273 replies
  • December 21, 2023

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 :


Lotta
  • Author
  • 1 reply
  • December 22, 2023

great, thank you I will work through this! πŸ™‚


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings