#Access primary color via index

7 messages Β· Page 1 of 1 (latest)

pure swallow
#

Hey!
I just started to use Mantine and I am not sure how to correctly handle the different shades of primary color. If I want to use a different shade for lets say blue I can just use theme.colors.blue[6]. But what if I want to do the same for primaryColor? If I do something like theme.primaryColor[6] it does not work.

What is the best way to use a different shade of the primaryColor or do I have to work with theme.primaryShadehere?

pastel sluice
#

theme.colors[theme.primaryColor][<index>]

#

BTW, did you just like your own question? : D

pure swallow
pure swallow
pure swallow
#

Okay, any workaround to avoid this, I do not like the red lines in my files πŸ™ˆ