mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 03:58:49 +02:00
* fix(v2): dynamic dark mode detection without toggle widget * Update packages/docusaurus-theme-classic/src/theme/hooks/useTheme.ts Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
babel.config.js | ||
package.json | ||
README.md | ||
tsconfig.json |
Docusaurus Theme Classic
The classic theme for Docusaurus.
Installation
Add docusaurus/theme-classic
to your package:
npm i @docusaurus/theme-classic
# or
yarn add @docusaurus/theme-classic
Modify your docusaurus.config.js
:
module.exports = {
...
+ themes: ['@docusaurus/theme-classic'],
...
}
Swizzling components
$ npm swizzle @docusaurus/theme-classic [component name]
All components used by this theme can be found here