Custom CSS
This document was translated from Chinese by AI and has not yet been reviewed.
Custom CSS
By customizing CSS, you can modify the software's appearance to better suit your preferences, like this:

: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
:root {
font-family: "汉仪唐美人" !important; /* Font */
}
/* Color of expanded deep thinking text */
.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); /* Navigation bar background */
--chat-background: var(–-color-black-soft); /* Chat background */
--chat-background-user: #323332; /* User chat background */
--chat-background-assistant: #2d2e2d; /* Assistant chat background */
}
/* Dark theme specific styles */
body[theme-mode="dark"] {
#content-container {
background-color: var(-–chat-background-assistant) !important; /* Content container background */
}
#content-container #messages {
background-color: var(-–chat-background-assistant); /* Messages background */
}
.inputbar-container {
background-color: #3d3d3a; /* Input bar background */
border: 1px solid #5e5d5940; /* Input bar border color */
border-radius: 8px; /* Input bar border radius */
}
/* Code styles */
code {
background-color: #e5e5e20d; /* Code background */
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-background-soft: #cbc7be; /* Light background */
--color-background-mute: #e4e1d7; /* Neutral background */
--navbar-background: var(-–color-white-soft); /* Navigation bar background */
--chat-background: var(-–color-white-soft); /* Chat background */
--chat-background-user: #f8f7f2; /* User chat background */
--chat-background-assistant: #f6f4ec; /* Assistant chat background */
}
/* Light theme specific styles */
body[theme-mode="light"] {
#content-container {
background-color: var(-–chat-background-assistant) !important; /* Content container background */
}
#content-container #messages {
background-color: var(-–chat-background-assistant); /* Messages background */
}
.inputbar-container {
background-color: #ffffff; /* Input bar background */
border: 1px solid #87867f40; /* Input bar border color */
border-radius: 8px; /* Input bar border radius */
}
/* Code styles */
code {
background-color: #3d39290d; /* Code background */
color: #7c1b13; /* Code text color */
}
pre code {
color: #000000; /* Preformatted code text color */
}
}
For more theme variables, 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
最后更新于
这有帮助吗?