Edit online

Specifying a Different CSS File for Each User Role

It is possible to specify a different custom CSS file for each type of user role. There are several ways to achieve this:

  1. Create different a framework for each different user role. You can use framework extensions or framework extension scripts to avoid duplication between frameworks.
  2. In the same framework, you can create multiple stylesheets that can be switched from the Web Author UI using the More > Choose styles action. You can also use the stylesheet-titles URL parameter to specify a comma-separated list of the stylesheet titles to use.
  3. You can use the AuthorPreloadProcessor API to set a pseudo-class on the root of the document depending on the user role and then use it in CSS selectors to adjust the appearance based on the specific user role.