How do I enable a custom font? #5140
-
I really like the font Fira Code and I want to enable it in CSB, but it's not installed on the virtual codesandbox machine, is there any way to upload either a .woff or .ttf file or import it from google fonts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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 @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/ |
Beta Was this translation helpful? Give feedback.
-
Thanks! Do ligatures work? |
Beta Was this translation helpful? Give feedback.
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:And here is the extension: https://stylebot.dev/