Skip to content

Commit b505623

Browse files
committed
adjust dark mode palette to more pleasing
1 parent f99d582 commit b505623

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

src/index.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ body.dark-mode {
1313
background-color: #1a1919;
1414
}
1515
body.dark-mode a {
16-
color: white !important;
16+
color: #EDEDED !important;
1717
}
1818
body.dark-mode p {
19-
color: white !important;
19+
color: #EDEDED !important;
2020
}
2121
body.dark-mode * {
22-
background-color: #1a1919;
23-
color: white !important;
22+
background-color: #171717;
23+
color: #EDEDED !important;
2424
}
2525
body.dark-mode .sidebar {
2626
background-color: #1a1919 !important;

src/modules/core/components/DarkModeToggle.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from 'react';
1+
import React from "react";
22

3-
import useDarkMode from 'use-dark-mode';
4-
import { Moon, Sun } from '../icons';
3+
import useDarkMode from "use-dark-mode";
4+
import { Moon, Sun } from "../icons";
55

66
function DarkModeToggle() {
77
const darkMode = useDarkMode(false);
@@ -11,7 +11,11 @@ function DarkModeToggle() {
1111
<div className="dark-mode-toggle">
1212
<button
1313
style={{
14-
padding: '3px', border: value ? '2px solid white' : '2px solid black', width: '35px', height: '35px', top: '3px',
14+
padding: "3px",
15+
border: value ? "2px solid white" : "2px solid black",
16+
width: "35px",
17+
height: "35px",
18+
top: "3px",
1519
}}
1620
type="button"
1721
onClick={darkMode.toggle}

0 commit comments

Comments
 (0)