Color mapping?
#1752
Replies: 1 comment
-
Use Input with custom component – https://mantine.dev/core/input/#custom-component |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
How could I map colors from default theme? For example I want to make button look like an
Input
, give it the same color, border and so on. I can hardcode color values taken from dev-tools, but it won't work if I change app's colors later. So right now I pick the default color, search Mantine sources for it, count it's position in the color array and usetheme.colors.<color>[<number>]
. Is there a better solution? Or am I missing something?Beta Was this translation helpful? Give feedback.
All reactions