/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/docs/api/themes/theme-classic.mdx
63 строки
1 KB
Sébastien Lorber
chore(website): migrate MDX heading ids to comment syntax + upgrade Crowdin parser version (#11779)
06 мар 2026, 23:48
Не верифицирован
06 мар 2026, 23:48
caff1c4
Код
Авторство
О чём код?
--- sidebar_position: 2 slug: /api/themes/@docusaurus/theme-classic --- # 📦 theme-classic import APITable from '@site/src/components/APITable'; The classic theme for Docusaurus. You can refer to the [theme configuration page](theme-configuration.mdx) for more details on the configuration. ```bash npm2yarn npm install --save @docusaurus/theme-classic ``` :::tip If you have installed `@docusaurus/preset-classic`, you don't need to install it as a dependency. ::: ## Configuration {/* #configuration */} Accepted fields: ```mdx-code-block <APITable> ``` | Option | Type | Default | Description | | --- | --- | --- | --- | | `customCss` | <code>string[] \| string</code> | `[]` | Stylesheets to be imported globally as [client modules](../../advanced/client.mdx#client-modules). Relative paths are resolved against the site directory. | ```mdx-code-block </APITable> ``` :::note Most configuration for the theme is done in `themeConfig`, which can be found in [theme configuration](./theme-configuration.mdx). ::: ### Example configuration {/* #ex-config */} You can configure this theme through preset options or plugin options. :::tip Most Docusaurus users configure this plugin through the preset options. ::: ```js config-tabs // Preset Options: theme // Plugin Options: @docusaurus/theme-classic const config = { customCss: './src/css/custom.css', }; ```