Discourse does support light/dark theme switch in preferences tab
It’s not implemented on this forum though. I would love it - it’ll work for both desktop and mobile without third party software.
edit: @RETowers could you please look into implementing this feature on the forum? We’d be very grateful.