Switch Theme dynamicaly depending role(s) and URI

This project is not covered by Drupal’s security advisory policy.

The Switch Theme module allows administrator to change default theme depending on role of the current authenticated user and the current URL.

For example, you can apply a specific theme for one to n role(s) according to the current url whitch match with configured regex pattern.

Practical case, for an authenticated user, who is on "/account" page. You can apply a specific theme for him with this configuration of the module:

  • Role: Authenticated
  • URI Pattern: #^/account$#
  • Theme: Active specific theme to use

Similar modules:

  • Theme switcher

    "Theme Switcher module allows you to create theme-switching rules which allow automatic selection of a theme based on Drupal 8 Conditions system."

    It works pretty well on D8 & D9

Project information

Releases