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
'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
326
326
}),
327
-
customCss: CustomCssSchema,
328
327
colorMode: ColorModeSchema,
329
328
image: Joi.string(),
330
329
docs: DocsSchema,
@@ -442,3 +441,29 @@ export function validateThemeConfig({
If you have installed `@docusaurus/preset-classic`, you don't need to install it as a dependency.
19
19
20
20
:::
21
+
22
+
## Configuration {#configuration}
23
+
24
+
Accepted fields:
25
+
26
+
```mdx-code-block
27
+
<APITable>
28
+
```
29
+
30
+
| Option | Type | Default | Description |
31
+
| --- | --- | --- | --- |
32
+
|`customCss`| <code>string[]\| string</code> |`[]`| Stylesheets to be imported globally as [client modules](../../advanced/client.md#client-modules). Relative paths are resolved against the site directory. |
33
+
34
+
```mdx-code-block
35
+
</APITable>
36
+
```
37
+
38
+
:::note
39
+
40
+
Most configuration for the theme is done in `themeConfig`, which can be found in [theme configuration](./theme-configuration.md).
41
+
42
+
:::
43
+
44
+
### Example configuration {#ex-config}
45
+
46
+
You can configure this theme through preset options or plugin options.
47
+
48
+
:::tip
49
+
50
+
Most Docusaurus users configure this plugin through the preset options.
0 commit comments