1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-14 23:00:49 -05:00

restore YAML frontmatter

This commit is contained in:
2025-03-16 15:35:01 -04:00
parent 99ec01de0a
commit 2b4a86a900
27 changed files with 385 additions and 193 deletions

View File

@@ -1,9 +1,17 @@
export const frontmatter = {
title: "How To: Add Dark Mode to a Website 🌓",
date: "2021-10-15 08:56:33-0400",
description: "Simple dark mode switching using local storage, OS preference detection, and minimal JavaScript.",
tags: ["JavaScript", "NPM", "CSS", "Dark Mode", "How To", "Tutorial"],
};
---
title: "How To: Add Dark Mode to a Website \U0001F313"
date: "2021-10-15 08:56:33-0400"
description: >-
Simple dark mode switching using local storage, OS preference detection, and
minimal JavaScript.
tags:
- JavaScript
- NPM
- CSS
- Dark Mode
- How To
- Tutorial
---
Love it or hate it, it seems that the [dark mode fad](https://en.wikipedia.org/wiki/Light-on-dark_color_scheme) is here to stay, especially now that more and more devices have [OLED screens](https://www.macrumors.com/2019/10/21/ios-13-dark-mode-extends-iphone-battery-life/) that display true blacks... which means that these trendsetters might go blind from your site's insanely white background if you're behind the curve and don't offer your own dark mode.