finally seeing someone talk about using light-dark() to avoid those massive duplicate stylesheets. that trick with setting -theme as a variable to handle data-theme="inverted" is pretty clever, but i'm not sure how it handles complex components that need specific overrides.
>I actually want is the theme to be "opposite" the current theme.it seems like a lot of magic for a single 0.5kb gzip. anyone tried running this with heavy custom assets?
full read:
https://daverupert.com/2026/04/inverted-light-dark/