@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/chunk-O4GH3KYX.js +1712 -0
- package/dist/entry.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/entry.tsx +11 -2
package/dist/entry.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomehq/theme",
|
|
3
|
-
"version": "0.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.
|
|
13
|
-
"@tomehq/core": "0.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
|
-
|
|
81
|
-
|
|
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 ────────────────────────────────────────────
|