Skip to content

Commit

Permalink
Use system-ui as default font
Browse files Browse the repository at this point in the history
I'm on Ubuntu, and the font that's currently shown for me on matrix.org is Nimbus Sans. The font in the existing font list that is causing this is the font "Helvetica", which I do not have installed.

From my cursory understanding of font matching, when running `fc-match helvetica` in the terminal, I get `NimbusSans-Regular.otf: "Nimbus Sans" "Regular"`, which explains why I'm being shown Nimbus Sans.

As it appears from the existing font list, the desired result was to use the font of the system the user is on. By using `system-ui`, we can achieve this. In my case, I would be shown the Ubuntu Font, as that's my default on my system.
  • Loading branch information
veyndan committed Jun 18, 2024
1 parent 5382d57 commit 07bc9ff
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,7 @@ body {
background-color: #fff;
color: var(--color-text);

font-family: "Helvetica Neue",
"Helvetica",
Arial,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
font-family: system-ui,
sans-serif,
"Apple Color Emoji",
/* Emojis*/
Expand Down

0 comments on commit 07bc9ff

Please sign in to comment.