Skip to content

Commit 58ce813

Browse files
guguclaude
andcommitted
fix: add proper font fallback stack to theme typography config
Prevents UI from jumping to the browser default font when Noto Sans fails to load. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 461f78d commit 58ce813

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/src/custom-theme.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,32 +105,34 @@ html {
105105
margin-left: -3px;
106106
}
107107

108+
$app-font-family: 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
109+
108110
$button-custom-level: mat.m2-define-typography-level(
109-
$font-family: 'Noto Sans',
111+
$font-family: $app-font-family,
110112
$font-weight: 500,
111113
$font-size: 14px,
112114
$line-height: 34px,
113115
$letter-spacing: normal,
114116
);
115117

116118
$body-1-custom-level: mat.m2-define-typography-level(
117-
$font-family: 'Noto Sans',
119+
$font-family: $app-font-family,
118120
$font-weight: 400,
119121
$font-size: 14px,
120122
$line-height: 20px,
121123
$letter-spacing: normal,
122124
);
123125

124126
$caption-custom-level: mat.m2-define-typography-level(
125-
$font-family: 'Noto Sans',
127+
$font-family: $app-font-family,
126128
$font-weight: 400,
127129
$font-size: 12px,
128130
$line-height: 16px,
129131
$letter-spacing: normal
130132
);
131133

132134
$custom-typography-config: mat.m2-define-typography-config(
133-
$font-family: 'Noto Sans',
135+
$font-family: $app-font-family,
134136
$button: $button-custom-level,
135137
$body-1: $body-1-custom-level,
136138
$caption: $caption-custom-level,

0 commit comments

Comments
 (0)