Summary | Use Twitter emojis as icons in Discourse. | |
Repository | GitHub - nolosb/discourse-twemoji-icons: Use twemojis as icons in Discourse. | |
Install Guide | How to install a theme or theme component | |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
The component adds Twitter emojis as icons. You can use emojis to add category and tag icons using the respective components. You can also replace default interface icons, either on admin modals or in custom theme code.
Here’s a view of the Kiosk Theme using this component to show emojis on interface and category icons:
Detailed instructions
-
Icon names are generated from a tw-prefix and the emoji shortname in kebab-case (all words are separated with a hyphen).
-
E.g. the emoji goes by the icon name
tw-sun
; goes bytw-beach-umbrella
-
Look up shortnames on the Twemoji Cheatsheet
-
Use the icons on admin modals, e.g. for customizing the sidebar:
-
Use the icons on component settings, e.g. for category icons:
-
Use the icons in theme code:
api.replaceIcon('star', 'tw-star');