Skip to content

Commit 02f2283

Browse files
committed
fix: have json tree use the same font as editor
1 parent 73f043f commit 02f2283

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ const Debugger: FC<DebuggerProps> = ({ output }) => {
388388
className="h-full w-full bg-surface-primary"
389389
>
390390
<ResizablePanel className="flex">
391-
<div className="h-full w-full overflow-scroll break-all p-4">
391+
<div className="h-full w-full overflow-scroll break-all p-4 text-sm font-mono">
392392
<ReactJsonView
393393
src={output ?? {}}
394394
collapsed={1}

src/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@
133133
/* Styles for the JSON viewer */
134134

135135
.react-json-view {
136+
font-family: "DM Mono", monospace !important;
136137
background: hsl(var(--surface-primary)) !important;
137138
}
138139

tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module.exports = {
1010
extend: {
1111
fontFamily: {
1212
sans: `"Inter Variable", system-ui, sans-serif`,
13-
mono: `"DM Mono", system-mono, monospace`,
13+
mono: `"DM Mono", monospace`,
1414
},
1515
size: {
1616
"icon-lg": "1.5rem",

0 commit comments

Comments
 (0)