Skip to content

Commit

Permalink
docs: add color scheme config to doc config file (#25)
Browse files Browse the repository at this point in the history
# Overview

I add color scheme config to docusaurus.config.js
[bf7e854](bf7e854)

Using user system preferences, instead of the hardcoded
([referece](https://docusaurus.io/docs/api/themes/configuration#respectPrefersColorScheme))

## Screenshot


https://github.com/jsxcss/react/assets/57122180/52cf88fe-1b00-4574-aeac-379e53b1d691


## PR Checklist

- [x] I have written documents and tests, if needed.
  • Loading branch information
minsoo-web committed Jun 6, 2023
1 parent 4cd933a commit 485ac53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion websites/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {},
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
title: 'JSXCSS',
logo: {
Expand Down

2 comments on commit 485ac53

@vercel
Copy link

@vercel vercel bot commented on 485ac53 Jun 6, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

emotion – ./websites/emotion

emotion-jsxcss.vercel.app
emotion-git-main-jsxcss.vercel.app
emotion.jsxcss.org

@vercel
Copy link

@vercel vercel bot commented on 485ac53 Jun 6, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

docs – ./websites/docs

docs-git-main-jsxcss.vercel.app
docs.jsxcss.org
docs-jsxcss.vercel.app
jsxcss.org
www.jsxcss.org

Please sign in to comment.