@tomehq/theme 0.2.6 → 0.2.7

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-YZ3P3TNS.js";
3
+ } from "./chunk-X4VQYPKO.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-YZ3P3TNS.js";
6
+ } from "./chunk-X4VQYPKO.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.6",
3
+ "version": "0.2.7",
4
4
  "description": "Tome default theme and React app shell",
5
5
  "type": "module",
6
6
  "main": "./src/index.tsx",
package/src/entry.tsx CHANGED
@@ -97,6 +97,14 @@ const contentStyles = `
97
97
  html.dark .shiki span[style*="--shiki-dark:#6A737D"] {
98
98
  --shiki-dark: #a0aab5 !important;
99
99
  }
100
+
101
+ /* Light mode: darken low-contrast github-light tokens for WCAG AA on --cdBg backgrounds */
102
+ html:not(.dark) .shiki span[style*="color:#6A737D"] { color: #57606a !important; }
103
+ html:not(.dark) .shiki span[style*="color:#E36209"] { color: #b35405 !important; }
104
+ html:not(.dark) .shiki span[style*="color:#6F42C1"] { color: #5a32a3 !important; }
105
+ html:not(.dark) .shiki span[style*="color:#22863A"] { color: #1a6e2e !important; }
106
+ html:not(.dark) .shiki span[style*="color:#D73A49"] { color: #b62324 !important; }
107
+ html:not(.dark) .shiki span[style*="color:#005CC5"] { color: #0349b4 !important; }
100
108
  `;
101
109
 
102
110
  // ── PAGE TYPES ────────────────────────────────────────────