Typo3 icon14

From dirnbauer/webconsulting-skills · View interactive version

Typo3 icon14 is an AI agent skill from the GitHub repository dirnbauer/webconsulting-skills. Designs and migrates TYPO3 extension icons to the v14 line-art style, including source SVG cleanup, light/dark behavior, IconRegistry naming, backend module icons, and verification. Use when the user asks for TYPO3 v14 icons, backend module icon migration, extension icon modernization, SVG icon rule

How to use this skill

Skill file

TYPO3 v14 Icon Modernizer

Source: https://github.com/dirnbauer/webconsulting-skills

Prefer live TYPO3 v14 references over bundled snapshots. Use the official Icon API

docs for registration rules and the TYPO3.Icons catalog for the current Core SVG

language. Use the local reference files only to keep this skill concise.

What this skill is for

Use this skill to:

Do not invent a second icon system for the extension. Work with the icon identifiers,

file names, and render contexts that already exist in the codebase.

Workflow

  1. Inventory existing icon files and registrations.
  2. Classify each icon by type and render context.
  3. Infer the icon meaning from module names, TCA, plugin config, and current SVGs.
  4. If the meaning is still unclear, ask one focused question: what should this icon

communicate?

  1. Load live TYPO3 v14 references for the matching icon family. See

references/live-sources.md.

  1. (Optional) Generate a raster reference with an image model (GPT Image 2 or

Gemini) when a metaphor is non-obvious or you want to explore a family look. The

raster is a guide only — see

references/image-reference-pipeline.md.

  1. Redraw or modernize the SVG in the correct TYPO3 v14 style (author by hand to

spec — never ship the raster or a naive auto-trace).

  1. Run scripts/verify-icon.sh <file> <type> — it must print RESULT: PASS.
  2. Update Configuration/Icons.php and every iconIdentifier / pluginIcon /

typeicon_classes consumer.

  1. Verify the icon in its real backend context (both light and dark) and clear

TYPO3 cache plus browser local storage if the old SVG still appears.

Start With Meaning, Not Shapes

When the user asks for new icons, first capture or infer:

If the repository already makes the meaning obvious, proceed without stopping. If not,

ask for a short mapping such as:

The user can describe usage, not geometry. Translate usage into icon semantics.

Optional: Image-Model Reference Stage

You can use an image model — OpenAI GPT Image 2 or **Google Gemini ("Nano

Banana") — to ideate an icon, then redraw the result as a clean v14 SVG**.

The raster is a design reference, never the shipped asset: TYPO3 backend icons are

monochrome line-art (currentColor, transparent, dark-mode-safe), and shipping a

raster or a naive auto-trace produces fuzzy, scheme-breaking junk. This stage is

optional — for simple glyphs, authoring the SVG directly is faster and cleaner.

# 1. Generate a reference (auto-selects the model from whichever key is present:
#    OPENAI_API_KEY -> GPT Image 2, else GEMINI_API_KEY/GOOGLE_API_KEY -> Gemini)
scripts/generate-icon-reference.sh "agent streaming events into a UI bubble" \
    /tmp/module-agui.ref.png --accent "one spark mark, top-right" \
    --family "centered glyph, 8px padding on a 64 grid, 4px stroke"

# 2. Redraw it by hand as a conformant v14 SVG, then gate it:
scripts/verify-icon.sh packages/agui_integration/Resources/Public/Icons/module-agui.svg module

Key facts (verified mid-2026; re-check live docs):

transparent backgrounds — prompt it for a flat white background and drop it in the

redraw. Use --transparent (→ gpt-image-1-mini) only when you truly need an alpha

raster. GPT-image returns base64 at data[0].b64_json; the org may need API

verification.

no transparent option, and watermarks with SynthID.

No key? Skip this stage and author the SVG directly — the result is just as good for

line-art icons. Full details and the prompt template:

references/image-reference-pipeline.md.

Source Of Truth

Use sources in this order:

  1. Official TYPO3 Icon API docs for registration, providers, and migration:

Icon API

  1. Live TYPO3.Icons catalog for current Core SVG references:

TYPO3.Icons

  1. If the working TYPO3 instance has EXT:styleguide, inspect the real backend rendering

there as a runtime check

  1. Only fall back to local reference notes in this skill when live sources are unavailable

Prefer loading the current Core icons when needed. Do not ship copies of Core icons into

an extension unless the user explicitly wants vendored assets or the environment is offline.

Respect The Icon Type

| Type | Typical file | Render context | ViewBox | Where to look for references |

|------|--------------|----------------|---------|-------------------------------|

| Parent / submodule | module-*.svg | Backend navigation, module menu | 0 0 64 64 | module catalog |

| Extension icon | Extension.svg | Extension Manager and related backend views | 0 0 64 64 | module catalog |

| Plugin icon | plugin-*.svg | New content element wizard, list view, plugin selectors | usually 0 0 16 16 | content, default, apps |

| Record icon | record-*.svg | TCA, page tree, list module | usually 0 0 16 16 | default, apps, mimetypes, overlay, status |

| Action icon | actions-*.svg | Buttons, toolbars, controls | usually 0 0 16 16 | actions |

Always match the render size and visual density of the icon type you are editing. Do not

force a 64x64 module composition into a 16x16 record or action icon.

Minimal TYPO3 v14 SVG Rules

64x64 canvas (renders 2px at 32x32), and .4 opacity for depth fills when needed

See references/design-notes.md for the visual rules and

anti-patterns.

Light And Dark Mode Are Non-Negotiable

TYPO3 v14 ships auto / light / dark color scheme switching in the backend (introduced

as a Core feature in v13.3, carried into v14). Every custom icon must render correctly

in both schemes. There is no separate "dark icon" file — the same SVG is used.

The two CSS tokens that the Core ships on :root (from TYPO3.Icons/assets/scss/icons.scss)

are:

:root {
    --icon-color-primary: currentColor;
    --icon-color-accent: #ff8700;
}

How to stay compatible with both schemes:

silhouette. It inherits the surrounding text color, which flips automatically when

the user switches color scheme.

same fallback in both schemes because orange has sufficient contrast on both light

and dark backend surfaces. Do not replace it with a scheme-specific hex — themes

that want a different accent override the CSS variable, not the fallback.

fill="black". Any one of these vanishes on one of the two backgrounds.

must show through so the scheme flip works.

base tone flips with the scheme.

the scheme via an attribute on the root element, and relying on

prefers-color-scheme will miss manual switches from the User Settings dropdown.

Verify every icon in both schemes before shipping (see Verification below).

Registration Rules

Register icons in Configuration/Icons.php. TYPO3 v14 requires this and no longer allows

registration in ext_localconf.php.

<?php

declare(strict_types=1);

use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;

return [
    'module-myext' => [
        'provider' => SvgIconProvider::class,
        'source' => 'EXT:my_extension/Resources/Public/Icons/module-myext.svg',
    ],
    'record-myext-item' => [
        'provider' => SvgIconProvider::class,
        'source' => 'EXT:my_extension/Resources/Public/Icons/record-myext-item.svg',
    ],
];

Update every consumer after the SVG is in place:

The official docs state that icons must be registered in the icon registry through

Configuration/Icons.php, and that registration in ext_localconf.php is no longer

possible in TYPO3 v14.

Migration Behavior

When legacy SVGs already exist:

Use references/migration-steps.md for the checklist.

Verification

Before finishing:

viewBox, embedded raster, scheme-breaking fills, missing currentColor,

background rects, and prefers-color-scheme)

user dropdown at the top right or User Settings, and check the icon in its real

render context (module menu, content wizard, list module, TCA icons)

References

URLs, and fetch patterns

guidance, and common mistakes

optional GPT Image 2 / Gemini reference stage, model facts, prompt template, gates

Source: https://github.com/dirnbauer/webconsulting-skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.