@jill64/svelte-device-theme
Advanced tools
Comparing version 2.0.0-next.3 to 2.0.0-next.4
@@ -1,1 +0,4 @@ | ||
export declare let isDark: boolean | undefined; | ||
export declare let is: { | ||
readonly dark: boolean | undefined; | ||
readonly light: boolean; | ||
}; |
import { listen } from 'svelte-mq-store'; | ||
export let isDark = listen('(prefers-color-scheme: dark)'); | ||
let isDark = listen('(prefers-color-scheme: dark)'); | ||
export let is = { | ||
get dark() { | ||
return isDark; | ||
}, | ||
get light() { | ||
return !isDark; | ||
} | ||
}; |
{ | ||
"name": "@jill64/svelte-device-theme", | ||
"description": "☯ A simple store that syncs with your device's theme settings", | ||
"version": "2.0.0-next.3", | ||
"version": "2.0.0-next.4", | ||
"main": "dist/index.svelte.js", | ||
@@ -6,0 +6,0 @@ "type": "module", |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4327
14
0