I don't think there's a silver bullet here. The unique thing about these themes is that some of them will use a dark text color in the toolbar, but then will use dark panels, or light toolbar text and light panels. The themes are registering correctly as dark/lighttext based on their toolbar color, but then system colors used in places with different backgrounds break. I think we just need to be more aggressive about dark mode overrides based on more specific properties on :root, such as using dark mode colors in panels with
:root[lwt-popup-brighttext].. One issue is system colors, where dark/lightness is set entirely based on toolbar color. I don't think it's possible to get different system colors automatically based on context. For system colors, we'll have to use
I'm closing this bug in favour of specific bugs to fix system colors in panels and other surfaces.