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:

image

Examples of node packs using emojis include:


How to add emojis on your nodes

There are several ways emojis can be configured in ComfyUI. The Comfyroll method is described below:

Steps

  1. Create a categories.py file.

image

icons = {
    "Comfyroll/Aspect Ratio": "🧩 Comfyroll/🔳 Aspect Ratio",
    "Comfyroll/Upscale": "🧩 Comfyroll/🔍 Upscale",
    "Comfyroll/Model Merge": "🧩 Comfyroll/⛏️ Model Merge",
    "Comfyroll/Utils/Logic": "🧩 Comfyroll/🛠️ Utils/🔀 Logic"
}
  1. Add the following line to the imports section of each of your nodes files.
from ..categories import icons
  1. Edit the CATEGORY on each of the nodes.

Change from:

CATEGORY = "Comfyroll/Aspect Ratio"

Change to:

CATEGORY = icons.get("Comfyroll/Aspect Ratio")
  1. 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:

image

The category menu will also show emojis for the node:

image


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 🎭🅐🅓"