Skip to content

How do I enable a custom font? #5140

Discussion options

You must be logged in to vote

Hey

Right now we do not have this feature, you can only add custom fonts to the sandbox itself, not to codesandbox.

You can do this with extensions if you are using chrome I was able to do it by downloading stylebot and add the following css:

@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');

.view-lines {
  font-family: 'Fira Code';
}

And here is the extension: https://stylebot.dev/

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Explosion-Scratch
Comment options

You must be logged in to vote
1 reply
@SaraVieira
Comment options

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