> For the complete documentation index, see [llms.txt](https://docs.cherryai.com.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cherryai.com.cn/docs/en-us/pre-basic/personalization-settings/custom-css.md).

# Custom CSS

You can modify the software's appearance through custom CSS to better suit your preferences, for example, like this:

<figure><img src="/files/8ad1b10da3ef81670bb69ea7c1ca0e89847bae9c" alt=""><figcaption><p>custom 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;
}
```

### Built-in variables

```css
:root {
  font-family: "HanYi Tang Beauty" !important; /* Font */
}

/* Deep thinking expanded font color */
.ant-collapse-content-box .markdown {
  color: red;
}

/* Theme variables */
:root {
  --color-black-soft: #2a2b2a; /* Dark background color */
  --color-white-soft: #f8f7f2; /* Light background color */
}

/* Dark theme */
body[theme-mode="dark"] {
  /* Colors */
  --color-background: #2b2b2b; /* Dark background color */
  --color-background-soft: #303030; /* Light background color */
  --color-background-mute: #282c34; /* Neutral background color */
  --navbar-background: var(-–color-black-soft); /* Navbar background color */
  --chat-background: var(–-color-black-soft); /* Chat background color */
  --chat-background-user: #323332; /* User chat background color */
  --chat-background-assistant: #2d2e2d; /* Assistant chat background color */
}

/* Dark theme-specific styles */
body[theme-mode="dark"] {
  #content-container {
    background-color: var(-–chat-background-assistant) !important; /* Content container background color */
  }

  #content-container #messages {
    background-color: var(-–chat-background-assistant); /* Message background color */
  }

  .inputbar-container {
    background-color: #3d3d3a; /* Input box background color */
    border: 1px solid #5e5d5940; /* Input box border color */
    border-radius: 8px; /* Input box border radius */
  }

  /* Code styles */
  code {
    background-color: #e5e5e20d; /* Code background color */
    color: #ea928a; /* Code text color */
  }

  pre code {
    color: #abb2bf; /* Preformatted code text color */
  }
}

/* Light theme */
body[theme-mode="light"] {
  /* Colors */
  --color-white: #ffffff; /* White */
  --color-background: #ebe8e2; /* Light background color */
  --color-background-soft: #cbc7be; /* Light background color */
  --color-background-mute: #e4e1d7; /* Neutral background color  */
  --navbar-background: var(-–color-white-soft); /* Navbar background color */
  --chat-background: var(-–color-white-soft); /* Chat background color */
  --chat-background-user: #f8f7f2; /* User chat background color */
  --chat-background-assistant: #f6f4ec; /* Assistant chat background color */
}

/* Light theme-specific styles */
body[theme-mode="light"] {
  #content-container {
    background-color: var(-–chat-background-assistant) !important; /* Content container background color */
  }

  #content-container #messages {
    background-color: var(-–chat-background-assistant); /* Message background color */
  }

  .inputbar-container {
    background-color: #ffffff; /* Input box background color */
    border: 1px solid #87867f40; /* Input box border color */
    border-radius: 8px; /* Input box border radius, change it to the size you like */
  }

  /* Code styles */
  code {
    background-color: #3d39290d; /* Code background color */
    color: #7c1b13; /* Code text color */
  }

  pre code {
    color: #000000; /* Preformatted code text color */
  }
}
```

For more theme variables, please refer to the source code:<https://github.com/CherryHQ/cherry-studio/tree/main/src/renderer/src/assets/styles>

### Related recommendations

Cherry Studio theme library: <https://github.com/boilcy/cherrycss>

Sharing some Chinese-style Cherry Studio theme skins: <https://linux.do/t/topic/325119/129>

***

### 💡 Get help and submit feedback

If you encounter any questions, bugs, or have suggestions for feature improvements during configuration or use, please refer to [Feedback and Suggestions](/docs/en-us/question-contact/suggestions.md) the official channels provided there.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.cherryai.com.cn/docs/en-us/pre-basic/personalization-settings/custom-css.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
