Skip to content

Commit 3ec6823

Browse files
committed
fix: update font size defaults inside theme
1 parent f8d8de5 commit 3ec6823

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

site/src/theme/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const borderRadius = 8;
22
export const MONOSPACE_FONT_FAMILY =
33
"'IBM Plex Mono', 'Lucida Console', 'Lucida Sans Typewriter', 'Liberation Mono', 'Monaco', 'Courier New', Courier, monospace";
4-
export const BODY_FONT_FAMILY = `"Inter", sans-serif`;
4+
export const BODY_FONT_FAMILY = `"Inter", system-ui, sans-serif`;
55
export const navHeight = 62;
66
export const containerWidth = 1380;
77
export const containerWidthMedium = 1080;

site/src/theme/theme.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ export let dark = createTheme({
7474
},
7575
typography: {
7676
fontFamily: BODY_FONT_FAMILY,
77+
7778
body1: {
78-
fontSize: 16,
79-
lineHeight: "24px",
79+
fontSize: "1rem" /* 16px at default scaling */,
80+
lineHeight: "1.5rem" /* 24px at default scaling */,
8081
},
82+
8183
body2: {
82-
fontSize: 14,
83-
lineHeight: "20px",
84+
fontSize: "0.875rem" /* 14px at default scaling */,
85+
lineHeight: "1.25rem" /* 20px at default scaling */,
8486
},
8587
},
8688
shape: {

0 commit comments

Comments
 (0)