ComfyUI Node

Prompt Styler Environment

Drop your subject into a setting

By wolfden·Created 3 years ago·Updated about a year ago· 105
Prompt Styler Environment
    • positive_prompt_text_g
    • negative_prompt_text_g
    text_positive
    text_negative
    style
    log_promptNo

    SDXLPromptStylerbyEnvironment is one of the small, focused nodes in wolfden's SDXL Prompt Styler pack. Where the big nodes carry thousands of styles, this one keeps it tight: 11 settings - Beach, Desert, Forest, Indoor, Mountain, Outdoor, Rural, Snow, Studio, Urban. You type a subject, pick an environment, and it wraps your text with that setting's scene keywords.

    This is a building-block node, not a one-stop shop. It does one facet - where the thing is - and does it cleanly. That makes it easy to chain: run your prompt through this for the setting, then through the lighting or depth-of-field node for the rest.

    How it works

    Each environment is a JSON entry with a {prompt} placeholder in its prompt field and a negative_prompt. Pick "Forest" and your text_positive gets slotted into a template that adds forest scenery around it. No model, no API, no key - just string substitution. Because you can wire one styler's output into the next's text_positive, these small nodes are designed to stack.

    The negative is baked into each preset, and if you type into text_negative it merges with the template's rather than replacing it.

    The inputs that matter

    • text_positive - your subject. Feed it a plain sentence, or the output of another styler node if you're chaining.
    • style - the setting, 11 options.
    • text_negative - optional, merged with the preset's negative.

    log_prompt (No/Yes) prints the finished prompt to the console. Outputs are positive_prompt_text_g and negative_prompt_text_g, both strings - positive into the CLIP Text Encode feeding your positive conditioning, negative into the negative one. On SDXL, the same string can populate both G and L of a CLIPTextEncodeSDXL. Or, if you're stacking, route the positive output into the next styler's text_positive.

    Installing it

    ComfyUI Manager: search SDXL Prompt Styler (wolfden), install, restart. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/wolfden/ComfyUi_PromptStylers
    

    Restart ComfyUI and look under the Style Prompts submenu. No downloads, no dependencies.

    Where people get tripped up

    The small nodes are the ones worth chaining, but watch the order and the negatives when you do. Each node in the chain drags along its own inherited negative, and by the third styler you can end up with a bloated negative block that fights your positive. Turn on log_prompt, read the final assembled prompt, and prune. The presets are JSON in the pack folder if you'd rather edit them once.

    The pack-wide caveat still applies: these templates were tuned for SDXL and its CLIP encoder, so they help most on SDXL, Illustrious, Pony, NoobAI. On 2026 LLM-encoded models the styling is weaker and the inherited negative does nothing at CFG 1, where distilled checkpoints run, because the negative pass isn't computed there. The node styles any model's prompt since it's just text - but "styles" and "was tuned for your model" aren't the same.

    If the node doesn't show after install, restart fully and check Style Prompts, not the root menu.

    CategoryStyle Prompts

    Inputs (4)

    NameTypeDefaultDescription
    text_positiveSTRING
    text_negativeSTRING
    styleCOMBO11 options: none byEnvironment, Beach, Desert, Forest, Indoor, Mountain, +5
    log_promptCOMBONo2 options: No, Yes

    Outputs (2)

    NameTypeDescription
    positive_prompt_text_gSTRING
    negative_prompt_text_gSTRING