Adds a checkbox to each backend user's profile to individually enable or disable custom CSS and JavaScript in the Contao 5 backend.
composer require codesache/contao-backend-user-style-bundleRun migrations after installation:
php bin/console contao:migrateThe bundle ships with its own default backend styles. No configuration is required out of the box.
Each backend user will find a checkbox „Backend-Anpassungen aktivieren" in their profile under the Backend-Theme section.
To use your own files instead of the bundled defaults, add to config/config.yaml:
codesache_backend_user_style:
css:
- files/backend/my-custom.css
js:
- files/backend/my-custom.jsPaths are relative to the project's public/ directory.
- PHP 8.2+
- Contao 5.3+
MIT – see LICENSE