---
title: "Deprecation: #100033 - TBE_STYLES stylesheet and stylesheet2"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-100033-1677433329"
source: "Changelog/12.3/Deprecation-100033-TBE_STYLESStylesheetAndStylesheet2.rst"
typo3-version: "12.3"
typo3-major: 12
type: "deprecation"
issue: 100033
forge: "https://forge.typo3.org/issues/100033"
tags: ["Backend", "FullyScanned", "ext:backend"]
rendered: "2026-09-17T21:17:42+00:00"
---

# Deprecation: #100033 - TBE_STYLES stylesheet and stylesheet2 {#deprecation-100033-tbe-styles-stylesheet-and-stylesheet2}

See [forge#100033](https://forge.typo3.org/issues/100033)

## Description {#description}

The usage of `$GLOBALS['TBE_STYLES']['stylesheet']` and
`$GLOBALS['TBE_STYLES']['stylesheet2']` to add custom CSS files
to the TYPO3 backend has been marked as deprecated in TYPO3 v12 and will be
removed in TYPO3 v13.

## Impact {#impact}

Using any of the following configuration declarations

-   `$GLOBALS['TBE_STYLES']['stylesheet']`
-   `$GLOBALS['TBE_STYLES']['stylesheet2']`

will trigger a PHP deprecation notice and will throw a fatal PHP error in
TYPO3 v13.

## Affected installations {#affected-installations}

The extension scanner will find extensions using

-   `$GLOBALS['TBE_STYLES']['stylesheet']`
-   `$GLOBALS['TBE_STYLES']['stylesheet2']`

as "weak" matches.

## Migration {#migration}

Extensions should use `$GLOBALS['TYPO3_CONF_VARS']['BE']['stylesheets']['my_extension']`
where `'my_extension'` is the extension key.

### Example {#example}

**EXT:my_extension/ext_localconf.php**

```php
$GLOBALS['TYPO3_CONF_VARS']['BE']['stylesheets']['my_extension'] = 'EXT:my_extension/Resources/Public/Css';
```

In the example above, all CSS files in the configured directory will be loaded
in TYPO3 backend.
