I recently encountered an issue where my Google Chrome browser was unable to set the prefers-color-scheme option to dark, even though I had configured it to do so in the gtk settings.ini file. This problem only occurred with Sway; in other desktop environments, Chrome set that option correctly.
The solution to this problem was the following command:
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'