Passer au contenu principal

Customize the theme

This guide explains how to match the Casdoor pages to your brand by setting the primary color and the border radius.


Learning outcomes​

  • Understand the three levels of themes.
  • Set the theme of an organization.
  • Set the theme of a single application.

What you need​

  • Administrator access to the Casdoor admin console

Theme levels​

LevelWhere you set itWhere it applies
GlobalIn the source code only, in web/src/Conf.tsEvery organization that has no theme of its own
OrganisationEdit page of the organizationAll pages of the admin console for members of the organization, and the entry pages (sign-in, sign-up, forgot password, and so on) of the applications that follow the organization theme
Application clienteEdit page of the applicationThe entry pages of that application only

Set the theme of an organization​

  1. In the Casdoor admin console, open the edit page of the organization.
  2. In Theme, set the primary color and the border radius.
  3. Save the organization.

Recording of editing the theme of an organization

If you edit the organization that you are signed in to, the change applies at once. Otherwise, sign in to that organization to see the theme.

Set the theme of an application​

  1. Open the edit page of the application.

  2. Turn off Follow organization theme, and set the primary color and the border radius in the theme editor.

  3. Check the result in the preview panel of the application.

    Theme preview on the application edit page

  4. Save the application.

See also​