Closed artemchs closed 2 hours ago
Hi there! It looks like there might be a little misunderstanding in how to use it.
I've made some updates to the template to include the custom theme code in this commit.
Please take a look, and let me know if you have any questions!
Thank you for clarifications. Yes, not it works as expected with no type issues.
I've also updated the docs to make it more clear for custom themes:
https://github.com/songkeys/tailwind-preset-mantine#custom-mantine-theme
Reproduction
I've created a minimal repository that demonstrates this issue: next-app-mantine-tailwind-template-issue
Steps to reproduce:
pnpm install
)src/app/layout.tsx
on line 50Description
There seems to be a disconnect between the documentation for custom theme usage and how it should be implemented with
MantineProvider
. The current documentation shows how to configure the Tailwind preset with a custom Mantine theme, but it's not clear how this should work withMantineProvider
.Current Behavior
Following the documentation, I created a theme configuration like this:
However, when trying to use this configuration with
MantineProvider
:I get the following TypeScript error:
Expected Behavior
I expect to be able to use my custom theme with MantineProvider without any type issues.
Environment
tailwind-preset-mantine
version: [^1.2.1]@mantine/core
version: [^7.13.4]