Replies: 2 comments 2 replies
-
Try importing the third-party CSS in your own CSS instead of JS so that you can put it in a cascade layer: @import 'rsuite/dist/rsuite.min.css' layer(components); Tailwind rules are all in cascade layers which have lower precedence that CSS rules outside, hence why the Tailwind classes don't work. |
Beta Was this translation helpful? Give feedback.
-
Thanks for answer, it work, but, it also fully override rsuitejs style. I've used So can I make applying css styles in this order: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I try to use tailwind 4 with rsuitejs, rsuite.min.css is render higher than tailwind.css.
I've done this steps to setup:
tailwind.css
in/src/
folder and put in it following code:gulpe.json
this code beforebuild.initialize(require('gulp'));
(almost there):import "../../../dist/tailwind.css"
and setup button:also I added
import 'rsuite/dist/rsuite.min.css';
before import tailwind.Maybe I did something wrong in configuring? Because when I setup almost same steps for tailwind 3 it work on top of rsuitejs.
(I use rsuitejs because it meet minimal requirements to old react version of SPFx).
Beta Was this translation helpful? Give feedback.
All reactions