Skip to content

What's the Easiest way to get the resovled primary color? #7534

Answered by elibroftw
elibroftw asked this question in Q&A
Discussion options

You must be logged in to vote

I'm going to go with

const colorResolved = theme.variantColorResolver({color: theme.primaryColor, theme, variant: 'subtle'}).color;

But I really wish this was simpler? Like we should only supply variant and color.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by elibroftw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant