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:
- migrate legacy extension icons to TYPO3 v14
- design new custom icons that fit the TYPO3 v14 backend
- update
Configuration/Icons.phpand all icon consumers - keep module, plugin, record, action, and extension icons distinct
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
- Inventory existing icon files and registrations.
- Classify each icon by type and render context.
- Infer the icon meaning from module names, TCA, plugin config, and current SVGs.
- If the meaning is still unclear, ask one focused question: what should this icon communicate?
- Load live TYPO3 v14 references for the matching icon family. See references/live-sources.md.
- Use an image generator to design the requested icons, including simple glyphs. Choose GPT Image 2.5 or Google Nano Banana, with actual neighboring backend icons as style references. Generate a coherent family where appropriate. If generation is unavailable, use the fallback below for every requested icon. See references/image-reference-pipeline.md.
- 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).
- Run
scripts/verify-icon.sh <file> <type>— it must printRESULT: PASS. - Update
Configuration/Icons.phpand everyiconIdentifier/pluginIcon/typeicon_classesconsumer. - 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:
- which identifiers or files need to exist
- what each icon represents
- whether several icons should form a visual family
- whether one icon is the parent and others are sub-variants
If the repository already makes the meaning obvious, proceed without stopping. If not, ask for a short mapping such as:
module-myext-> "main module for editorial planning"record-myext-campaign-> "campaign record"plugin-myext-list-> "frontend list plugin"
The user can describe usage, not geometry. Translate usage into icon semantics.
Image-Generator Design Stage
Use GPT Image 2.5 or Google Nano Banana before authoring new or redesigned icons. This applies to module, extension, plugin, record, action, and Content Blocks icons. Pure registration fixes or unchanged Core icon reuse do not need generation. Honor an explicit user request to skip generation.
Inspect two or three existing icons in the target backend and the matching Core catalog. Supply their screenshots or rendered SVGs as visual references when the image tool supports them; otherwise describe their actual geometry, padding, stroke weight, and palette in the prompt. For module icons, match the current TYPO3 line-art family and the installation's accent colour (a purple/lilac or blue theme in 14.3). Do not invent a separate style or retain the old colored tiles.
Prefer an available built-in image generator; it does not require a shell API key.
Select GPT Image 2.5 or Nano Banana when the interface exposes model choice. Never
claim a specific model was used when the tool does not report it. With API access,
scripts/generate-icon-reference.sh supports either provider and technical failover.
scripts/generate-icon-reference.sh "SEO crawler, a circular arrow" /tmp/crawler.ref.png \
--provider auto --type module --accent "lavender arrowhead" \
--family "match adjacent TYPO3 module icons, 64 grid, 4px strokes, 12px padding"
Generated images are design references. Inspect them, then redraw the chosen
geometry as minimal SVG with currentColor, transparent background, and
var(--icon-color-accent, #ff8700). TYPO3 sets this variable from the active backend
theme (a purple or blue primary token in 14.3, orange as the fallback); do not bake a
colour into the asset. Keep each icon's type and render size.
Fallback for every icon
- If the preferred generator is unavailable, unconfigured, rate-limited, times out, returns an invalid image, or lacks the requested model, try the other available authorized provider once. Honor an explicit provider restriction. A safety refusal is not a technical failure to route around.
- If neither provider can produce a reference, say so briefly and complete the entire requested set by authoring SVGs from the observed Core family. Do not ask for keys or leave icons unfinished when this fallback can complete the work.
- Preserve meaning, identifiers, type-appropriate viewBox, theme tokens and the same verification gates on both the generated-reference and fallback routes. Never ship a bitmap, an automatic raster trace, a blank icon, or an unrelated placeholder as the fallback. Report which route was actually used.
See references/image-reference-pipeline.md for current API model IDs, provider selection, prompt guidance, and exit statuses.
Source Of Truth
Use sources in this order:
- Official TYPO3 Icon API docs for registration, providers, and migration: Icon API
- Live TYPO3.Icons catalog for current Core SVG references: TYPO3.Icons
- If the working TYPO3 instance has
EXT:styleguide, inspect the real backend rendering there as a runtime check - 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
- transparent background only
- primary geometry uses
currentColor - accent geometry uses
var(--icon-color-accent, #ff8700) - remove hardcoded white, black, gray, and legacy brand-color backgrounds
- keep markup minimal:
xmlnsplusviewBoxonly unless a provider truly needs more - preserve the semantic shape from the existing icon whenever possible
- for
module-*andExtension.svg: prefer strong silhouettes, a 4px stroke on the 64x64 canvas (renders 2px at 32x32), and.4opacity for depth fills when needed - for 16x16 icons: reduce details aggressively; two clear ideas beat five tiny ones
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:
- Use
currentColor(orvar(--icon-color-primary, currentColor)) for the primary silhouette. It inherits the surrounding text color, which flips automatically when the user switches color scheme. - Use
var(--icon-color-accent, #ff8700)for the accent. TYPO3 orange#ff8700is the 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. - Never hardcode
fill="#000",fill="#333",fill="#fff",fill="white", orfill="black". Any one of these vanishes on one of the two backgrounds. - Never draw a solid background rectangle behind the icon. The backend surface color must show through so the scheme flip works.
- Opacity-based depth (
opacity=".4"on top ofcurrentColor) is safe because the base tone flips with the scheme. - Do not depend on
prefers-color-schememedia queries inside the SVG. The Core drives the scheme via an attribute on the root element, and relying onprefers-color-schemewill 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:
Configuration/Backend/Modules.php->iconIdentifierConfiguration/TCA/*.php->typeicon_classes,iconIdentifierConfiguration/TCA/Overrides/*.php->pluginIcon, page-type or folder icons
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.
Font Awesome icons are the exception to drawing your own SVGs: take them from
friendsoftypo3/fontawesome-provider
(latest stable TYPO3 14 release) rather than a CDN icon font, a vendored Font Awesome copy or
another icon package. Keep it installed when Mask is removed; migrated elements still use its
identifiers.
Migration Behavior
When legacy SVGs already exist:
- keep the existing identifier unless a rename is required
- modernize the current shape before replacing it with a completely new metaphor
- keep file paths stable where possible to reduce config churn
- verify every updated icon against the icon type it belongs to
Use references/migration-steps.md for the checklist.
Verification
Before finishing:
- run
scripts/verify-icon.sh <file> <type>and confirmRESULT: PASS(it gates viewBox, embedded raster, scheme-breaking fills, missingcurrentColor, background rects, andprefers-color-scheme) - verify the file path matches the registered source
- verify the icon type uses the correct viewBox
- verify there is no solid background layer
- verify all consumers point to the intended identifier
- verify the icon remains readable at its real render size
- verify the icon works in both light and dark backend schemes — switch via the 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)
- confirm no hardcoded
#000,#333,#fff,white, orblackfills remain - clear TYPO3 caches and browser local storage if rendering looks stale
References
- references/live-sources.md: live TYPO3 v14 sources, catalog URLs, and fetch patterns
- references/design-notes.md: visual rules, icon-family guidance, and common mistakes
- references/migration-steps.md: migration checklist
- references/image-reference-pipeline.md: GPT Image 2.5 / Nano Banana design stage, provider failover, model facts, prompt guidance
scripts/generate-icon-reference.sh: GPT Image 2.5 / Nano Banana reference generator with technical failoverscripts/verify-icon.sh: hard conformance gate for authored icons