codesache / contao-backend-user-style-bundle
Adds a per-user toggle in the Contao 5 backend profile to enable or disable custom CSS and JS.
Package info
github.com/codesache/contao-backend-user-style-bundle
Language:CSS
Type:contao-bundle
pkg:composer/codesache/contao-backend-user-style-bundle
Requires
- php: ^8.2
- contao/core-bundle: ^5.3
- contao/manager-plugin: ^2.0
README
Adds a checkbox to each backend user's profile to individually enable or disable custom CSS and JavaScript in the Contao 5 backend.
Installation
composer require codesache/contao-backend-user-style-bundle
Run migrations after installation:
php bin/console contao:migrate
Usage
The 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.
Custom CSS/JS
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.js
Paths are relative to the project's public/ directory.
Requirements
- PHP 8.2+
- Contao 5.3+
License
MIT – see LICENSE