Skip to content

Commit

Permalink
feat: add reset-font addon
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 18, 2018
1 parent 564ac3a commit 913320d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions addon/reset-font.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict';

exports.addon = function (renderer) {
if (process.env.NODE_ENV !== 'production') {
require('./__dev__/warnOnMissingDependencies')('reset-font', renderer, ['rule']);
}

renderer.put('', {
'html, body': {
ff: '"Open Sans",sans',
fw: 400,
fz: '16px',

'-moz-text-size-adjust': '100%',
'-ms-text-size-adjust': '100%',
'-webkit-text-size-adjust': '100%',
'text-size-adjust': '100%',

// Makes fonts more smooth/prettier.
'-webkit-font-smoothing': 'antialiased',
'-moz-osx-font-smoothing': 'grayscale',
},
});
};

0 comments on commit 913320d

Please sign in to comment.