Style Grid has its own wildcards. You put a short token in your prompt, press Generate, and the token gets swapped for a style from your library. This guide is about using them for real work: batches, character sheets, and finding out which styles you like.
Everything here works in both versions of Style Grid. If you haven't installed it yet, start with the full guide for Forge, reForge and A1111 or for ComfyUI.
The two tokens
{sg:category} is random. Every generation picks one style from the category, and the same style can come up twice in a row.
{sgd:category} is a shuffle. It walks through the category like a deck of cards and doesn't repeat a style until all of them have been used.
You don't have to type either one. Right-click a category in the sidebar and choose Random or Shuffle.

Recipe 1: one character, many outfits
Write the character once and let the shuffle handle the clothes:
1girl, solo, long silver hair, standing, full body, {sgd:clothes}In the WebUI, set batch size to 1 and batch count to however many outfits you want. In ComfyUI, queue that many runs. Each image gets the next outfit from the deck.

Four runs of the same prompt with a shuffle wildcard on a slice of the CLOTHES category.
The important part is batch size 1. All images inside one batch share the same pick, so a batch of four gives you four images in one outfit.
Recipe 2: only the styles you want
A whole category is often too much. CLOTHES in my packs has more than 250 styles, and you probably don't want all of them in a character sheet. Use a slice:
{sgd:clothes:Kimono,Hoodie,Business_Suit,Sundress,Leather_Jacket,Trench_Coat}The names are the style names without the category prefix. You can build the slice by hand or with Pick styles… in the category menu, which turns the grid into checkboxes.

Two more forms are worth knowing:
{sg:lighting:-Dim_Dark,-Low_Key}uses the whole category except the styles you list with a minus.{sg:shoes:Boots_*}uses every style whose name starts withBoots_.
Recipe 3: try every lighting setup on one scene
Shuffle is the fastest way to see what a category does. Keep the scene fixed and step through the lights:
1girl, solo, upper body, trench coat, {sgd:lighting:Golden_Hour_Sunset,Neon_Colorful,Rim_Light,Candlelight}
Star the ones you like while the results are still in front of you. A week later you won't remember which was which.
Recipe 4: stack several wildcards
Nothing stops you from using more than one token:
1girl, solo, {sgd:clothes:Kimono,Sundress,Trench_Coat}, {sg:scene:Cafe,Rooftop,Garden}, {sg:lighting}Shuffle and random tokens are drawn separately and don't affect each other. If you repeat the same shuffle token twice in one prompt, each occurrence gets a different style.
Things that will save you time
A wildcard in the positive prompt also brings the picked style's negative prompt along. You don't need a second token in the negative box.
The source dropdown limits the pool. With one pack selected, wildcards only pick from that pack. With All Sources, they pick from everything you have loaded.
Random picks follow the seed. Lock the seed and you get the same pick every time, which is what you want when you're tuning the rest of the prompt.
In the WebUI, the styles that were picked are written into the image's infotext. Open PNG Info to see what a wildcard resolved to.
Wildcard chips are saved in presets, so a recipe you like can be stored and applied with one click.
If a slice lists names that don't exist, the WebUI version falls back to the whole category. Check the chip in the tray: it shows how many styles the token can actually pick from.

WebUI and ComfyUI differences
In the WebUI, the shuffle deck moves one step per batch. Use batch count to step through it.
In ComfyUI, the deck moves one step per queue run, and the panel shows where you are (seed N, next draw #M) with Restart and New deck buttons. Random picks follow the node's seed input.
Links
More guides are on my profile.





Comments