Skip to content

Is Fomantic UI compatible with TailwindCss? #2887

Answered by lubber-de
Juliangzr asked this question in General
Discussion options

You must be logged in to vote

Sure you can. But the effectiveness of the tailwind classes may depends on the usage of !important statement, because otherwise the FUI css selectors would possibly override the tailwind specificity. So if you want to use tailwind together with FUI, I suggest to respect the include order (first semantic.min.css, then tailwind.css) and to enable the !important feature in tailwind.
If you don't want to combine the FUI classes with tailwind classes, this is most probably not needed.
So, if the tailwind classes are only used on non FUI components (which make use of the ui namespace class), you can just use both as they are as they should not interfere

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@lubber-de
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants