Skip to content

Commit 8740eea

Browse files
lunacookiesTurbo87
authored andcommitted
Match monospace font with main font
Since Fira Sans is used across crates.io, it makes sense to use Fira Mono for monospaced text to increase consistency. After Fira Mono there is now `ui-monospace` in the font stack, which renders as SF Mono on macOS Safari without having to manually install SF Mono. `ui-monospace` is part of the CSS Fonts Module Level 4 draft: https://www.w3.org/TR/css-fonts-4/#ui-monospace-def.
1 parent cced6f4 commit 8740eea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/styles/application.module.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
--footer-bg-color: var(--green800);
1212

1313
--font-sans: "Fira Sans", sans-serif;
14-
--font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
14+
--font-monospace: "Fira Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
15+
"Courier New", monospace;
1516

1617
--main-color: #383838;
1718
--main-color-light: #858585;

0 commit comments

Comments
 (0)