API Reference

userPrefersMode

A store for tracking the user's preferred mode.

A writeable store that represents the user's mode preference. It can be "light", "dark" or "system".

Usage

	<script lang="ts">
	import { userPrefersMode } from "mode-watcher";
</script>
 
<p>Your preferred mode is: {$userPrefersMode}</p>	
MIT

© 2024 Svecosystem Team