Skip to content

Commit c5bbff4

Browse files
colepetersnkzawa
authored andcommitted
Update system font stacks on error pages (vercel#157)
* Enhance system font stack on _error.js `-apple-system` = SF on Safari (macOS/iOS) `BlinkMacSystemFont` = SF on Chrome (macOS) `Roboto` for Android `Segoe UI` for Windows `Fira Sans` for Firefox OS `Avenir` for pre-SF macOS `Helvetica Neue, Lucida Grande` for older macOS * Enhance system font stacks on _error-debug.js Updates fonts to use better quality system fonts where commonly available
1 parent 5595232 commit c5bbff4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pages/_error-debug.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ const styles = {
4040
}),
4141

4242
message: style({
43-
fontFamily: 'menlo-regular',
43+
fontFamily: '"SF Mono", "Roboto Mono", "Fira Mono", menlo-regular, monospace',
4444
fontSize: '10px',
4545
color: '#fff',
4646
margin: 0
4747
}),
4848

4949
heading: style({
50-
fontFamily: 'sans-serif',
50+
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
5151
fontSize: '13px',
5252
fontWeight: 'bold',
5353
color: '#ff90c6',

pages/_error.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const styles = {
3131
left: 0,
3232
right: 0,
3333
position: 'absolute',
34-
fontFamily: '-apple-system, "SF UI Text", "Helvetica Neue", "Lucida Grande", sans-serif',
34+
fontFamily: '-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif',
3535
textAlign: 'center',
3636
paddingTop: '20%'
3737
}),

0 commit comments

Comments
 (0)