1.0.1 • Published 5 years ago

noto-color-emoji v1.0.1

Weekly downloads
302
License
AGPL-3.0
Repository
github
Last release
5 years ago

Noto-color-emoji

A node module which makes it easier to play with noto-color-emoji fonts

Example Usage

$ npm i noto-color-emoji require-style
$ npm i yo-yo
var requireStyle = require('require-style')
var html = require('yo-yo')

var style = html`
  <style>
    ${requireStyle('noto-color-emoji')} 

    body {
      font-family: arial, NotoColorEmoji;
    }
  </style>
`
document.head.appendChild(style)


var hello = html`
  <h1>Hello Noto! </h1>
`
document.body.appendChild(hello)

Notes :

  • order of fonts in font-family css matters. I recommend you make NotoColorEmoji a fallback (as in example), otherwise it will try to take over all your fonts
  • this "just works" in electron apps, but for bundled apps read require-style documentation about bundling transforms.