Replies: 1 comment 12 replies
-
You are using a shadow root UI for your main UI. So the styles are isolated to that UI only. When you add a new UI outside the shadow root, your original styles aren't applied. So you need to call |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
I am dynamically injecting a container component using the injectTailwind function. What I expect is that the dynamically created component displays with the Tailwind CSS styles (such as h-[300px], bg-slate-50, dark:bg-slate-900, etc.). What is actually happening is that the container renders without any Tailwind styling.
Reproduction
https://github.com/ntdgo/wxt-react-shadcn-tailwindcss-chrome-extension/blob/f13d3b5140a787d01c77240133e47b3ac0ce3c40/entrypoints/content/App.tsx#L56
Steps to reproduce
System Info
Used Package Manager
npm
Validations
Beta Was this translation helpful? Give feedback.
All reactions