Skip to content
Discussion options

You must be logged in to vote

Hi @Aazih,
this is incorrect:

src: url("https://fonts.googleapis.com/css2?family=Lancelot&display=swap");

as the URL leads to a text file with CSS font rules, not to a font, so download the text file and include it in your CSS.
You could also use @import, but this increases the amount of requests, so I would keep it local in your extra.css

Also another possible nitpick I would have is you should not use font-family unless you're 100% sure that's what you want.
Instead, redefine the font variable as described in the docs, you can scope it to the .md-header etc. selectors, doesn't have to be :root:
Read the comment below for a fixed statement

--md-text-font: "<font>"; 

Ref:

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@kamilkrzyskow
Comment options

@Aazih
Comment options

@kamilkrzyskow
Comment options

@Aazih
Comment options

@kamilkrzyskow
Comment options

Answer selected by Aazih
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants