Skip to content
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

Customize location where style tag is injected? (useful for shadow DOM) #386

Closed
sastan opened this issue Oct 4, 2022 Discussed in #332 · 1 comment
Closed

Customize location where style tag is injected? (useful for shadow DOM) #386

sastan opened this issue Oct 4, 2022 Discussed in #332 · 1 comment
Labels
✨ Feature Request Something should be added

Comments

@sastan
Copy link
Collaborator

sastan commented Oct 4, 2022

Discussed in #332

Originally posted by vedantroy May 28, 2022
Is it possible to customize where the style tag will be injected? For example, if I'm running a React app inside of a shadow DOM.

Use case: https://dev.to/tryeladd/preact-in-the-shadow-dom-ao8

@sastan sastan added the ✨ Feature Request Something should be added label Oct 4, 2022
@sastan
Copy link
Collaborator Author

sastan commented Dec 15, 2022

We have new integration package for web components: @twind/with-web-components. It supports modern and legacy browsers.

Maybe that solves the problem?

You can view a preview of the docs here: https://next.twind-style.pages.dev/with-web-components. I have added a Lit example as well in case you are using that: https://next.twind-style.pages.dev/with-lit

This will be released soon (#417). Until is released you can use the pre-release version (for example @twind/with-web-components@next, @twind/core@next or @twind/preset-tailwind@next).

If you have any issues or questions please re-open this issue.

@sastan sastan closed this as completed Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature Request Something should be added
Projects
None yet
Development

No branches or pull requests

1 participant