Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update font stack #1798

Merged
merged 1 commit into from
Sep 12, 2024
Merged

chore: Update font stack #1798

merged 1 commit into from
Sep 12, 2024

Conversation

zusorio
Copy link
Member

@zusorio zusorio commented Sep 12, 2024

Get fonts from fontsource: Removes requirements to check in fonts while still self-hosting them. Fonts can also receive updates through npm.

Use Roboto in addition to the standard tailwind font stack: Instead of falling back to only Helvetica Neue and sans-serif, use the tailwind defaults if other fonts could not be loaded.

Add the bold (700) variation of Roboto: Previously, browsers were approximating the bold version. This caused some weird font rendering issues on bold text.

Move to Material Symbols: Google's old icon font (Material Icons) is deprecated. Theoretically, Material Symbols also supports a variable version with customizable fill, weight, etc but as this version is 3MB, I've decided to go with a static version of it.

Closes #1744

Copy link

github-actions bot commented Sep 12, 2024

A Storybook preview is available for commit 1897237.
➡️ View Storybook
➡️ View Chromatic build
✅ Captured 37 snapshots. No changes detected.

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.06%. Comparing base (f43efb9) to head (dd4a633).
Report is 361 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1798   +/-   ##
=======================================
  Coverage   84.06%   84.06%           
=======================================
  Files         186      186           
  Lines        6144     6144           
  Branches      676      676           
=======================================
  Hits         5165     5165           
  Misses        831      831           
  Partials      148      148           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zusorio zusorio force-pushed the update-font-stack branch 2 times, most recently from 2461272 to 9697056 Compare September 12, 2024 13:55
Get fonts from fontsource: Removes requirements to check in fonts while still self-hosting them.
Fonts can also receive updates through npm.
Use Roboto in addition to the standard tailwind font stack: Instead of falling back to only
Helvetica Neue and sans-serif, use the tailwind defaults if other fonts could not be loaded.
Add the bold (700) variation of Roboto: Previously, browsers were approximating the bold version.
This caused some weird font rendering issues on bold text.
Move to Material Symbols: Google's old icon font (Material Icons) is deprecated. Theoretically,
Material Symbols also supports a variable version with customizable fill, weight, etc but as this
version is 3MB, I've decided to go with a static version of it.

Closes #1744
Copy link

Copy link
Member

@MoritzWeber0 MoritzWeber0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and is a easier to maintain than before 👍

@MoritzWeber0 MoritzWeber0 merged commit a54fe32 into main Sep 12, 2024
30 checks passed
@MoritzWeber0 MoritzWeber0 deleted the update-font-stack branch September 12, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move from material icons to material symbols
2 participants