switchable css variables for theming

This commit is contained in:
Felix Roos 2023-02-10 11:32:36 +01:00
parent 0326244956
commit 0b994a1b0f
10 changed files with 75 additions and 14 deletions

View file

@ -22,6 +22,16 @@ module.exports = {
header: '#00000050',
// header: 'transparent',
footer: '#00000050',
// codemirror-theme settings
background: 'var(--background)',
foreground: 'var(--foreground)',
caret: 'var(--caret)',
selection: 'var(--selection)',
selectionMatch: 'var(--selectionMatch)',
gutterBackground: 'var(--gutterBackground)',
gutterForeground: 'var(--gutterForeground)',
gutterBorder: 'var(--gutterBorder)',
lineHighlight: 'var(--lineHighlight)',
},
typography(theme) {
return {