docusaurus/packages/docusaurus-theme-classic
Drew Alexander 53b28d2bb2
feat(v2): dark mode toggle customization (#3127)
* Add dark/light style fields to config

* Update yarn.lock

* Remove css content

* Add documentation

* Add icon fields to toggle component

* Add config validation fields

* Remove changes from docusaurus.config

* Add unicode documentation example

* Fix default values

* Add color mode config default

* Add lodash to theme-classic

* Change themeConfigSchema name to match other packages

* Add themeConfig color-mode tests

* Add default config merge function

* Remove unneeded object merging

* Add more documentation
2020-07-31 15:39:12 +02:00
..
src feat(v2): dark mode toggle customization (#3127) 2020-07-31 15:39:12 +02:00
README.md docs(v2) themes (#1645) 2019-07-26 12:00:40 +07:00
babel.config.js feat(v2): Support swizzling TypeScript components (#2671) 2020-06-25 16:07:30 +02:00
package.json feat(v2): dark mode toggle customization (#3127) 2020-07-31 15:39:12 +02:00
tsconfig.json feat(v2): Support swizzling TypeScript components (#2671) 2020-06-25 16:07:30 +02:00

README.md

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