-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styles from Copilotkit Overriding MUI and Shadcn Styles #366
Comments
12 |
11 |
The same issue also happens with A possible solution I see is that copilotkit prefixes it's tailwind classnames to avoid conflicts. (it's commented out currently) |
thanks for the suggestion @mubinansari |
@dewanshDT @mubinansari this issue should be fixed with the latest release, also for thx again for the prefixing suggestion, we made it work this way. Could you check if the issue is gone on your end? |
Issue: Styles from Copilotkit Overriding MUI and Shadcn Styles
Describe the bug
I'm experiencing an issue where the styles from Copilotkit are overriding the styles of other libraries, specifically MUI and Shadcn. This problem arises because Copilotkit exports all the base classes in its
styles.css
file, which needs to be imported while working with Copilotkit:These styles from
styles.css
are conflicting with the styles of MUI and Shadcn components. For example, in the attached code sandbox demonstration, the styles of the Shadcn Alert Dialog component, specifically the confirm button's styles, are being overridden by Copilotkit's styles.To Reproduce
Steps to reproduce the behavior (the easier it is to replicate, the sooner it will get fixed):
import "@copilotkit/react-ui/styles.css";
You can see the working demonstration of the issue in the following CodeSandbox link:
CodeSandbox Demo
Expected behavior
The styles from Copilotkit should not override the styles of MUI and Shadcn components.
Screenshots
expected
current
Environment:
CopilotKit Packages
The text was updated successfully, but these errors were encountered: