Idea: use CSS layers #2803
jamesarosen
started this conversation in
Ideas
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
import '@copilotkit/react-ui/styles.css'defines CSS in the topmost unnamed CSS layer. This works:But this doesn't (using NextJS semantics, but also applies to other frameworks):
because the root layout imports the "overrides" before the page.
If CopilotKit were to define its default styles in a
copilotkitCSS layer, it would be easy for applications to define where that layer exists and how to apply overrides. For exampleNow my overrides win!
If folks are interested, I'd be happy to submit a pull request.
Beta Was this translation helpful? Give feedback.
All reactions