Re: [WICG/webcomponents] "open-stylable" Shadow Roots (#909)

hayleigh-dot-dev left a comment (WICG/webcomponents#909)

Hey folks! I maintain a [modest frontend framework](https://github.com/lustre-labs/lustre) for a programming language called Gleam, and here we use custom elements + shadow root as the foundation for the component system. This works super well for us for a bunch of reasons but one important point is that shadow dom allows us to have an effective component system without a great deal of special runtime support, meaning less javascript shipped and a simpler implementation.

One area where this isn't the case is with styling, where we [go to great efforts](https://github.com/lustre-labs/lustre/blob/3f7e851737c29e3352617347d862dbddd5b646e8/src/lustre/runtime/client/runtime.ffi.mjs#L315) to have application components Just Work ™️ without intervention or special knowledge from the developer. For the most part this has worked out but there are obvious cases we don't handle that our users just haven't run into yet.

I fear there might be some apprehension around making WCs easier to build frameworks on top of given past "WC vs framework" hostility, but for Lustre building on top of the platform has proven to be a very positive decision and open-stylable shadow roots would adress really the only major thing we have to work around.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/909#issuecomment-4173605501
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/909/4173605501@github.com>

Received on Wednesday, 1 April 2026 23:42:30 UTC