Skip to content

Commit c646359

Browse files
Update settings.mdx
1 parent ca15642 commit c646359

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

settings.mdx

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,35 @@ See [Themes](themes) for more information.
127127
<ResponseField name="eyebrows" type="&quot;section&quot; | &quot;breadcrumbs&quot;">
128128
The style of the page eyebrow. Choose `section` to show the section name or `breadcrumbs` to show the full navigation path. Defaults to `section`.
129129
</ResponseField>
130-
<ResponseField name="codeblocks" type="&quot;system&quot; | &quot;dark&quot;">
131-
The theme of the code blocks. Choose `system` to match the site theme or `dark` for always dark code blocks. Defaults to `system`.
130+
<ResponseField name="codeblocks" type="&quot;system&quot; | &quot;dark&quot; | string | object">
131+
The theme of the code blocks. You can use simple themes, specific theme names, or separate themes for light and dark modes.
132+
133+
**Simple options:**
134+
- `"system"`: Match the site theme (default)
135+
- `"dark"`: Always use dark code blocks
136+
137+
**Theme name:**
138+
Use any [Shiki theme](https://shiki.style/themes) name as a string:
139+
```json
140+
"styling": {
141+
"codeblocks": {
142+
"theme": "dracula"
143+
}
144+
}
145+
```
146+
147+
**Separate light/dark themes:**
148+
Configure different themes for light and dark modes:
149+
```json
150+
"styling": {
151+
"codeblocks": {
152+
"themes": {
153+
"light": "github-light",
154+
"dark": "github-dark"
155+
}
156+
}
157+
}
158+
```
132159
</ResponseField>
133160
</Expandable>
134161
</ResponseField>

0 commit comments

Comments
 (0)