メインコンテンツにスキップ

テーマのカスタマイズ

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


学習目標​

  • テーマの3つのレベルを理解する。
  • 組織のテーマを設定する。
  • 個別のアプリケーションのテーマを設定する。

前提条件​

  • Casdoor 管理コンソールへの管理者アクセス権

テーマレベル​

LevelWhere you set itWhere it applies
GlobalIn the source code only, in web/src/Conf.tsEvery organization that has no theme of its own
組織Edit 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
アプリケーション - ツールチップEdit page of the applicationThe entry pages of that application only

テーマ設定​

SettingDescription
Themeページのスタイル。Default は訪問者が選択したライトモードまたはダークモードに従います。Dark は常にダークモードを表示し、境界半径を 2 に設定します。Document はプライマリカラーを緑色に、境界半径を 4 に設定します。Blossom はプライマリカラーをピンク色に、境界半径を 16 に設定します。スタイルを選択した後、プライマリカラーと境界半径を変更できます
Primary colorボタン、リンク、その他の強調表示要素の色。プリセットを選択するか、任意の色を入力します
Border radius角の丸み(ピクセル単位)
Is compactより小さいテキストとより密な間隔でページを表示します

組織のテーマを設定する​

  1. Casdoor 管理コンソールで、組織の編集ページを開きます。
  2. Advanced タブの Customize theme で、Follow global theme をオフにし、テーマ設定 を行います。
  3. 組織を保存します。

Recording of editing the theme of an organization

サインインしている組織を編集した場合、変更はすぐに反映されます。それ以外の場合は、その組織にサインインしてテーマを確認してください。

アプリケーションのテーマを設定する​

  1. アプリケーションの編集ページを開きます。

  2. Follow organization theme をオフにし、テーマエディタで テーマ設定 を行います。

  3. アプリケーションのプレビューパネルで結果を確認します。

    Theme preview on the application edit page

  4. アプリケーションを保存します。

関連項目​