API Reference
themeStorageKey
The key used to store the theme in local storage.
The key used to store the theme in local storage.
Usage
If you wanted to clear the history of the user's mode preference, you could use the themeStorageKey like so:
	<script lang="ts">
	import { themeStorageKey } from "mode-watcher";
 
	function clearThemeFromLocalStorage() {
		localStorage.removeItem($themeStorageKey);
	}
</script>
 
<p>Clear the user's theme preference history.</p>
<button on:click={clearThemeFromLocalStorage}>Clear</button>