Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(v2): refactor color mode system #3012

Merged
merged 11 commits into from
Jun 30, 2020
Merged

fix(v2): refactor color mode system #3012

merged 11 commits into from
Jun 30, 2020

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jun 29, 2020

Motivation

Some things impossible with current api:

  • disable the toggle, but use the dark mode by default
  • disable the toggle, and respect the user preferred color
  • force default light theme, ignoring the user preferred color
  • set dark theme by default, but respect the user preference to light if set

Breaking change to classic theme config to support all possible scenarios

Superseed #2939 (as I now work on a branch of the main repo)

Doc

image

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 29, 2020
@slorber slorber added pr: breaking change Existing sites may not build successfully in the new version. Description contains more details. pr: bug fix This PR fixes a bug in a past release. and removed CLA Signed Signed Facebook CLA labels Jun 29, 2020
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit f3eb4d3

https://deploy-preview-3012--docusaurus-2.netlify.app

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-2 ready!

Built with commit 534df68

https://deploy-preview-3012--docusaurus-2.netlify.app

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Jun 29, 2020

Deploy preview for docusaurus-2 ready!

Built with commit c352eef

https://deploy-preview-3012--docusaurus-2.netlify.app

@isaacito
Copy link

Would love to have this!

website/docs/theme-classic.md Outdated Show resolved Hide resolved
@slorber slorber merged commit c2bb03a into master Jun 30, 2020
@yangshun yangshun deleted the fix-color-mode branch June 30, 2020 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: breaking change Existing sites may not build successfully in the new version. Description contains more details. pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants