Include the emojis.css
file, and then just use the attributes wherever!
Install from NPM:
npm install css-emojis
<any emoji="grinning-face"></any>
To find out the emojis names, go here, and add dashes to the desired name.
For skin-tones, you can do:
<any emoji="baby" emoji-tone="light"></any>
Where the available tones are:
tone | example |
---|---|
light | πΆπ» |
medium-light | πΆπΌ |
medium | πΆπ½ |
medium-dark | πΆπΎ |
dark | πΆπΏ |