unicode-range CSS fragment with list of Unicode emoji codepoint ranges
npm install emoji-unicode-range> unicode-range CSS fragment with list of Unicode emoji codepoint ranges
Emoji are fun! But sometimes when you add an emoji font to your font-family
CSS you run into a problem where the emoji font is used for every character.
That's not fun!
You can specify which range of Unicode characters your font should support with
a cool CSS property called [unicode-range][1], but it's hard to come up with
a Unicode range that accurately describes every emoji character.
``js`
const emojiUnicodeRange = require('emoji-unicode-range')
console.log(emojiUnicodeRange)
See [css-fragment.txt][2] for output. 🙃
With npm:
`shell`
npm install emoji-unicode-range
With yarn:
`shell``
yarn add emoji-unicode-range
ISC
[1]: https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range
[2]: css-fragment.txt