This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@jill64/svelte-device-theme
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

@jill64/svelte-device-theme

npm-version npm-license npm-download-month npm-min-size ci.yml website

☯ A simple store that syncs with your device's theme settings

Usage

<script>
  import { is } from '@jill64/svelte-device-theme'
</script>

{#if is.dark}
  Device is dark mode
{:else}
  Device is light mode
{/if}

[!NOTE]
$isDark is undefined on the server.
If you need full theme management including SSR, please see @jill64/svelte-dark-theme.

License

MIT

/@jill64/svelte-device-theme/

    Package Sidebar

    Install

    npm i @jill64/svelte-device-theme

    Weekly Downloads

    45

    Version

    2.0.2

    License

    MIT

    Unpacked Size

    5.42 kB

    Total Files

    5

    Last publish

    Collaborators

    • jill64