DEV Community

Cover image for ✨Awesome fonts to code 💻
Sendil Kumar
Sendil Kumar

Posted on • Updated on • Originally published at sendilkumarn.com

✨Awesome fonts to code 💻

Alt Text

We spend a lot of time interacting with type. They influence our thinking, alter trust, determine context, and play with our productivity.

In these weird times where our screen times skyrocket. We should do something to ease our contextual burden and increase our productivity.

This is a list of awesome fonts that will make your code look even more elegant and concise (and makes your more productive 🤞).

Note: This is a personal favourite list (and almost all of them are mono). Please feel free to comment your favourite.

Fira Code Mono

Any font list is incomplete, without this classic font.

Type: Mono | GitHub

Fira Code

Hasklig

This is forked from Source Code Pro and added some nice ligatures in it.

Type: Mono | GitHub

Hasklig

Source Code Pro

This one from Adobe is awesome. It is clean and crisp.

Type: Mono | GitHub

Source Code Pro

Anonymous Pro

It is fixed width font designed for coding.

Type: Mono | GitHub

Anonymous

Fantasque

A cool and refreshing font. This font has some handwriting like ligatures.

Type: Mono | GitHub

Fantasque Sans Mono

Jetbrains Mono

This one is from the Jetbrains. They already have cool abstract images in their IDE startups. The font is bit oversized but once again it is awesome.

Type: Mono | GitHub

JetBrains Mono

Monoid

It is sharp, bit taller. But the font looks great even in low resolution displays.

Type: Mono | GitHub

Monoid

Cascadia Code

Windows was the first machine that I ever had. And I used it for a long time at my work (now don't judge me). So this one was my long time favourite. Recently I saw they have open sourced it and it brings back a lot of memories.

Type: Mono | GitHub

Cascadia Code Mono

Dank (Paid)

This one is pretty cool. But it is paid. I haven't used it personally, but used this in some of my slides (via carbon.now.sh)

Type: Mono | Buy it here

Dank Mono

Special Mentions


Voila, meanwhile you have also learnt quickSort using Haskell 😜

Did you know? >> You can customise your dev.to font here

What is your favourite font?


What is in the font? Check out this book -> Why Fonts Matter - Sarah Hyndman


🐦 Twitter | 💻 GitHub | ✍️ Blog


Top comments (21)

Collapse
 
nicolus profile image
Nicolas Bailly • Edited

I really want to like those fonts like Cascadia code, Fira or Jetbrains Mono... But everytime I switch to anything other than Consolas it just feels wrong and I can't concentrate... So I've made my peace with it, I'm a Consolas person and that will probably never change (I patch it with powerline characters though).

Collapse
 
val_baca profile image
Valentin Baca

My favorite font for code is Menlo since I've basically always worked with Macs and even after trying dozens and dozens of other fonts, Menlo just "looks right"

  1. Are the following absolutely distinguishable: oO0 1l| ({[]}) :;
  2. Do these make good arrows: <- -> <= =>
  3. Are these characters large enough to be seen (some fonts make them teeny tiny): `^*
  4. I'm not a fan of ligatures. They assign meaning to groups of characters that don't always mean that. I may want a<-b to mean "b into a" or "is a less than negative b" but the font shouldn't be deciding that. I find that ligatures cause me to parse the line twice rather than saving me time. But to each their own! I wish I liked them.

Thankfully, there's also a free alternative to Menlo called Meslo: github.com/andreberg/Meslo-Font

Collapse
 
itsjzt profile image
Saurabh Sharma

Im currently using using cascadia code, but i still like

github.com/be5invis/iosevka

Collapse
 
jwwwwwww profile image
jwwwwwww

I love OpenDyslexic

Collapse
 
waylonwalker profile image
Waylon Walker

I think Cascadia is my favorite.

Collapse
 
sendilkumarn profile image
Sendil Kumar

🎉🦄 They are the best

Collapse
 
jacoby profile image
Dave Jacoby

I'll throw in that Cascadia Code comes with Cascadia Mono, if you don't like the ligatures.

Collapse
 
sendilkumarn profile image
Sendil Kumar

Yup! :)

Collapse
 
igneel64 profile image
Peter Perlepes

Going all in on Cascadia :D

Collapse
 
awesomeironman profile image
Cyrus Gracias • Edited

Jetbrains Mono looks good, it's text as well

Collapse
 
sendilkumarn profile image
Sendil Kumar

Agree completely.

Collapse
 
mhomol profile image
Mike Homol

thanks for this! I went with Fantasque Sans Mono. :)

Collapse
 
licht1stein profile image
Mikhail Beliansky

You missed a really good one: Hack Font

sourcefoundry.org/hack/

Collapse
 
sendilkumarn profile image
Sendil Kumar

It looks nice :)

Collapse
 
muhimen123 profile image
Muhimen

Is there something wrong with my eyes or all the fonts look kinda similar?

Collapse
 
sendilkumarn profile image
Sendil Kumar

You are correct, something went wrong with the upload :). Updated now Thanks :)

Collapse
 
vtrpldn profile image
Vitor Paladini

I'm a big fan of Envy Code R, it's not very fancy but I like shorter fonts.

damieng.com/blog/2008/05/26/envy-c...

Collapse
 
sendilkumarn profile image
Sendil Kumar

looks interesting, I will take a look :)

Collapse
 
jabo profile image
Jabo

I'm using Jetbrains Mono and I recommended it!

Collapse
 
rafifos profile image
Rafael Julio

Iosevka is a great font for those who like to save up some horizontal space ;)

github.com/be5invis/Iosevka

Collapse
 
sendilkumarn profile image
Sendil Kumar

Yeah they look nice too.