# Custom CSS

You can modify the software’s appearance through custom CSS to better match 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 Meiren" !important; /* font */
}

/* Font color for the expanded deep-thinking section */
.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 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>

Share some Chinese-style Cherry Studio theme skins: <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/en-us/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.
