mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-30 09:27:04 +02:00
refactor(theme-classic): replace color mode toggle with button; remove switchConfig (#6771)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
b1492135c2
commit
7ec44bb32c
15 changed files with 282 additions and 356 deletions
|
@ -7,7 +7,6 @@
|
|||
|
||||
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
||||
import type {PrismTheme} from 'prism-react-renderer';
|
||||
import type {CSSProperties} from 'react';
|
||||
import type {DeepPartial} from 'utility-types';
|
||||
|
||||
export type DocsVersionPersistence = 'localStorage' | 'none';
|
||||
|
@ -43,12 +42,6 @@ export type ColorModeConfig = {
|
|||
defaultMode: 'light' | 'dark';
|
||||
disableSwitch: boolean;
|
||||
respectPrefersColorScheme: boolean;
|
||||
switchConfig: {
|
||||
darkIcon: string;
|
||||
darkIconStyle: CSSProperties;
|
||||
lightIcon: string;
|
||||
lightIconStyle: CSSProperties;
|
||||
};
|
||||
};
|
||||
|
||||
export type AnnouncementBarConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue