Skip to main content

Allow color variable to be assigned to canvas

  • July 25, 2023
  • 1 reply
  • 298 views

jackbrind

Using modes to switch to light and dark, for example, at the project level is great but the issue I am having is that my canvas is always white (#FFFFFF). For designing UI as part of an application or flow, this is fine as it doesn’t affect it, but it is an issue when constructing components in our design system.
Let’s say I have a button component with all of the variants and all of those have variants hooked up. When I switch the project to dark mode, most it becomes invisible until I change the canvas color to a darker color. Ideally, I’d like to have the canvas color hooked up to my variable of background.default so that I can always see components against the surface that they will be displayed.
Having to manually change this is just a pain when testing components in different themes. Simply allowing the canvas colour to take on a variable color would fix this. In the below image, in dark mode my canvas is still #FFFFFF which I need to keep changing.

image

This topic has been closed for replies.

1 reply

  • 0 replies
  • October 23, 2023

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.


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