Skip to content

Commit 5892383

Browse files
committed
Fix mardown viewer text color
1 parent 8cd6158 commit 5892383

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openreader-webui",
3-
"version": "0.3.0",
3+
"version": "0.3.0-patch.1",
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbopack -p 3003",

src/components/HTMLViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function HTMLViewer({ className = '' }: HTMLViewerProps) {
2828
<TTSPlayer />
2929
</div>
3030
<div className="flex-1 overflow-auto">
31-
<div className={`px-4 ${isTxtFile ? 'whitespace-pre-wrap font-mono text-sm' : 'prose dark:prose-invert'}`}>
31+
<div className={`px-4 ${isTxtFile ? 'whitespace-pre-wrap font-mono text-sm' : 'prose prose-base'}`}>
3232
{isTxtFile ? (
3333
currDocData
3434
) : (

tailwind.config.ts

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { Config } from "tailwindcss";
2-
//@plugin "@tailwindcss/typography";
32
import typography from "@tailwindcss/typography";
43

54
export default {
@@ -44,6 +43,28 @@ export default {
4443
'100%': { transform: 'scale(0.95)', opacity: '0' },
4544
},
4645
},
46+
typography: {
47+
DEFAULT: {
48+
css: {
49+
'--tw-prose-body': 'var(--foreground)',
50+
'--tw-prose-headings': 'var(--foreground)',
51+
'--tw-prose-lead': 'var(--muted)',
52+
'--tw-prose-links': 'var(--accent)',
53+
'--tw-prose-bold': 'var(--foreground)',
54+
'--tw-prose-counters': 'var(--muted)',
55+
'--tw-prose-bullets': 'var(--muted)',
56+
'--tw-prose-hr': 'var(--offbase)',
57+
'--tw-prose-quotes': 'var(--foreground)',
58+
'--tw-prose-quote-borders': 'var(--offbase)',
59+
'--tw-prose-captions': 'var(--muted)',
60+
'--tw-prose-code': 'var(--foreground)',
61+
'--tw-prose-pre-code': 'var(--foreground)',
62+
'--tw-prose-pre-bg': 'var(--base)',
63+
'--tw-prose-th-borders': 'var(--offbase)',
64+
'--tw-prose-td-borders': 'var(--offbase)',
65+
},
66+
},
67+
},
4768
},
4869
},
4970
plugins: [typography],

0 commit comments

Comments
 (0)