Skip to content

Conversation

@xoyseau
Copy link
Contributor

@xoyseau xoyseau commented Oct 14, 2024

These are the changes to the Docusaurus theme config so that it prefers the user's system color scheme instead of just defaulting to the light one.

I left the light mode as the default for cases when system preferences are unavailable, to be consistent in this regard with the official react.dev documentation (see this line of code) and the official React Native documentation (facebook/react-native-website#4262).

Copy link
Owner

@gorhom gorhom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for submitting this PR, i left one comment to address

image: 'img/preview.gif',

colorMode: {
defaultMode: 'light',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we set it to dark

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure can do

@xoyseau xoyseau requested a review from gorhom October 15, 2024 20:50
@gorhom gorhom merged commit 0bb284b into gorhom:master Oct 19, 2024
@xoyseau xoyseau deleted the feat/respect-users-preferred-color-scheme branch October 19, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants