customizable font family

This commit is contained in:
Felix Roos 2023-02-22 20:28:22 +01:00
parent 8f6c1531fa
commit ff99dbcd22
11 changed files with 25 additions and 15 deletions

View file

@ -101,6 +101,7 @@ export default function CodeMirror({
theme,
keybindings,
fontSize = 18,
fontFamily = 'monospace',
options,
editorDidMount,
}) {
@ -135,7 +136,7 @@ export default function CodeMirror({
return staticExtensions;
}, [keybindings]);
return (
<div style={{ fontSize }} className="w-full">
<div style={{ fontSize, fontFamily }} className="w-full">
<_CodeMirror
value={value}
theme={theme || strudelTheme}

View file

@ -12,7 +12,6 @@ export const settings = {
gutterBackground: 'transparent',
gutterForeground: '#0f380f',
light: true,
fontFamily: 'PressStart, monospace',
};
export default createTheme({
theme: 'light',

View file

@ -7,10 +7,9 @@ export const settings = {
selection: '#ffffff20',
selectionMatch: '#036dd626',
lineHighlight: '#ffffff10',
lineBackground: '#00000050',
gutterBackground: 'transparent',
gutterForeground: '#8a919966',
fontFamily: 'BigBlueTerminal, monospace',
//fontFamily: 'x3270, monospace',
};
export default createTheme({
theme: 'dark',

View file

@ -12,7 +12,6 @@ export const settings = {
gutterBackground: 'transparent',
// gutterForeground: '#8a919966',
gutterForeground: '#8a919966',
fontFamily: 'BigBlueTerminal, monospace',
};
export default createTheme({

View file

@ -9,8 +9,6 @@ export const settings = {
lineHighlight: '#ffffff10',
gutterBackground: 'transparent',
gutterForeground: '#8a919966',
//fontFamily: 'BigBlueTerminal, monospace',
fontFamily: 'x3270, monospace',
};
export default createTheme({
theme: 'dark',

View file

@ -11,7 +11,6 @@ export const settings = {
gutterBackground: 'transparent',
gutterForeground: 'black',
light: true,
fontFamily: 'BigBlueTerminal, monospace',
};
export default createTheme({
theme: 'light',