matthewp / haunted

React's Hooks API implemented for web components 👻
BSD 2-Clause "Simplified" License
2.59k stars 92 forks source link

styling example #379

Closed chadams closed 1 year ago

chadams commented 2 years ago

an example of styling a component is missing from the docs, How would one go about adding styles to the shadowDom?

herrKlein commented 1 year ago

+1 Would love to add tailwind classes. Or have an open shadowroot

matthewp commented 1 year ago

Thanks, but this is no different from styling in any web component framework. I don't think Haunted's readme is the place to explain how to do everything with web components, just how to use Haunted. Happy to have some links to external docs if anyone has those.