Conflict with other CSS package
See original GitHub issueWhat package has an issue
Describe the bug
I’m using TailwindCSS which injects things like this in a CSS sheet
[type=button], [type=reset], [type=submit], button {
-webkit-appearance: button;
background-color: transparent;
background-image: none;
}
This results in conflicts with mantine button styles that get overwritten. The issue is that mantine generate inlines styles that get overrides by the stylesheet of tailwind. I could disable tailwind rules, but i Rather having the one from mantine be specifically applied on mantine specific button.
In order to achieve that I would like to know if there is a way to inject the css of mantine after the one from tailwind using a directive or something like that ? Didn’t found anything related to this in the documentation.
Thanks
In which browser did the problem occur
Ever
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
No
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
Having capability to inject mantine css after tailwind one
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Legacy CSS conflicts with Bootstrap - how to resolve?
This issue occurs when an HTML document recognizes two parameter of one style within it. Remove or comment or modify parameters that caused ......
Read more >How We Solve CSS Versioning Conflicts Here at New Relic
There is no perfect solution for CSS versioning issues—basically, double-class collisions in CSS—and the industry approaches vary widely, from a ...
Read more >CSS namespaces: how to avoid conflict between style sheets ...
Learn how to encapsulate any CSS file in its own namespace, avoiding name collisions between your files and those shipped with Bootstrap, ...
Read more >How to Isolate Bootstrap CSS to Avoid Conflicts - Formden.com
This article will teach you how to isolate Bootstrap CSS from other CSS on your website so that they do not conflict.
Read more >CSS Conflict Resolution Rules Explained - Medium
When there are two different declarations for the same element but they focus on different attributes, the styles simply merge, and the element ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The current workaround is to add prepend false in mantine provider.
so mantine will be loaded after tailwind, this will load mantine button styles correctly, but i haven’t dig deep to see other things goes wrong or not.
e.g. _app.tsx
emotionOptions
are not supported in v5, you need to provide your own emotion cache – https://v5.mantine.dev/theming/emotion-cache/