ComfyUI Extension
Style Matrix
Interactive JSON prompt style manager for ComfyUI. Browse categories, sort, live-edit positive/negative prompts, and save or delete .json styles directly from the node graph.
Sky-Wright/ComfyUI-Style-Matrix
Nodes—
On cloudLocal install
Stars0
Updateda day ago
Readme
ComfyUI Style Matrix
An interactive JSON prompt style manager for ComfyUI — built as much for organizing large style libraries as for rapidly creating and iterating on new ones.
It effectively replaces typing prompts directly into your CLIP Text Encode nodes: right-click your positive/negative CLIP nodes, convert text to an input, and wire Style Matrix straight in. Browse categorized .json styles, sort by name or recency, live-edit prompts before generating, and save or delete styles without leaving the graph.
Features
- Interactive Loading: Selecting a style from the dropdown immediately loads its JSON into editable
positiveandnegativetext boxes. - Folder-Based Categories: Subdirectories inside your styles folder automatically become categories, with an in-node New Category button.
- Sorting: Sort styles
A-Z,Z-A,Newest, orOldest. - Save & Delete: Save edits or new styles back to
.jsonfiles, or remove unwanted styles safely with a confirmation prompt. - Flexible Path Discovery: Checks
style_matrix_config.json(search_paths),extra_model_paths.yaml(styles),../models/styles, andComfyUI/models/styles. - Standard JSON Format:
{ "name": "My_Style", "description": "Saved from ComfyUI Style Matrix", "prompt": "masterpiece, best quality...", "negative": "lowres, bad anatomy...", "extra": "" } - Universal Outputs: Outputs
positive_text,negative_text, andstyle_name_text(STRING), compatible with any CLIP Text Encode node.
Installation
- Clone this repository into your
ComfyUI/custom_nodes/directory:cd ComfyUI/custom_nodes git clone https://github.com/Sky-Wright/ComfyUI-Style-Matrix.git - Restart ComfyUI.
Usage
- Place your JSON styles in
ComfyUI/models/styles/(or configurestyles:inextra_model_paths.yaml). - Add the Node: Right-click >
utils>styles>Style Matrix. - Select a Category & Style: Pick a style from the dropdown to populate the prompt boxes.
- Connect: On your positive and negative CLIP Text Encode nodes, right-click > Convert Widget to Input >
text, then wirepositive_textandnegative_textinto them.
License
MIT