Skip to content

Commit 41dafc3

Browse files
committed
feat: Non-monospace font
1 parent 3b29721 commit 41dafc3

11 files changed

+18
-16
lines changed

packages/app/.storybook/preview-head.html

-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,3 @@
77
href="https://fonts.gstatic.com"
88
crossorigin="anonymous"
99
/>
10-
<link
11-
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap"
12-
rel="stylesheet"
13-
/>

packages/app/src/AppNav.components.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const AppNavUserMenu = ({
6464
m="sm"
6565
mt={8}
6666
px={8}
67-
py={4}
67+
py={6}
6868
radius="md"
6969
{...(isCollapsed && {
7070
p: 2,
@@ -85,6 +85,7 @@ export const AppNavUserMenu = ({
8585
<Text
8686
size="xs"
8787
c="dimmed"
88+
lh={1.1}
8889
style={{
8990
fontSize: 11,
9091
maxWidth: '100%',

packages/app/src/AutocompleteInput.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default function AutocompleteInput({
162162
ref={inputRef}
163163
type="text"
164164
placeholder={placeholder}
165-
className="border-0 fs-7"
165+
className="border-0 fs-7 mono"
166166
value={value}
167167
size={size}
168168
onChange={e => onChange(e.target.value)}

packages/app/src/LogSidePanel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ function SidePanelHeader({
21242124
<div>
21252125
<div
21262126
className="bg-hdx-dark p-3 overflow-auto"
2127-
style={{ maxHeight: 300 }}
2127+
style={{ maxHeight: 300, fontFamily: 'var(--font-family-mono)' }}
21282128
>
21292129
{stripAnsi(logData.body)}
21302130
</div>

packages/app/src/LogTable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export const RawLogTable = memo(
587587

588588
return (
589589
<div
590-
className="overflow-auto h-100 fs-8 bg-inherit"
590+
className="overflow-auto h-100 fs-8 bg-inherit mono"
591591
onScroll={e => {
592592
fetchMoreOnBottomReached(e.target as HTMLDivElement);
593593

packages/app/src/PatternTable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const MemoPatternTable = memo(
294294

295295
return (
296296
<div
297-
className="overflow-auto h-100 fs-8 bg-inherit"
297+
className="overflow-auto h-100 fs-8 bg-inherit mono"
298298
ref={tableContainerRef}
299299
// Fixes flickering scroll bar: https://github.com/TanStack/virtual/issues/426#issuecomment-1403438040
300300
// style={{ overflowAnchor: 'none' }}

packages/app/src/TeamPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const APIKeyCopyButton = ({
7171
</div>
7272
}
7373
>
74-
<div data-test-id={dataTestId} className="text-wrap text-break">
74+
<div data-test-id={dataTestId} className="text-wrap text-break mono">
7575
{value}
7676
</div>
7777
</MButton>

packages/app/src/UserPreferencesModal.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
import { UserPreferences, useUserPreferences } from './useUserPreferences';
1818

1919
const OPTIONS_FONTS = [
20+
'IBM Plex Sans',
2021
'IBM Plex Mono',
2122
'Roboto Mono',
2223
'Inter',

packages/app/src/components/HyperJson.module.scss

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
flex-direction: column;
66
padding: 0px 4px;
77
font-size: 12px;
8+
font-family: var(--font-family-mono);
89
}
910

1011
.withTabulate {

packages/app/src/useUserPreferences.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type UserPreferences = {
77
isUTC: boolean;
88
timeFormat: '12h' | '24h';
99
theme: 'light' | 'dark';
10-
font: 'IBM Plex Mono' | 'Inter';
10+
font: 'IBM Plex Mono' | 'IBM Plex Sans' | 'Roboto Mono' | 'Inter' | string;
1111
backgroundEnabled?: boolean;
1212
backgroundUrl?: string;
1313
backgroundBlur?: number;
@@ -21,7 +21,7 @@ export const userPreferencesAtom = atomWithStorage<UserPreferences>(
2121
isUTC: false,
2222
timeFormat: '12h',
2323
theme: 'dark',
24-
font: 'IBM Plex Mono',
24+
font: 'IBM Plex Sans',
2525
},
2626
);
2727

packages/app/styles/app.scss

+7-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
@import '~bootstrap/scss/bootstrap';
33
@import url('https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css');
44
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500;600;700&display=swap');
5-
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');
6-
@import url('https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap');
75
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:[email protected]&display=swap');
6+
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');
87

98
.inter {
109
font-family: Inter, Roboto, 'Helvetica Neue', sans-serif;
@@ -16,6 +15,10 @@
1615
font-family: 'IBM Plex Mono', monospace;
1716
}
1817

18+
:root {
19+
--font-family-mono: 'IBM Plex Mono', monospace;
20+
}
21+
1922
html,
2023
body,
2124
html[class~='dark'] body {
@@ -158,7 +161,7 @@ html[class~='dark'] body {
158161
}
159162

160163
body {
161-
font-family: 'IBM Plex Mono', monospace;
164+
font-family: 'IBM Plex Sans', sans-serif;
162165
font-size: $font-size-base * 0.875;
163166
}
164167

@@ -522,7 +525,7 @@ div.react-datepicker {
522525
// background-color: $bg-dark;
523526
background-color: $body-bg;
524527

525-
font-family: 'IBM Plex Mono', monospace;
528+
font-family: 'IBM Plex Sans', monospace;
526529
font-size: 14px;
527530

528531
// Calendar Month Header

0 commit comments

Comments
 (0)