-
Notifications
You must be signed in to change notification settings - Fork 47
Tutorial: Creating new emoji
-
Create the actual emoji file with your favorite means. Square SVG's with properly set
viewBox
'es are highly recommended, I have not checked if other formats work. -
Save it in
client/res/emoji/
under an appropriate file name. -
Edit
client/lib/emoji.js
:index[name] = filename
...Where
name
is the name of the emoji to use, andfilename
is the filename inclient/res/emoji/
without the extension. For example, the entry for the emojieuphoria
with the fileeuphoria.svg
would look like that:index["euphoria"] = "euphoria"
-
Optional: Aliases can be added by copying values in the
index
object from one key to another, and optionally removing the entry for the former key; for example, renaming euphoria to euphoria2 would look like that:index["euphoria2"] = index["euphoria"] delete index["euphoria"]
-
Save the file, and update the client data (
docker-compose run frontend
in the project directory). -
Done.