You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-en.md
+68Lines changed: 68 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,74 @@ For detailed configuration instructions, see: [docs/notify_en.md](docs/notify_en
141
141
142
142
No. Deep Code has a built-in fine-grained permission control mechanism that lets you confirm operations before the AI assistant executes shell commands, reads/writes files, accesses the network, and more. You can configure each permission scope's policy — always allow, always ask, or deny — via the `permissions` field in `settings.json`. See [docs/permission.md](docs/permission.md) for details.
143
143
144
+
### How do I customize the theme?
145
+
146
+
Deep Code CLI includes a built-in default theme (`DEFAULT_THEME`) that works out of the box. To customize colors, set `theme.preset` to `"custom"` in `settings.json` and provide `overrides` or `tokens`.
147
+
148
+
**Using the default theme (no config required)**
149
+
150
+
No settings needed — the built-in theme is used automatically.
Override only the colors you want to change; the rest keep their defaults:
155
+
156
+
```json
157
+
{
158
+
"theme": {
159
+
"preset": "custom",
160
+
"overrides": {
161
+
"accent": "#ff6600",
162
+
"success": "greenBright"
163
+
}
164
+
}
165
+
}
166
+
```
167
+
168
+
**Option 2: Full customization (preset="custom" + tokens)**
169
+
170
+
Provide a complete tokens object, merged on top of the default theme:
171
+
172
+
```json
173
+
{
174
+
"theme": {
175
+
"preset": "custom",
176
+
"tokens": {
177
+
"accent": "#229ac3",
178
+
"accentAlpha": "#229ac3e6",
179
+
"active": "cyanBright",
180
+
"success": "green",
181
+
"error": "red",
182
+
"warning": "yellow",
183
+
"info": "magenta",
184
+
"riskLow": "#22c55e",
185
+
"riskMedium": "#f59e0b",
186
+
"riskHigh": "#ef4444",
187
+
"text": "white",
188
+
"textDim": "gray",
189
+
"code": "cyan",
190
+
"border": "gray",
191
+
"thinking": "gray",
192
+
"gradients": ["#229ac3e6", "#229ac3e6"]
193
+
}
194
+
}
195
+
}
196
+
```
197
+
198
+
> Note: `overrides` and `tokens` only take effect when `preset` is set to `"custom"`. When `preset` is `"default"` or unset, the built-in default theme is always used.
199
+
200
+
Available token descriptions:
201
+
202
+
| Token | Used For |
203
+
|-------|----------|
204
+
|`accent`, `accentAlpha`, `active`| Logo, user messages, selected items, etc. |
205
+
|`success`, `error`, `warning`, `info`| Tool statuses, permission prompts, skill loading; `warning` also colors list bullets |
0 commit comments