@tomehq/theme 0.2.2 → 0.2.3

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/entry.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  entry_default
3
- } from "./chunk-CTPOZMMK.js";
3
+ } from "./chunk-O4GH3KYX.js";
4
4
  export {
5
5
  entry_default as default
6
6
  };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Shell,
4
4
  THEME_PRESETS,
5
5
  entry_default
6
- } from "./chunk-CTPOZMMK.js";
6
+ } from "./chunk-O4GH3KYX.js";
7
7
  export {
8
8
  AiChat,
9
9
  entry_default as App,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomehq/theme",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Tome default theme and React app shell",
5
5
  "type": "module",
6
6
  "main": "./src/index.tsx",
@@ -9,8 +9,8 @@
9
9
  "./entry": "./src/entry.tsx"
10
10
  },
11
11
  "dependencies": {
12
- "@tomehq/components": "0.2.2",
13
- "@tomehq/core": "0.2.2"
12
+ "@tomehq/components": "0.2.3",
13
+ "@tomehq/core": "0.2.3"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^18.0.0 || ^19.0.0",
package/src/entry.tsx CHANGED
@@ -77,8 +77,17 @@ const contentStyles = `
77
77
 
78
78
  /* Shiki dual-theme support */
79
79
  .shiki { background: var(--cdBg) !important; }
80
- html.dark .shiki .shiki-light { display: none; }
81
- html.light .shiki .shiki-dark { display: none; }
80
+
81
+ /* Dark mode: switch Shiki tokens from light-theme inline colors to --shiki-dark CSS vars */
82
+ html.dark .shiki,
83
+ html.dark .shiki span {
84
+ color: var(--shiki-dark) !important;
85
+ }
86
+
87
+ /* Brighten dim comment tokens (github-dark #6A737D is too low-contrast on dark backgrounds) */
88
+ html.dark .shiki span[style*="--shiki-dark:#6A737D"] {
89
+ --shiki-dark: #a0aab5 !important;
90
+ }
82
91
  `;
83
92
 
84
93
  // ── PAGE TYPES ────────────────────────────────────────────