Custom font-size per grammar


I successfully changed the font-family for markdown files using this snippet in my styles.less:

atom-text-editor {
  .syntax--text.syntax--md {
    font-family: "DejaVu Sans";
    font-size: 19;

(use scopes “source” and “gfm” if you use language-gfm)

My problem is that while font-family is correctly applied, font-size is overridden by the default size declared in my config.cson. Any idea about why? I tried adding “!important” but it didn’t work either.


font-size: 19 is meaningless. You need to define a unit, like 19px or 19pt or, if you want to live on the edge, 19em.


I’m so much retarded! Thank’you DamnedScholar =D