File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed
Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,35 @@ See [Themes](themes) for more information.
127127 <ResponseField name = " eyebrows" type = " " section" | " breadcrumbs" " >
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 = " " system" | " dark" " >
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 = " " system" | " dark" | 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 >
You can’t perform that action at this time.
0 commit comments