How to handle contrast colors? #2476
Unanswered
oliveryasuna
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Say I have the following colors:
Is there a smart way to handle contrast color for
primary
?I thought to just make
primary
an object:Now I have to reference it in
sx
withprimary.main
andprimary.contrast
. This seems messy. Maybe there is a way to makeprimary
reference#c33991
andprimary.contrast
reference#fff
?Beta Was this translation helpful? Give feedback.
All reactions