Sign In

One style library for WebUI and ComfyUI

1

One style library for WebUI and ComfyUI

Plenty of people run a WebUI for quick work and ComfyUI for anything with a pipeline. Style Grid exists for both, and the style packs are the same CSV files. This guide explains what carries over between the two, what doesn't, and how to keep the libraries in step.

What's the same

The panel is the same in both: the sidebar, search, Grid and Gallery views, the card menu, presets as cards, conflict warnings, backups.

The CSV format is the same. A pack that works in one works in the other without changes.

Wildcard syntax is the same. {sg:lighting}, {sgd:clothes} and slices like {sg:lighting:Golden_Hour,Rim_Light} mean the same thing in both.

comfyui.png

webui.png

Where the packs go

  • WebUI: the extension's styles folder, or the WebUI root next to styles.csv.

  • ComfyUI: ComfyUI/user/style_grid/.

The two programs don't share a folder, so each one needs its own copy of the file. When a pack gets an update, copy the new CSV to both places. ComfyUI picks up a changed file the next time the panel opens.

What doesn't carry over on its own

Each version keeps its own data: presets, favorites, previews and category order. Starring a style in reForge doesn't star it in ComfyUI.

For styles you created or edited in one panel, the simplest way to move them is to copy the CSV file itself. Edits made in the panel are written straight into the file, so the file is always current.

Differences you'll notice

Where styles land

In the WebUI, a style goes into the prompt boxes of txt2img or img2img. In ComfyUI, it goes into the text fields of the Style Grid node, and the node's two outputs feed your text encoders. Each applied style also shows as a chip on the node itself.

node-chips.png

Previews

The WebUI version can generate previews for one style or a whole category. The ComfyUI version uses previews you upload.

LoRA cards

The WebUI version shows installed LoRAs as cards. The ComfyUI version doesn't.

Wildcard seed

In the WebUI, random picks follow the generation seed. In ComfyUI, they follow the seed input on the Style Grid node, which is separate from your sampler's seed. Set it to fixed to keep a pick while you change other things.

Shuffle step

The WebUI moves the shuffle deck one step per batch, so you use batch count. ComfyUI moves it one step per queue run and shows the position in the panel, with Restart and New deck.

BREAK

The WebUI understands BREAK in prompts. ComfyUI's built-in CLIP Text Encode reads it as an ordinary word. If your styles use BREAK, use an encoder that supports it in ComfyUI, such as CLIPTextEncodeBREAK from ComfyUI-ppm.

A routine that works

  1. Edit and test styles in one place. The WebUI is handy for this because it can generate previews.

  2. When a pack is in good shape, create a backup in the panel (⋯ More → Backup & restore…).

  3. Copy the CSV to the other program's folder.

  4. Rebuild the presets you need there. They're quick to make, and a ComfyUI workflow usually wants different ones anyway.

One mistake to avoid in ComfyUI

Don't keep the same CSV in both user/style_grid/ and user/style_grid/imports/. Each copy loads as a separate pack and every style shows up twice.

More guides are on my profile.

1

Comments