lukejacksonn / oceanwind

Compiles tailwind shorthand into css at runtime. Succeeded by Twind.
https://twind.dev
264 stars 12 forks source link

Proposal: Support for native Web Components #45

Closed timonson closed 3 years ago

timonson commented 3 years ago

Instead of adding the styles into the head element, I would appreciate an option to add them into the ShadowRoot. You can find more about Custom Elements here.

Maybe there is already a workaround I am not aware of?

sastan commented 3 years ago

You could try twind (the successor of oceanwind and beamwind): https://twind.dev/docs/handbook/recipes/use-with/web-components.html

timonson commented 3 years ago

Thanks, looks good!