# カスタムCSS

カスタムCSSを使ってソフトウェアの外観を好みに合わせて変更できます。例えば次のようにします：

<figure><img src="/files/0dc4c2cc10434b4c245ce90f16f09b2627934a4e" alt=""><figcaption><p>カスタム CSS</p></figcaption></figure>

```css
:root {
  --color-background: #1a462788;
  --color-background-soft: #1a4627aa;
  --color-background-mute: #1a462766;
  --navbar-background: #1a4627;
  --chat-background: #1a4627;
  --chat-background-user: #28b561;
  --chat-background-assistant: #1a462722;
}

#content-container {
  background-color: #2e5d3a !important;
}
```

### 組み込み変数

```css
:root {
  font-family: "汉仪唐美人" !important; /* フォント */
}

/* 深く考える展開時のフォント色 */
.ant-collapse-content-box .markdown {
  color: red;
}

/* テーマ変数 */
:root {
  --color-black-soft: #2a2b2a; /* 暗色背景色 */
  --color-white-soft: #f8f7f2; /* 明色背景色 */
}

/* ダークテーマ */
body[theme-mode="dark"] {
  /* Colors */
  --color-background: #2b2b2b; /* 暗色背景色 */
  --color-background-soft: #303030; /* 明色背景色 */
  --color-background-mute: #282c34; /* 中立的な背景色 */
  --navbar-background: var(-–color-black-soft); /* ナビゲーションバーの背景色 */
  --chat-background: var(–-color-black-soft); /* チャット背景色 */
  --chat-background-user: #323332; /* ユーザーのチャット背景色 */
  --chat-background-assistant: #2d2e2d; /* アシスタントのチャット背景色 */
}

/* ダークテーマ専用スタイル */
body[theme-mode="dark"] {
  #content-container {
    background-color: var(-–chat-background-assistant) !important; /* コンテナの背景色 */
  }

  #content-container #messages {
    background-color: var(-–chat-background-assistant); /* メッセージの背景色 */
  }

  .inputbar-container {
    background-color: #3d3d3a; /* 入力欄の背景色 */
    border: 1px solid #5e5d5940; /* 入力欄の枠線色 */
    border-radius: 8px; /* 入力欄の角丸 */
  }

  /* コードスタイル */
  code {
    background-color: #e5e5e20d; /* コードの背景色 */
    color: #ea928a; /* コードの文字色 */
  }

  pre code {
    color: #abb2bf; /* 整形済みコードの文字色 */
  }
}

/* ライトテーマ */
body[theme-mode="light"] {
  /* Colors */
  --color-white: #ffffff; /* 白 */
  --color-background: #ebe8e2; /* 明色背景色 */
  --color-background-soft: #cbc7be; /* 明色背景色 */
  --color-background-mute: #e4e1d7; /* 中立的な背景色 */
  --navbar-background: var(-–color-white-soft); /* ナビゲーションバーの背景色 */
  --chat-background: var(-–color-white-soft); /* チャット背景色 */
  --chat-background-user: #f8f7f2; /* ユーザーのチャット背景色 */
  --chat-background-assistant: #f6f4ec; /* アシスタントのチャット背景色 */
}

/* ライトテーマ専用スタイル */
body[theme-mode="light"] {
  #content-container {
    background-color: var(-–chat-background-assistant) !important; /* コンテナの背景色 */
  }

  #content-container #messages {
    background-color: var(-–chat-background-assistant); /* メッセージの背景色 */
  }

  .inputbar-container {
    background-color: #ffffff; /* 入力欄の背景色 */
    border: 1px solid #87867f40; /* 入力欄の枠線色 */
    border-radius: 8px; /* 入力欄の角丸。お好みのサイズに変更してください */
  }

  /* コードスタイル */
  code {
    background-color: #3d39290d; /* コードの背景色 */
    color: #7c1b13; /* コードの文字色 */
  }

  pre code {
    color: #000000; /* 整形済みコードの文字色 */
  }
}
```

より多くのテーマ変数についてはソースコードを参照してください：<https://github.com/CherryHQ/cherry-studio/tree/main/src/renderer/src/assets/styles>

### 関連おすすめ

Cherry Studio テーマライブラリ： <https://github.com/boilcy/cherrycss>

中国風の Cherry Studio テーマスキンをいくつか共有します： <https://linux.do/t/topic/325119/129>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cherry-ai.com/docs/jp/pre-basic/personalization-settings/css.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
