Skip to content

Commit 011aee4

Browse files
author
Neelanjan Manna
authored
Functionality for Dark-Mode in Litmus Docs 2.0 (#131)
* enabled dark-mode for litmus-docs Signed-off-by: neelanjan00 <[email protected]>
1 parent 804ea3a commit 011aee4

File tree

4 files changed

+8
-26
lines changed

4 files changed

+8
-26
lines changed

website/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ module.exports = {
126126

127127
// Hides the switch in the navbar
128128
// Useful if you want to support a single color mode
129-
disableSwitch: true,
129+
disableSwitch: false,
130130

131131
// Should we use the prefers-color-scheme media-query,
132132
// using user system preferences, instead of the hardcoded defaultMode
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react'
22
import '../../css/sections.css'
33

4-
const SectionLight = ({ children }) => <div className="sectionLight">{children}</div>
4+
const SectionLight = ({ children }) => <div className="homeSection">{children}</div>
55

6-
const SectionDark = ({ children }) => <div className="sectionDark">{children}</div>
6+
const SectionDark = ({ children }) => <div className="homeSection">{children}</div>
77

8-
export { SectionLight, SectionDark }
8+
export { SectionLight, SectionDark }

website/src/css/global.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ html {
77
body {
88
margin: 0;
99
padding: 0;
10-
background: #f4f5f7;
1110
font-size: 1.05rem;
1211
}
1312

website/src/css/sections.css

Lines changed: 4 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)