Global Theme Scheme Switcher
Extension for Gnome 45+.
Changes the GTK3 (legacy) theme variant to light/dark when the scheme is changed from Settings.
Get the extension: https://extensions.gnome.org/extension/4998/legacy-gtk3-theme-scheme-auto-switcher/