@t2ca/gatsby-theme-showcase 1.0.39 → 1.0.41

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -5,6 +5,7 @@ import { jsx, Container, Box } from "theme-ui"
5
5
  import Img from "gatsby-image"
6
6
  import NavLink from "./nav-link"
7
7
  import ColorModeToggle from "./color-mode-toggle"
8
+ import { useColorMode } from "theme-ui"
8
9
 
9
10
  const Burger = () => (
10
11
  <svg
@@ -29,8 +30,11 @@ export default ({
29
30
  nav,
30
31
  menuList,
31
32
  desktopLogo,
33
+ desktopLogoWhite,
32
34
  mobileLogo,
33
35
  }) => {
36
+ const [colorMode, setColorMode] = useColorMode()
37
+ const isDark = colorMode === `dark`
34
38
  return (
35
39
  <Box
36
40
  p={4}
@@ -75,9 +79,9 @@ export default ({
75
79
  <Burger />
76
80
  )}
77
81
  <Link to="/" sx={{ color: "inherit", textDecoration: "none" }}>
78
- <div sx={{ display: ["none", "inherit"] }}>
82
+ <div sx={{ display: ["none", "inherit"], pt: "4px" }}>
79
83
  <Img
80
- fixed={desktopLogo}
84
+ fixed={isDark ? desktopLogoWhite : desktopLogo}
81
85
  sx={{
82
86
  verticalAlign: ["bottom", "text-bottom"],
83
87
  }}