#Getting a light variant color theme.fn.variant

17 messages · Page 1 of 1 (latest)

winged cedar
inland oyster
winged cedar
#

Ah ok, is there any other way to get the variant colors besides just manually setting them?

#

specifically for the light variant?

#

or are those colors just calculated

winged cedar
#

For example, the colors that are used when you specify blue on a button, with the light variant

#

These

winged cedar
#

Oh this is actually exactly what I did, so the actual issue is that it looks like it's getting colors for the light color scheme instead of dark (sorry, a little confusing using the term "light" for two different meanings here)

#

In the mantineprovider I do have the colorScheme set to dark

#

<MantineProvider theme={{ colorScheme: 'dark' }} withNormalizeCSS>

inland oyster
winged cedar
#

AH

#

I see the issue

#

I was getting the theme object before I was setting the color scheme in the Mantine Provider