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
@@ -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}