color text preset
Eleven color words on tap, plus a custom slot that actually works
- red
- orange
- yellow
- green
- cyan
- blue
- purple
- black
- white
- pink
- custom
Writing "red" is not hard. Typing it for the twentieth time while you test color variants is, and that's the whole job of Color text preset. It hands you eleven named STRING outputs - red, orange, yellow, green, cyan, blue, purple, black, white, pink, and custom - each holding its color word. Wire whichever one you want into a prompt builder, and swap colors by rewiring instead of retyping.
The genuinely smart part is the last slot. The custom input's value replaces the final output, so you get ten fixed colors plus one free slot for whatever color word (or hex-ish token) isn't in the list. It's part of ymc's text/cutoff category, which points at the SDXL-era trick of isolating attention on a region or attribute - colors are the classic test case for that, which is why they got their own preset node.
How it works
Boring and dependable: the node holds a list of the ten base color names, copies it, and swaps the last entry for your custom value. Each output carries exactly that string. The one quirk worth knowing is in the "unconnected" handling. ComfyUI sends the literal string "undefined" when an input isn't connected, so the node guards against that and falls back to sliver if custom comes in as undefined. In practice that means an empty custom field yields sliver rather than a broken word - a small defensive touch, not something you'll usually notice.
Inputs and outputs
- custom - a STRING, default
"red"; whatever you type replaces the finalcustomoutput - Outputs: red, orange, yellow, green, cyan, blue, purple, black, white, pink, custom - eleven STRING wires
The color outputs don't have a separator, they're not a list - they're eleven individual typed outputs so you can wire exactly one into your prompt without parsing anything.
Installing it
# ComfyUI Manager: search "ymc suite" and install ymc-node-suite-comfyui
# or:
cd ComfyUI/custom_nodes
git clone https://github.com/YMC-GitHub/ymc-node-suite-comfyui
Restart after installing. Dependencies are four small pure-Python PyPI helpers that self-install; no models, no GPU work.
Gotchas
- The "cutoff" family in this pack is about building region/attention prompts, not a ControlNet-style color filter. Don't expect this node to touch an image.
- If you have WAS Node Suite installed, Manager may list conflicting node names between the packs; disable one if save nodes start misbehaving.
- Default
customis"red", which collides with the fixed red output if you forget to change it - you'd have two wires both sayingred. Set it to something not in the list or you'll be confused later.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| custom | STRING | red | — |
Outputs (11)
| Name | Type | Description |
|---|---|---|
| red | STRING | — |
| orange | STRING | — |
| yellow | STRING | — |
| green | STRING | — |
| cyan | STRING | — |
| blue | STRING | — |
| purple | STRING | — |
| black | STRING | — |
| white | STRING | — |
| pink | STRING | — |
| custom | STRING | — |