Back to Docusaurus

📦 theme-classic

website/versioned_docs/version-3.2.1/api/themes/theme-classic.mdx

3.10.11.2 KB
Original Source

📦 theme-classic

import APITable from '@site/src/components/APITable';

The classic theme for Docusaurus.

You can refer to the theme configuration page for more details on the configuration.

bash
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

Accepted fields:

mdx-code-block
<APITable>
OptionTypeDefaultDescription
customCss<code>string[] | string</code>[]Stylesheets to be imported globally as 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.

:::

Example configuration

You can configure this theme through preset options or plugin options.

:::tip

Most Docusaurus users configure this plugin through the preset options.

:::

js
// Preset Options: theme
// Plugin Options: @docusaurus/theme-classic

const config = {
  customCss: './src/css/custom.css',
};