diff --git a/services/web/frontend/js/features/history/extensions/theme.ts b/services/web/frontend/js/features/history/extensions/theme.ts index 3c51968e74..8ddf312748 100644 --- a/services/web/frontend/js/features/history/extensions/theme.ts +++ b/services/web/frontend/js/features/history/extensions/theme.ts @@ -45,13 +45,7 @@ const createThemeFromOptions = ({ ] } -const baseTheme = EditorView.baseTheme({ - '&light.cm-editor': { - colorScheme: 'light', - }, - '&dark.cm-editor': { - colorScheme: 'dark', - }, +const baseTheme = EditorView.theme({ '.cm-content': { fontSize: 'var(--font-size)', fontFamily: 'var(--source-font-family)', diff --git a/services/web/frontend/js/features/source-editor/extensions/theme.ts b/services/web/frontend/js/features/source-editor/extensions/theme.ts index fb82a45644..7b0d78f73c 100644 --- a/services/web/frontend/js/features/source-editor/extensions/theme.ts +++ b/services/web/frontend/js/features/source-editor/extensions/theme.ts @@ -92,12 +92,6 @@ const createThemeFromOptions = ({ * Base styles that can have &dark and &light variants */ const baseTheme = EditorView.baseTheme({ - '&light.cm-editor': { - colorScheme: 'light', - }, - '&dark.cm-editor': { - colorScheme: 'dark', - }, '.cm-content': { fontSize: 'var(--font-size)', fontFamily: 'var(--source-font-family)',