We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9215aef commit 66cfd5dCopy full SHA for 66cfd5d
components/editor/theme.ts
@@ -1,19 +1,19 @@
1
import { useTheme } from 'next-themes'
2
import { theme } from 'rich-markdown-editor'
3
+import { light, dark } from 'rich-markdown-editor/dist/theme'
4
-export const editorTheme: typeof theme = {
5
- ...theme,
+export const darkTheme: typeof theme = {
6
+ ...dark,
7
background: 'inherit',
8
text: 'inherit',
9
fontFamily: 'inherit',
10
}
11
-export const darkTheme: typeof theme = {
12
- ...editorTheme,
13
-}
14
-
15
export const lightTheme: typeof theme = {
16
+ ...light,
+ background: 'inherit',
+ text: 'inherit',
+ fontFamily: 'inherit',
17
18
19
export const useEditorTheme = () => {
0 commit comments