@t2ca/gatsby-theme-showcase 1.0.112 → 1.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -91,14 +91,16 @@ const ColorModeToggle = () => {
|
|
|
91
91
|
const { theme, colorMode, setColorMode } = context
|
|
92
92
|
const isDark = colorMode === `dark`
|
|
93
93
|
|
|
94
|
-
const toggleColorMode = (e) => {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
94
|
+
// const toggleColorMode = (e) => {
|
|
95
|
+
// e.preventDefault()
|
|
96
|
+
// setColorMode(isDark ? `light` : `dark`)
|
|
97
|
+
// }
|
|
98
98
|
|
|
99
99
|
return (
|
|
100
100
|
<IconWrapper
|
|
101
|
-
onClick={
|
|
101
|
+
onClick={(e) => {
|
|
102
|
+
setColorMode(colorMode === "default" ? "dark" : "default")
|
|
103
|
+
}}
|
|
102
104
|
aria-label={isDark ? `Activate light mode` : `Activate dark mode`}
|
|
103
105
|
title={isDark ? `Activate light mode` : `Activate dark mode`}
|
|
104
106
|
>
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
mBg: `#f8f9fa`,
|
|
6
6
|
cBg: `#ffffff`,
|
|
7
7
|
sBg: `#e2e8f0`,
|
|
8
|
-
MoonMask:
|
|
8
|
+
MoonMask: `#ffffff`,
|
|
9
9
|
Menu: `#ffffff`,
|
|
10
10
|
MenuBorder: `rgb(212, 212, 213)`,
|
|
11
11
|
MainHero: `white`,
|
|
@@ -20,7 +20,6 @@ export default {
|
|
|
20
20
|
mBg: `#333333`,
|
|
21
21
|
cBg: `#333333`,
|
|
22
22
|
sBg: `#333333`,
|
|
23
|
-
MoonMask: `black`,
|
|
24
23
|
Menu: `#1b1c1d`,
|
|
25
24
|
MenuBorder: `#1b1c1d`,
|
|
26
25
|
primary: theme.colors.pink[3],
|