更改主题 js

Is there a script so user can change Theme ligt/dark by clicking on it,
im using the alien-night-discourse theme and they have the option to click on the sun or moon to change it but it doesnt change the theme only the background, here is the JS

<script async>
$(document).ready(function() {
	var darkTheme = localStorage.getItem("theme");
	if (darkTheme !== null){
		$('html').addClass('dark');
	}
	if (typeof(Storage) !== "undefined") {
		// Code for localStorage/sessionStorage.
		$('.theme-switcher-dark').on('click', function() {
			localStorage.setItem("theme", "dark");
			$('html').addClass('dark');
		});
		$('.theme-switcher-light').on('click', function() {
			localStorage.removeItem("theme");
			$('html').removeClass('dark');
		});
	} else {
		// Sorry! No Web Storage support..
		console.log('Upgrade to a better browser! Really!')
	}
});

您在这里查看主题指南没有收获吗?您应该考虑在那里发帖,以引起已关注该主题的人的注意(无论如何,这也是更好的论坛礼仪)。