Downloads · 30 days
0
Kazzze/sd-webui-style-organizer
sd-webui-style-organizer is a machine learning model from Kazzze. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Style Grid replaces the default style dropdown with a fast, visual interface for browsing, selecting, and applying styles in all major Stable Diffusion WebUI builds..
Downloads · 30 days
0
Access
Public
Updated Mar 27, 2026
Repo size
78.2 MB
Likes
0
Public
Click a slice to open those files.
.zip74.9 MB · 99%
From the Hugging Face model README
Style Grid replaces the default style dropdown with a fast, visual interface for browsing, selecting, and applying styles in all major Stable Diffusion WebUI builds..
It supports:
See CHANGELOG.md for full release history.
cd /path/to/stable-diffusion-webui-forge/extensions
git clone <this-repository-url> sd-webui-style-organizer
Restart Forge UI after cloning.
txt2img or img2img.All Sources or a specific CSV).Style Grid works in both generation tabs:
Behavior is the same in both modes (source filter, deduplication, favorites/recent, context menus, previews, presets). The small tab badge in the panel header shows the active host context.




.csv extension). Choose the row you want; that variant is applied like a normal selection.


Where to open it
▼ CATEGORY (count) and Select All).Menu actions
| Item | What it does |
|---|---|
| Add category as wildcard | Inserts a token into the positive prompt on the Forge side: {sg:<category>}. The category name is normalized to lowercase to match how styles are grouped. |
| Generate previews | Queues thumbnail generation for styles in that category (batch job in the host). |
How {sg:…} wildcards work
{sg:<category>} — curly braces, the prefix sg:, then the category label as it appears in Style Grid (e.g. ACCESSORY or accessory). Only this pattern is special; the regex is \{sg:…\} (see scripts/stylegrid/wildcards.py).scripts/style_grid.py), before the rest of the prompt is handled like a normal Forge prompt.prompt field from CSV (not negative_prompt). Category matching is case-insensitive.{sg:…} text is left as-is (no error).Compatibility with other “wildcard” extensions (e.g. stable-diffusion-webui-wildcards / Dynamic Prompts __file__ style)
__name__ (double underscores) or other Dynamic Prompts / custom grammar — not {sg:…}.{sg:…}; other extensions only interpret their patterns. The two do not use the same delimiters, so they do not fight over the same text in normal use.{sg:…} feature — it is implemented inside this extension (Python resolve_sg_wildcards + your style CSV data). Other wildcard extensions remain optional for their own __…__ / file-based workflows.Generate previews — sidebar vs grid


Where to open it
Menu actions
| Item | What it does |
|---|---|
| Select / Deselect | Same as a left-click on the card: applies or removes the style from the active selection (and host prompt), without opening the duplicate-source picker. |
| Add to Favorites / Remove from Favorites | Toggles the star list for this style name. |
| Copy prompt | Copies this style’s prompt text to the clipboard. |
| Edit | Opens the host style editor for this style. |
| Duplicate | Opens the host flow to duplicate the style (typically into the same or chosen source). |
| Move to category… | Opens the host dialog to change the style’s category field. |
| Generate preview (SD) | Runs thumbnail generation for this style (Stable Diffusion–based preview in the host). |
| Upload preview image | Opens the host file picker to set a custom thumbnail image. |
| Delete | Removes the style (host confirms and updates CSV). |
Click outside the menu, or move the pointer off the menu panel, to close it.

Generating a preview
data/thumbnails/ (see Data and Persistence).After a successful run, the iframe is notified so the UI can refresh that style’s thumbnail version.
What the card shows
Hover popup (preview window)
prompt column, with ... if longer.negative_prompt, prefixed with − and shown in a muted red tone.The popup is fixed near the card and flips above or below depending on available space.
![]()

What this means: not a separate “toolbar” window — it is the top header row of the Style Grid panel: logo, txt2img/img2img tag, source dropdown, search, then a row of small icon buttons on the right. Hover an icon to see its tooltip.
![]()
| Control | What it does |
|---|---|
| 👁 | Silent mode — styles are applied at generate time (hidden JSON on the Forge host), not in the prompt text fields. Turning silent off clears that host list, so the next generation no longer uses silent injection. The V2 grid may still look as if styles are selected (highlight/chips/count) until you click them or use Clear — that is visual only and does not change what silent mode already cleared for generation. Toggling a style off while silent still updates the host list. |
| 🎲 | Random style — picks a random style (respects the active source filter). |
| 📦 | Presets — save/load/delete style sets. |
| 💾 | Backup — creates CSV backup snapshot(s). |
| 📥 | Import / Export — export/import styles, presets, usage. |
| 📋 | CSV table editor — opens a spreadsheet-style editor for the currently selected CSV (same rule as New style: choose a file in the source dropdown, not All Sources). Uses the saved source filter so it matches what you see in the panel. |
| 🧹 | Clear — clears all selected styles in the panel and on the host prompt. |
| ▪ | Compact mode — toggles a denser card layout. |
| ↕ | Collapse all or Expand all category sections (depends on current state). |
| ➕ | New style — creates a style in the currently selected CSV (All Sources must be switched to a specific file first). |
| (number) | Shows how many styles are selected; ⚠️ may appear if conflicts are detected (hover for details). |
| Fullscreen | Toggles between the floating panel size and edge-to-edge layout. |
| ✕ | Close — closes the Style Grid panel. |
Generated files are stored in data/:
| File/Folder | Purpose |
|---|---|
data/presets.json | Saved presets |
data/usage.json | Usage counters |
data/category_order.json | Persisted category order |
data/backups/ | CSV backups |
data/thumbnails/ | Thumbnail image cache |
Local UI state is also stored in browser localStorage (active source, favorites, recent, compact/collapse preferences).
Primary style fields:
namepromptnegative_promptdescription, categoryDetailed specification: docs/CSV_FORMAT.md.
docs/API.mddocs/DEVELOPMENT.md| Issue | What to check |
|---|---|
| Panel does not open | Extension enabled + full Forge restart. |
| Styles missing | CSV location/encoding/header correctness. |
| Source picker not shown | Must be in All Sources, and style must exist in multiple CSVs. |
| Order seems wrong | Check active source and category order persistence rules. |
| Thumbnails not appearing | Verify generation/upload status and data/thumbnails/ permissions. |
| CSV editor says to pick one CSV | Source filter must be a single file, not All Sources (same as creating a new style). |
PNG files live under docs/screenshots/ and are named to match sections in this README. If the UI changes, replace the images but keep the same filenames (see docs/screenshots/README.md for a refresh checklist).
AGPL-3.0 (LICENSE)