ComfyUI Node

Prompt Styler Lighting

Set the light with one dropdown

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

    Lighting is one of the biggest levers on how an image reads, and SDXLPromptStylerbyLighting gives you a dropdown for it. This small node from wolfden's SDXL Prompt Styler pack carries 11 lighting styles - Ambient, Artificial, Backlit, Diffused, Flash, Harsh, Natural, SideLit, Soft, Spotlight. Type your subject, pick a light, and it wraps your text in that lighting's keywords.

    It's a focused modifier. You wouldn't build a whole look on it alone, but as one link in a chain - subject here, environment there, lighting from this node - it's a clean way to control mood without fishing for the right words.

    How it works

    Each lighting style is a JSON entry with a {prompt} placeholder in its prompt field and a negative_prompt. Pick "Backlit" and your text_positive slots into a template that adds backlighting language around it. No model, no API, no key - string substitution against a small table. Its output is plain text, so you can route it into another styler to stack facets.

    The negative is baked into each preset and merges with whatever you put in text_negative.

    The inputs that matter

    • text_positive - your subject, or the output of an earlier styler if you're chaining.
    • style - the lighting, 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 go into both G and L of a CLIPTextEncodeSDXL.

    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

    Lighting keywords in a prompt are a suggestion, not a render setting - the model will honor "backlit" or "spotlight" as an aesthetic bias, but it isn't computing real light physics. If you need precise, controllable lighting you'd reach for something like IC-Light, not a text styler. For quick mood, though, this node is exactly right.

    When you chain the small nodes, keep an eye on the negatives: each one carries its own inherited negative and they pile up into a generic block that can conflict with your positive. Turn on log_prompt, read the final prompt, and prune. The presets are JSON in the pack folder if you'd rather edit once.

    And the pack-wide caveat: these templates were tuned for SDXL and its CLIP encoder - best on SDXL, Illustrious, Pony, NoobAI. On 2026 LLM-encoded models the styling weakens and the inherited negative does nothing at CFG 1, where distilled checkpoints run, because the negative pass isn't computed there. If the node doesn't appear after install, restart fully and check Style Prompts, not the root menu.

    CategoryStyle Prompts

    Inputs (4)

    NameTypeDefaultDescription
    text_positiveSTRING
    text_negativeSTRING
    styleCOMBO11 options: none byLighting, Ambient, Artificial, Backlit, Diffused, Flash, +5
    log_promptCOMBONo2 options: No, Yes

    Outputs (2)

    NameTypeDescription
    positive_prompt_text_gSTRING
    negative_prompt_text_gSTRING