Data grid style conflict with tailwindbase #3674
robert-luoqing
started this conversation in
General
Replies: 7 comments 1 reply
|
Can you create a reproducible example? |
0 replies
|
Here is sample.
|
0 replies
|
Can you create a codesandbox/stackblitz example? |
0 replies
|
https://codesandbox.io/p/devbox/react-data-grid-style-conflict-with-tailwind-sx8whr |
0 replies
|
RDG uses css layers and it seems like tailwind styles are unlayed in the above example and the following block overrides RDG styles Is this a setup issue as it looks like |
0 replies
|
Any solution to this? Dealing with the same problem unfortunately :/ |
0 replies
|
Even Treedatagrid is not working... it has to do something with how the CSS is working with tailwind v4. The shadow is gone and also the grids lines/borders as well. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When I import Tailwind's style components into index.css, the grid's style changes unexpectedly and no longer appears as the default or preferred design. However, when I comment out @tailwind base;, the style reverts to normal.
Here is the code I'm using:
Issue Screenshots


Unexpected style (with @tailwind base;)
Normal style (without @tailwind base;)
Request for Help
How can I resolve this issue? I want to include @tailwind base; in my project but still maintain the normal style.
To Reproduce
Link to code example:
Expected behavior
Environment
react/react-dom: "^18.3.1",Additional context
All reactions