#Does mantine export a theme css variable?

6 messages · Page 1 of 1 (latest)

undone gorge
#

I need to get the current theme (dark/white) using css variables. I can see that mantine exports a few variables (https://mantine.dev/theming/mantine-provider/#css-variables) and I don't see anything indicating the theme in it. But is there any other way to get the current theme?

I have a custom scrollbar and I'm basically trying to change the color based on the theme.

hazy estuary
undone gorge
#

Hmm true...

#

I guess there's no way to base the color of the scrollbar off the theme then?

spare pollen
#

define custom properties in other, it's fully flexible with whatever type structure you want