Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Using Operator Mono with Fira Code ligatures in Atom.

Using Operator Mono with Fira Code ligatures in Atom.

  1. Open your Atom's Stylesheet

  2. Put this css

atom-text-editor {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-family: "Operator Mono";
  font-weight: 500;
  line-height: 1.7;

For Atom version < 1.13.x

atom-text-editor::shadow {
  .punctuation.definition.entity.css {
    font-family: 'Fira Code';

  .string.regexp {
    -webkit-font-feature-settings: "liga" off, "calt" off;

For Atom version >= 1.13.x

atom-text-editor.editor {
  .syntax--punctuation.syntax--definition {
    font-family: "Fira Code";

  .syntax--string.syntax--regexp {
    -webkit-font-feature-settings: "liga" off, "calt" off;

Save file and it's done.

Works fine with Javascript:


Copy link

You are my hero. I hadn't even thought to do this. I use Operator Mono, and sorely miss my ligatures from Fira Code. Thank you so much! I already have a lot of tweaks in my CSS to user OM's script italics for more than just comments. Perfect addition.

screen shot 2017-01-11 at 11 07 59 pm

What syntax theme and TextMate rules are you using? It's look nice. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment