@xyd-js/host 0.0.0-build-ac02c26-20250820092555 → 0.0.0-build-1ec9d41-20250820094256

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/CHANGELOG.md CHANGED
@@ -1,24 +1,24 @@
1
1
  # @xyd-js/host
2
2
 
3
- ## 0.0.0-build-ac02c26-20250820092555
3
+ ## 0.0.0-build-1ec9d41-20250820094256
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - update all packages
8
8
  - Updated dependencies
9
- - @xyd-js/analytics@0.0.0-build-ac02c26-20250820092555
10
- - @xyd-js/atlas@0.0.0-build-ac02c26-20250820092555
11
- - @xyd-js/components@0.0.0-build-ac02c26-20250820092555
12
- - @xyd-js/composer@0.0.0-build-ac02c26-20250820092555
13
- - @xyd-js/content@0.0.0-build-ac02c26-20250820092555
14
- - @xyd-js/core@0.0.0-build-ac02c26-20250820092555
15
- - @xyd-js/framework@0.0.0-build-ac02c26-20250820092555
16
- - @xyd-js/plugin-algolia@0.0.0-build-ac02c26-20250820092555
17
- - @xyd-js/plugin-orama@0.0.0-build-ac02c26-20250820092555
18
- - @xyd-js/theme-cosmo@0.0.0-build-ac02c26-20250820092555
19
- - @xyd-js/theme-gusto@0.0.0-build-ac02c26-20250820092555
20
- - @xyd-js/theme-opener@0.0.0-build-ac02c26-20250820092555
21
- - @xyd-js/theme-picasso@0.0.0-build-ac02c26-20250820092555
22
- - @xyd-js/theme-poetry@0.0.0-build-ac02c26-20250820092555
23
- - @xyd-js/theme-solar@0.0.0-build-ac02c26-20250820092555
24
- - @xyd-js/themes@0.0.0-build-ac02c26-20250820092555
9
+ - @xyd-js/analytics@0.0.0-build-1ec9d41-20250820094256
10
+ - @xyd-js/atlas@0.0.0-build-1ec9d41-20250820094256
11
+ - @xyd-js/components@0.0.0-build-1ec9d41-20250820094256
12
+ - @xyd-js/composer@0.0.0-build-1ec9d41-20250820094256
13
+ - @xyd-js/content@0.0.0-build-1ec9d41-20250820094256
14
+ - @xyd-js/core@0.0.0-build-1ec9d41-20250820094256
15
+ - @xyd-js/framework@0.0.0-build-1ec9d41-20250820094256
16
+ - @xyd-js/plugin-algolia@0.0.0-build-1ec9d41-20250820094256
17
+ - @xyd-js/plugin-orama@0.0.0-build-1ec9d41-20250820094256
18
+ - @xyd-js/theme-cosmo@0.0.0-build-1ec9d41-20250820094256
19
+ - @xyd-js/theme-gusto@0.0.0-build-1ec9d41-20250820094256
20
+ - @xyd-js/theme-opener@0.0.0-build-1ec9d41-20250820094256
21
+ - @xyd-js/theme-picasso@0.0.0-build-1ec9d41-20250820094256
22
+ - @xyd-js/theme-poetry@0.0.0-build-1ec9d41-20250820094256
23
+ - @xyd-js/theme-solar@0.0.0-build-1ec9d41-20250820094256
24
+ - @xyd-js/themes@0.0.0-build-1ec9d41-20250820094256
package/app/root.tsx CHANGED
@@ -102,9 +102,13 @@ function clientColorScheme() {
102
102
  isDark = true;
103
103
  } else if (theme === 'auto') {
104
104
  isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
105
- }
106
105
 
107
- return isDark ? "dark" : undefined
106
+ if (isDark) {
107
+ return "dark"
108
+ }
109
+ } else if (theme === 'light') {
110
+ return "light"
111
+ }
108
112
  } catch (e) {
109
113
  // Fallback to system preference if localStorage fails
110
114
  if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
@@ -7,10 +7,12 @@
7
7
  isDark = true;
8
8
  } else if (theme === 'auto') {
9
9
  isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
10
- }
11
10
 
12
- if (isDark) {
13
- document.documentElement.setAttribute('data-color-scheme', 'dark');
11
+ if (isDark) {
12
+ document.documentElement.setAttribute('data-color-scheme', 'dark');
13
+ }
14
+ } else if (theme === 'light') {
15
+ document.documentElement.setAttribute('data-color-scheme', 'light');
14
16
  }
15
17
  } catch (e) {
16
18
  // Fallback to system preference if localStorage fails
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/host",
3
- "version": "0.0.0-build-ac02c26-20250820092555",
3
+ "version": "0.0.0-build-1ec9d41-20250820094256",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "katex": "^0.16.22",
@@ -13,22 +13,22 @@
13
13
  "@react-router/serve": "^7.7.1",
14
14
  "openux-js": "0.0.0-pre.1",
15
15
  "pluganalytics": "0.0.0-pre.3",
16
- "@xyd-js/analytics": "0.0.0-build-ac02c26-20250820092555",
17
- "@xyd-js/core": "0.0.0-build-ac02c26-20250820092555",
18
- "@xyd-js/components": "0.0.0-build-ac02c26-20250820092555",
19
- "@xyd-js/content": "0.0.0-build-ac02c26-20250820092555",
20
- "@xyd-js/framework": "0.0.0-build-ac02c26-20250820092555",
21
- "@xyd-js/composer": "0.0.0-build-ac02c26-20250820092555",
22
- "@xyd-js/themes": "0.0.0-build-ac02c26-20250820092555",
23
- "@xyd-js/atlas": "0.0.0-build-ac02c26-20250820092555",
24
- "@xyd-js/theme-poetry": "0.0.0-build-ac02c26-20250820092555",
25
- "@xyd-js/theme-cosmo": "0.0.0-build-ac02c26-20250820092555",
26
- "@xyd-js/theme-opener": "0.0.0-build-ac02c26-20250820092555",
27
- "@xyd-js/theme-picasso": "0.0.0-build-ac02c26-20250820092555",
28
- "@xyd-js/theme-gusto": "0.0.0-build-ac02c26-20250820092555",
29
- "@xyd-js/theme-solar": "0.0.0-build-ac02c26-20250820092555",
30
- "@xyd-js/plugin-orama": "0.0.0-build-ac02c26-20250820092555",
31
- "@xyd-js/plugin-algolia": "0.0.0-build-ac02c26-20250820092555"
16
+ "@xyd-js/analytics": "0.0.0-build-1ec9d41-20250820094256",
17
+ "@xyd-js/core": "0.0.0-build-1ec9d41-20250820094256",
18
+ "@xyd-js/components": "0.0.0-build-1ec9d41-20250820094256",
19
+ "@xyd-js/content": "0.0.0-build-1ec9d41-20250820094256",
20
+ "@xyd-js/framework": "0.0.0-build-1ec9d41-20250820094256",
21
+ "@xyd-js/composer": "0.0.0-build-1ec9d41-20250820094256",
22
+ "@xyd-js/themes": "0.0.0-build-1ec9d41-20250820094256",
23
+ "@xyd-js/atlas": "0.0.0-build-1ec9d41-20250820094256",
24
+ "@xyd-js/theme-poetry": "0.0.0-build-1ec9d41-20250820094256",
25
+ "@xyd-js/theme-cosmo": "0.0.0-build-1ec9d41-20250820094256",
26
+ "@xyd-js/theme-opener": "0.0.0-build-1ec9d41-20250820094256",
27
+ "@xyd-js/theme-picasso": "0.0.0-build-1ec9d41-20250820094256",
28
+ "@xyd-js/theme-gusto": "0.0.0-build-1ec9d41-20250820094256",
29
+ "@xyd-js/theme-solar": "0.0.0-build-1ec9d41-20250820094256",
30
+ "@xyd-js/plugin-orama": "0.0.0-build-1ec9d41-20250820094256",
31
+ "@xyd-js/plugin-algolia": "0.0.0-build-1ec9d41-20250820094256"
32
32
  },
33
33
  "devDependencies": {
34
34
  "autoprefixer": "^10.4.20",