Git Product home page Git Product logo

operator-mono-atom's Introduction

operator-mono-atom

Free Operator Mono clone for Atom

A stylish way to code!

Check out the screenshots.

Installation

  1. Install fonts
  2. Configure Atom
  3. Troubleshooting
  4. Screenshots
  5. JSX
  6. Ruby
  7. Ember
  8. Handlebars
  9. Elixir
  10. Python

Install fonts

Download and install Fira Code font into your system. Installation instructions

Download and install flottflott font into your system in the same manner.

The current version (June 2017) of the fonts can also be found in this repository.

Configure Atom

Ligatures

To use Fira Code properly you need to enable ligatures. There are two ways to do this, see below:

Quick install

Bring up Atom and go to Settings > Themes. Search for Operator Mono and install.

This syntax theme has been built to support this Fira Code, it is built from scratch using the Oceanic Next Italic palette and it will enable ligatures, and make certain attributes italic.

Manual install

If you prefer to use your own syntax theme, you have to edit your styles.less and insert these lines:

atom-text-editor {
  text-rendering: optimizeLegibility;

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

Enable flottflott font

In order to enable the flottflott font, you have to manually edit your styles.less file and insert these lines:

atom-text-editor.editor {
  /*
    Transform certain attributes into flottflott:
    - this
    - html attributes
  */
  .syntax--variable.syntax--language.syntax--this,
  .syntax--html > .syntax--attribute-name,
  .syntax--JSXAttrs > .syntax--attribute-name {
    // flottflott is italic in itself, don't let atom make it italic
    font-style: normal !important;
    vertical-align: baseline;
    font-family: 'flottflott';
    height: inherit;
    font-size: 145%;
    line-height: 100%;
  }
}

Troubleshooting

Atom version

The instructions / code works for current version of Atom (1.17.x) but should work for Atom v1.13 and higher if you are locked to a specific version of Atom for some obscure reason. If not, check out the appropriate tag and use that.

Are your ligatures not being applied correctly?

  1. In Editor Settings, you might need to enter "Fira Code" in "Font Family"
  2. Disable interfering packages that modifies fonts, such as "fonts"

Screenshot of JSX

Screenshots

The screenshots below are taken with theme Oceanic Next Italic.

JSX

Screenshot of JSX

Ruby

Screenshot of Ruby

Ember

Screenshot of Ember

Handlebars

Screenshot of Handlebars

Elixir

Screenshot of Elixir

Python

Screenshot of Python

operator-mono-atom's People

Contributors

klippx avatar

Watchers

James Cloos avatar Anton Kuznetsov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.