Skip to content

Instantly share code, notes, and snippets.

@mrstebo
Last active August 23, 2017 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrstebo/7987c98d76417cd1f44274b5ac9446cf to your computer and use it in GitHub Desktop.
Save mrstebo/7987c98d76417cd1f44274b5ac9446cf to your computer and use it in GitHub Desktop.
Atom stylesheet with ligatures - JS/JSX
// Requirements:
// language-babel: https://atom.io/packages/language-babel
// Fira Code: https://github.com/tonsky/FiraCode
// FlottFlott: http://www.dafont.com/flottflott.font
atom-text-editor {
font-family: 'Fira Code';
font-style: normal;
text-rendering: optimizeLegibility;
}
atom-text-editor::shadow {
.string.quoted,
.string.regexp {
-webkit-font-feature-settings: "liga" off, "calt" off;
}
.string.unquoted {
color: #CDD3DE;
}
.entity.name {
font-weight: bold;
}
.source.js.jsx {
.keyword.control.flow.js,
.keyword.control.js,
.variable.language.this,
.entity.other.attribute-name,
.storage,
.type.function {
vertical-align: baseline;
font-family: 'flottflott';
height: inherit;
font-size: 1.5em;
line-height: 1rem;
}
.storage.type.function.arrow.js,
.variable {
font-family: 'Fira Code';
font-style: normal;
}
}
}
@kirso
Copy link

kirso commented Aug 23, 2017

I believe they are removing the shadow DOM so the selectors will change

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