Skip to content

Commit 66cfd5d

Browse files
committed
fix: editor dark theme
1 parent 9215aef commit 66cfd5d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

components/editor/theme.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { useTheme } from 'next-themes'
22
import { theme } from 'rich-markdown-editor'
3+
import { light, dark } from 'rich-markdown-editor/dist/theme'
34

4-
export const editorTheme: typeof theme = {
5-
...theme,
5+
export const darkTheme: typeof theme = {
6+
...dark,
67
background: 'inherit',
78
text: 'inherit',
89
fontFamily: 'inherit',
910
}
1011

11-
export const darkTheme: typeof theme = {
12-
...editorTheme,
13-
}
14-
1512
export const lightTheme: typeof theme = {
16-
...editorTheme,
13+
...light,
14+
background: 'inherit',
15+
text: 'inherit',
16+
fontFamily: 'inherit',
1717
}
1818

1919
export const useEditorTheme = () => {

0 commit comments

Comments
 (0)