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.

Maintainers

Package info

github.com/codesache/contao-backend-user-style-bundle

Language:CSS

Type:contao-bundle

pkg:composer/codesache/contao-backend-user-style-bundle

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.1 2026-06-17 07:38 UTC

This package is auto-updated.

Last update: 2026-06-17 09:22:46 UTC


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