Skip to content

Custom font with remote theme #5002

Closed Answered by shiami
shiami asked this question in Q&A
Discussion options

You must be logged in to vote

I finally got it working. But doesn't know if it is the correct way or easier way to do.

  1. Put your font file here: /assets/fonts/MyCustomFont.woff2.
    (Anywhere under /assets is fine.)

  2. Copy these 2 files from the original repo.

_sass/minimal-mistakes/_variables.scss
_sass/minimal-mistakes.scss
  1. Edit _variables.scss:
$serif: "MyCustomFont", Georgia, Times, serif !default;
$sans-serif: "MyCustomFont", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI",
   "Helvetica Neue", "Lucida Grande", Arial, sans-serif !default;
$monospace: "MyCustomFont", Monaco, Consolas, "Lucida Console", monospace !default;

Done.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shiami
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant