@jill64/svelte-device-theme
Advanced tools
Comparing version 2.0.0-next.2 to 2.0.0-next.3
@@ -1,1 +0,1 @@ | ||
export declare const isDark: boolean | undefined; | ||
export declare let isDark: boolean | undefined; |
import { listen } from 'svelte-mq-store'; | ||
export const isDark = listen('(prefers-color-scheme: dark)'); | ||
export let isDark = listen('(prefers-color-scheme: dark)'); |
{ | ||
"name": "@jill64/svelte-device-theme", | ||
"description": "☯ A simple store that syncs with your device's theme settings", | ||
"version": "2.0.0-next.2", | ||
"version": "2.0.0-next.3", | ||
"main": "dist/index.svelte.js", | ||
@@ -6,0 +6,0 @@ "type": "module", |
@@ -22,3 +22,3 @@ <!----- BEGIN GHOST DOCS HEADER -----> | ||
{#if $isDark} | ||
{#if isDark} | ||
Device is dark mode | ||
@@ -25,0 +25,0 @@ {:else} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4169