← Back


Google's Emojis iconset for iron-icon




[ This description is mirrored from at on 2019-05-22 ]


Iconset for iron-icon to use Google's Emojis. See the Documentation.

See for yourself.

<iron-icon icon="emoji:�"></iron-icon>
<iron-icon icon="emoji:�"></iron-icon>
<iron-icon icon="emoji:�"></iron-icon>
<emoji-icon emoji="dog"></emoji-icon>
<emoji-icon emoji="cat"></emoji-icon>


How to install

You can clone this repo directly to your server but I recommend using bower:

bower install --save raulsntos/noto-emoji-iconset

Important note

The emojis will not render properly if you don't use Shadow DOM so be sure to enable it.

The good news: Polymer will switch to Shadow DOM by default eventually (soon).

Take a look at the demo to see how I'm using the iconset. If you are using a Polymer version that is lower than 2.0 be sure to add this code before loading Polymer (or every element implemented with Polymer) :

window.Polymer = {
  dom: 'shadow'

How to use the set

To use the set simply import this set and use it like any other iconset. Use the prefix emoji followed by colon (:) and the emoji in unicode (). Example:

    <link rel="import" href="bower_components/noto-emoji-iconset/noto-emoji-iconset.html">
      <iron-icon icon="emoji:�"></iron-icon>

But it's hard to type emojis in my laptop! :angry:

I know! That's why there's also a Polymer element included emoji-icon which lets you use the emoji shortname (like you do in GitHub). Example:

    <link rel="import" href="bower_components/noto-emoji-iconset/emoji-icon.html">
      <emoji-icon emoji="tada"></emoji-icon>

Nice features of emoji-icon

  • You can use shortnames instead of typing the emoji (making it easier to use when you are not developing using your phone :wink:)
  • The element uses a dictionary to translate emoji shortnames to unicode, the dictionary is stored in emoji-dictionary.html. The element imports the JSON variable only once since that's how the <link rel="import"> tag works.

Can I change the size?

Yes! If you are using iron-icon, see how to do it in their documentation. If you are using emoji-icon you can also find how in iron-icon's documentation because it's the exactly the same but replacing iron with emoji in the CSS variables.

How to build the iconset


What it does

You can build the iconset yourself by using the build.go file included in this repository, simple use go run build.go.

The script uses git to clone the Noto GitHub repository (you can also download the repository manually, the script will not clone it as long as a folder named noto-emoji exists in the root of this project).

If you have already cloned or downloaded the Noto repository but want to update it to the latest version use the flag -update-noto when running the script: go run build.go -update-noto to overwrite the folder (or you can delete it manually and then run the script).

To overwrite the emoji-dictionary.html use the -update-dictionary flag, works the same way as the -update-noto flag.

The script will overwrite the noto-emoji-iconset.html and emoji-dictionary.html files without a warning.

The flag -analysis also exists to generate the analysis.json file, it is exactly the same as using the command polymer analyze emoji-icon.html > analysis.json but shorter, the generated JSON file is used only in the demo.

You might not want to build the element yourself, use the one downloaded by bower

It might take a few minutes since it has to download the entire Noto repository, go through over 800 svg images and then download and parse a JSON that contains over 1000 elements. Also, the script was not built to be fast, I implemented it quickly so there might be a few things that could've been done better, the purpose of the script is to automate the process of transforming the latest version of Google's Noto Emoji into a Polymer element, once the script has fullfilled its purpose there is no need for it anymore (until Google updates the Noto repository), so it's likely that no user will ever run the go script but me in order to update the element.

Known issues

  • I'm using the SVG icons provided by Google in the Noto repository and they are currently outdated so there are a few missing emojis, when Google updates their repository I'll include the new emoji. If you want to know the state of this issue check the Noto repository issue #30.
  • Google's Noto repository will eventually switch from the blob emojis to the new Android O emojis, they plan to tag the repo before that, when they do I will update build.go to be able to specify which version of the emojis to use (I prefer the blobs but the prebuilt version of the repo will probably use whichever is the latest version of the Noto repo, which is going to be the Android O emojis) #141.
  • I would prefer to make emoji-icon extend from iron-icon instead of creating a new element with an iron-icon tag inside and redefining every CSS variable but Polymer does not seem to support extending custom elements yet. See issue #2280 in the Polymer repo.


(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.




  • PolymerElements/iron-icon#^1.0.10
  • PolymerElements/iron-list#^1.3.11
Apache License 2.0


Polymer 1.0+
Polymer 2.0+ in 0.1.0
Browser Independent