https://youtu.be/WBHI-2uww7o?si=dijvDaUI4nmx4VkF
MileHighStyler is a highly flexible custom node for ComfyUI that lets you combine powerful style templates with your own prompt—using precise control over placement, weighting, and offsets.
("my style":2.0)).{prompt} appears.“`
ComfyUI/custom_nodes/MileHighStyler/
“`
“`
MileHighStyler/
├── sdxl_prompt_styler.py
├── data/
│ └── [menu folders…]
└── styler_config.json
“`
Nodes will appear under the “MileHighStyler” category.
Perfection beta Styler, FashionStyler, or your combo node).text_positive field.2.0, but any value between 1 and 3 is allowed).{prompt} is in the template JSON.{prompt} is always removed from the output.To add a new style menu:
data/ named for your menu, e.g., data/ArtMovement.“`json
[
{
“name”: “Impressionism”,
“prompt”: “impressionist art, {prompt}, vibrant brushstrokes”,
“negative_prompt”: “blurry, washed out”
},
{
“name”: “Cubism”,
“prompt”: “cubist shapes, {prompt}, geometric abstraction”,
“negative_prompt”: “”
}
]
“`
name: What shows up in the node dropdown.prompt: Must include {prompt} where you want the user’s input (or omit it if you’ll always use offsets).negative_prompt: (optional) Anything to append to the negative prompt.To add a new style entry to an existing menu:
styler_config.json in the main MileHighStyler folder.Example:
“`json
{
“Perfection beta”: [“filter_options”, “unique_identifier”, “subject_count”, “Fashion”, “era”, “mode”],
“Art Fusion”: [“ArtMovement”, “ColorPalette”, “Lighting”]
}
“`
data/).menu_labels.json file in your data/ directory to customize how menu names appear in the UI.Example menu_labels.json:
{
"Fashion": "Fashion Style",
"era": "Time Period",
"mode": "Rendering Mode"
}
Template object with a prompt and (optionally) a negative_prompt.styler_config.json), a unique node class is created at runtime with per-menu fields.{prompt} found in the style template.{prompt} is removed.{prompt} is removed.Everything except the user prompt is wrapped in ("...":style_weight), so your style is weighted but the actual prompt isn’t.
You can feed one styler node’s output into another to layer multiple style effects.
Template.replace_prompts method.make_styler_node_class or add new menus/combo logic.sdxl_prompt_styler.py to see exactly how everything ties together.Open an issue or discussion on the repo!
Contributions, ideas, and custom style packs are very welcome.
Happy styling!