Adding Emojis 🎨 - Suzie1/ComfyUI_Guide_To_Making_Custom_Nodes GitHub Wiki
The Noto Color Emojis can be used in node names, catergory names and also on your github README, github wiki, and CivitAI pages.
https://fonts.google.com/noto/specimen/Noto+Color+Emoji/glyphs
Example glyphs:
Examples of node packs using emojis include:
- https://github.com/RockOfFire/ComfyUI_Comfyroll_CustomNodes
- https://github.com/alt-key-project/comfyui-dream-project
- https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved
How to add emojis on your nodes
There are several ways emojis can be configured in ComfyUI. The Comfyroll method is described below:
Steps
- Create a categories.py file.
icons = {
"Comfyroll/Aspect Ratio": "🧩 Comfyroll/🔳 Aspect Ratio",
"Comfyroll/Upscale": "🧩 Comfyroll/🔍 Upscale",
"Comfyroll/Model Merge": "🧩 Comfyroll/⛏️ Model Merge",
"Comfyroll/Utils/Logic": "🧩 Comfyroll/🛠️ Utils/🔀 Logic"
}
- Add the following line to the imports section of each of your nodes files.
from ..categories import icons
- Edit the CATEGORY on each of the nodes.
Change from:
CATEGORY = "Comfyroll/Aspect Ratio"
Change to:
CATEGORY = icons.get("Comfyroll/Aspect Ratio")
- Add the emoji in DISPLAY_NAME_MAPPINGS in the __init__ file.
NODE_DISPLAY_NAME_MAPPINGS = {
"CR Aspect Ratio": "🔳 CR Aspect Ratio",
}
The node will now show the emoji:
The category menu will also show emojis for the node:
AnimDiff uses a slightly simpler method for creating categories. It doesn't use a categories.py file, but includes the emojis directly in the CATEGORY.
CATEGORY = "Animate Diff 🎭🅐🅓"