DEV Community

loading...

Discussion on: My list of 3 best fonts to use while programming

Collapse
jinksi profile image
Eric Jinks • Edited

FiraCode 🔥 💯

I recommend also using it as a webfont for <code /> blocks.
Really easy to implement with github.com/fontsource/fontsource if you're using a bundler like Webpack (or Next, CRA, Gatsby etc)

Collapse
jinksi profile image
Eric Jinks

npm install @fontsource/fira-code

// index.js
import '@fontsource/fira-code/400.css'
Enter fullscreen mode Exit fullscreen mode
/* style.css */
code {
    font-family: 'Fira Code', monospace;
}
Enter fullscreen mode Exit fullscreen mode