☀️🌝 Fixes default color mode

This commit is contained in:
Alicia Sykes 2021-08-30 20:15:31 +01:00
parent 895f8b9780
commit c792b3246e

View File

@ -1,5 +1,5 @@
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula'); const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require('prism-react-renderer/themes/github');
/* External URLs */ /* External URLs */
const externalUrl = { const externalUrl = {
@ -26,10 +26,12 @@ module.exports = {
projectName: 'dashy', // Usually your repo name. projectName: 'dashy', // Usually your repo name.
plugins: ['docusaurus-plugin-sass'], plugins: ['docusaurus-plugin-sass'],
themeConfig: { themeConfig: {
defaultMode: 'dark', colorMode: {
switchConfig: { defaultMode: 'dark',
darkIcon: '🌙', switchConfig: {
lightIcon: '☀️', darkIcon: '🌙',
lightIcon: '☀️',
},
}, },
navbar: { navbar: {
title: 'Dashy', title: 'Dashy',
@ -38,7 +40,10 @@ module.exports = {
src: 'img/dashy.png', src: 'img/dashy.png',
}, },
items: [ items: [
{ label: 'GitHub', to: 'https://github.com/lissy93/dashy' },
{ label: 'Live Demo', to: 'https://demo.dashy.to' },
{ label: 'Quick Start', to: '/docs/quick-start' },
{ label: 'Documentation', to: '/docs' },
], ],
}, },
footer: { footer: {