microboard-ui-temp 0.9.8 → 0.9.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/example.html CHANGED
@@ -31,8 +31,20 @@
31
31
  rel="stylesheet"
32
32
  />
33
33
 
34
- <link rel="stylesheet" crossorigin href="/chunk-dr0g41aw.css"><script src="/env.js"></script>
35
- <script type="module" crossorigin src="/chunk-zfnz46n9.js"></script></head>
34
+ <script src="/env.js"></script>
35
+ <script>
36
+ (function () {
37
+ var s = localStorage.getItem("ui-theme");
38
+ var t =
39
+ s === "light" || s === "dark"
40
+ ? s
41
+ : window.matchMedia("(prefers-color-scheme: dark)").matches
42
+ ? "dark"
43
+ : "light";
44
+ document.documentElement.setAttribute("data-theme", t);
45
+ })();
46
+ </script>
47
+ <link rel="stylesheet" crossorigin href="/chunk-dr0g41aw.css"><script type="module" crossorigin src="/chunk-zfnz46n9.js"></script></head>
36
48
 
37
49
  <body
38
50
  style="
package/dist/index.html CHANGED
@@ -31,8 +31,20 @@
31
31
  rel="stylesheet"
32
32
  />
33
33
 
34
- <link rel="stylesheet" crossorigin href="/chunk-dr0g41aw.css"><script src="/env.js"></script>
35
- <script type="module" crossorigin src="/chunk-zfnz46n9.js"></script></head>
34
+ <script src="/env.js"></script>
35
+ <script>
36
+ (function () {
37
+ var s = localStorage.getItem("ui-theme");
38
+ var t =
39
+ s === "light" || s === "dark"
40
+ ? s
41
+ : window.matchMedia("(prefers-color-scheme: dark)").matches
42
+ ? "dark"
43
+ : "light";
44
+ document.documentElement.setAttribute("data-theme", t);
45
+ })();
46
+ </script>
47
+ <link rel="stylesheet" crossorigin href="/chunk-dr0g41aw.css"><script type="module" crossorigin src="/chunk-zfnz46n9.js"></script></head>
36
48
 
37
49
  <body
38
50
  style="
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-ui-temp",
3
- "version": "0.9.8",
3
+ "version": "0.9.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",