You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👉 @rtivital Can you also expose primary color variables with enumeration?
Such as --mantine-primary-color-filled-5 or --mantine-primary-color-5?
This would allow us to refer using: bg-primary-5 dark:bg-primary-2
This is very crucial to our application.
Using bg-${theme.primaryColor}-5doesn't work for any color (let's say red) but bg-red-5 works for some reason.
What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
^7.2.2
If possible, please include a link to a codesandbox with a minimal reproduction
No response
Do you know how to fix the issue
None
Do you want to send a pull request with a fix?
None
Possible fix
No response
The text was updated successfully, but these errors were encountered:
What package has an issue?
@mantine/core
Describe the bug
After the breaking changes (v7) and migration to CSS variables, we decided to sync Tailwind with Mantine.
tailwind.config.js
:Now we can refer to tailwind classes which are synced with Mantine:
e.g.
className='bg-red-2 dark:bg-white'
The problem occurs with primary colors. Tailwind supports it:
tailwind.config.js
:However, Mantine doesn't support it - it doesn't expose enumared primary colors.
These aren't enough:
https://mantine.dev/styles/css-variables-list/#no-dependency:
👉 @rtivital Can you also expose primary color variables with enumeration?
Such as
--mantine-primary-color-filled-5
or--mantine-primary-color-5
?This would allow us to refer using:
bg-primary-5 dark:bg-primary-2
This is very crucial to our application.
Using
bg-${theme.primaryColor}-5
doesn't work for any color (let's say red) butbg-red-5
works for some reason.What version of @mantine/* packages do you have in package.json? (Note that all @mantine/* packages must have the same version in order to work correctly)
^7.2.2
If possible, please include a link to a codesandbox with a minimal reproduction
No response
Do you know how to fix the issue
None
Do you want to send a pull request with a fix?
None
Possible fix
No response
The text was updated successfully, but these errors were encountered: