Merge pull request #28016 from overleaf/revert-27953-mj-editor-color-scheme

Revert "[web] Specify CSS color-scheme based on editor theme"

GitOrigin-RevId: b83fee057d40cb6c58c4e96f5ffdab2019965146
This commit is contained in:
Mathias Jakobsen
2025-08-19 15:42:49 +01:00
committed by Copybot
parent 2a040a889c
commit 8c77cb9efd
2 changed files with 1 additions and 13 deletions
@@ -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)',
@@ -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)',