Nodes/ComfyUI_SVG-Suite/Manage SVG Styles
ComfyUI Node

Manage SVG Styles

The file manager for your SVG style presets

By MushroomFleet·Created about a year ago·Updated 5 months ago· 9
Manage SVG Styles
    • STRING
    â—„operationlist_stylesâ–º
    â—„style_namemy_custom_style.jsonâ–º
    â—„new_style_namecustom_styleâ–º

    Style presets accumulate. You create a few looks with SVG Create Style, the shipped ones are still there, and pretty soon the styles folder is a junk drawer you can't see into from the node graph. SVG Styles Manager is the cleanup and bookkeeping node for that folder - list what's there, copy a preset under a new name, delete one, or preview what a style would do. It never touches an SVG; it manages the library that the other Styler nodes read from.

    Operations

    • list_styles - enumerate the presets in the styles folder. The "what do I even have?" button.
    • copy_style - duplicate the selected style_name as new_style_name. The safe way to fork a preset before tweaking it, so you don't wreck the original.
    • delete_style - remove a preset file. There's no recycle bin, so this is the "are you sure" moment.
    • preview_style - show what the style contains (its rules/JSON), so you can see what you're about to apply before SVG Styler does it.

    Both required inputs are dropdowns: operation and style_name (enumerated from the folder, so only presets that actually exist are selectable - including your SVG Create Style output after a reload). new_style_name only matters for copy_style. Output is a single STRING: a confirmation or the preview text, not the SVG - this node is metadata, not content.

    How it works

    It's a thin wrapper around the styles directory: list, copy, delete, or read JSON files. That's the whole mechanism, and it's worth remembering because it means everything this node does is also doable by hand in the file system - the node just gives you a safe UI for it and keeps the pack's conventions (.json naming, the dropdown enumeration) consistent.

    Install

    Pack standard:

    cd ComfyUI/custom_nodes
    git clone https://github.com/MushroomFleet/svg-suite
    pip install -r requirements.txt
    

    Restart ComfyUI, or via Manager under "svg-suite". No special dependencies.

    Where people get burned

    Delete is permanent - this node doesn't move files to a trash folder, it removes them. Duplicate before you experiment, not after.

    Second, the dropdown refresh problem again: the style_name list is built when the workflow loads. Create a style, and it won't be in SVG Styles Manager (or SVG Styler) until you reload. It's a mild annoyance with the whole Styler family, but it bites hardest here because this is the node you'd reach for specifically to check "did my new style save?" - and it won't show it until the reload that also makes it appear. Also note the enum samples in the schema are the shipped defaults; your actual dropdown will show whatever's in your folder, so don't be surprised if it's a superset.

    Category💎TOSVG/Styler

    Inputs (3)

    NameTypeDefaultDescription
    operationCOMBOlist_styles4 options: list_styles, copy_style, delete_style, preview_style
    style_nameCOMBOmy_custom_style.json6 options: my_custom_style.json, colorful_flat.json, minimalist.json, neon_glow.json, watercolor.json, blueprint.json
    new_style_nameoptSTRINGcustom_style—

    Outputs (1)

    NameTypeDescription
    STRINGSTRING—