I'm using Mantine v7.1.2 with NextJS.I've already added this code to my _app.tsx, but the flash of dark-theme on page-refresh still persists. How do I fix this? Thank you so much in advance
<MantineProvider theme={defaultTheme} defaultColorScheme='light'>
Mantine team provides templates for popular environments on their document. There are not enough details in your question but I can suggest you to check out the templates and compare with your project.
Templates listed here.
Next app route and Next page route, both of them available.