Skip to content

Commit

Permalink
❄️ snow (#254)
Browse files Browse the repository at this point in the history
* it's snowing!

* bump version.
  • Loading branch information
bradgarropy authored Dec 8, 2021
1 parent c9e10dc commit 52316ee
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 40 deletions.
12 changes: 12 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,18 @@ const config = {
sampleRate: 0.7,
},
},
{
resolve: "@raae/gatsby-plugin-let-it-snow",
options: {
colors: ["--snow"],
duration: 86400,
intensity: "regular",
season: {
start: new Date("December 1"),
end: new Date("January 1"),
},
},
},
],
}

Expand Down
77 changes: 38 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bradgarropy.com",
"version": "4.4.1",
"version": "4.5.0",
"description": "🏠 my home on the web",
"keywords": [
"javascript",
Expand Down Expand Up @@ -49,6 +49,7 @@
"@fortawesome/free-brands-svg-icons": "^5.15.4",
"@fortawesome/free-solid-svg-icons": "^5.15.4",
"@fortawesome/react-fontawesome": "^0.1.16",
"@raae/gatsby-plugin-let-it-snow": "^0.6.0",
"@sentry/gatsby": "^6.14.3",
"classnames": "^2.3.1",
"dotenv": "^10.0.0",
Expand Down
5 changes: 5 additions & 0 deletions src/components/ColorTheme/ColorTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ const ColorTheme: FC = () => {
"--text",
theme === "light" ? "var(--black)" : "var(--white)",
)

root.style.setProperty(
"--snow",
theme === "light" ? "var(--darkGrey)" : "var(--white)",
)
}, [theme])

const onClick = () => {
Expand Down
1 change: 1 addition & 0 deletions src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
--primary: var(--purple);
--text: var(--black);
--background: var(--white);
--snow: var(--grey);

/* highlighting */
--grvsc-line-highlighted-background-color: #c792ea66;
Expand Down

0 comments on commit 52316ee

Please sign in to comment.