Re:Tailwind CSS v3.3
by quechimba on Wednesday March 29, 2023 @02:42PM
(#35361426)
There is also the ::part() selector now which is quite useful for selecting things within a shadow. https://shoelace.style/ uses parts for styling individual parts within custom elements.
[ Parent
| on HN ]
Re:Tailwind CSS v3.3
by claytongulick on Wednesday March 29, 2023 @09:03PM
(#35366308)
In practice, I've found that to be pretty unwieldy and difficult to use.
My general approach is to keep most application level components in the light dom for styling, and only use shadow dom for library-like components, mostly layouts for slotting light dom stuff.