---
title: "Feature: Added DeeplBaseSvgIconProvider"
manual: "DeepL Translate (CORE)"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/deepl-base:feature-addeddeeplbasesvgiconprovider-1777259422@main"
source: "Changelog/2.0/Feature-AddedDeeplBaseSvgIconProvider.rst"
rendered: "2026-11-05T16:13:17+00:00"
---

# Feature: Added `DeeplBaseSvgIconProvider` {#feature-addeddeeplbasesvgiconprovider-1777259422}

## Description {#description}

The custom `\WebVision\Deepl\Base\Imaging\IconProvider\DeeplBaseSvgIconProvider`
is added to allow registration and rendering of color mode aware `SVG` icons,
for example as action icons on buttons.

The `\TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider` lacks this
ability, because it renders `<img />` tags for the inline markup usage and
`\TYPO3\CMS\Core\Imaging\IconProvider\SvgSpriteIconProvider` is not
usable in all cases.

### Example registration {#example-registration}

**EXT:my_ext/Configuration/Icons.php**

```php
<?php

declare(strict_types=1);

use WebVision\Deepl\Base\Imaging\IconProvider\DeeplBaseSvgIconProvider;

return [
    'myext-color-mode-aware-icon' => [
        'provider' => DeeplBaseSvgIconProvider::class,
        'source' => 'EXT:my_ext/Resources/Public/Icons/color-mode-aware-icon.svg',
    ],
];
```

## Impact {#impact}

Allows the registration of color mode aware SVG icons.
