Skip to content

Commit b58437b

Browse files
committed
style(web): prefer JetBrains Mono for streamdown code typography
1 parent 7a75f0e commit b58437b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

web/src/index.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
/* Typography */
5757
--font-ui: system-ui, -apple-system, 'SF Pro Text', 'SF Pro Display', sans-serif;
5858
--font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
59+
--font-code: 'JetBrains Mono', 'Cascadia Mono', 'SF Mono', 'Fira Code', Consolas, 'Courier New', monospace;
5960

6061
/* Spacing scale (4px base) */
6162
--space-1: 4px;
@@ -717,7 +718,7 @@ html, body, #root {
717718
color: var(--text-primary);
718719
}
719720
.markdown-streamdown [data-streamdown="inline-code"] {
720-
font-family: var(--font-mono);
721+
font-family: var(--font-code);
721722
font-size: 0.88em;
722723
padding: 1px 6px;
723724
border-radius: var(--radius-sm);
@@ -772,7 +773,7 @@ html, body, #root {
772773
background: var(--code-header);
773774
}
774775
.markdown-streamdown [data-streamdown="code-block-header"] span {
775-
font-family: var(--font-mono);
776+
font-family: var(--font-code);
776777
font-size: 11px;
777778
color: var(--text-secondary);
778779
font-weight: 600;
@@ -782,7 +783,7 @@ html, body, #root {
782783
margin: 0;
783784
padding: 10px 12px;
784785
overflow: auto;
785-
font-family: var(--font-mono);
786+
font-family: var(--font-code);
786787
font-size: 12.5px;
787788
line-height: 1.7;
788789
}

0 commit comments

Comments
 (0)