From 48f3534fade8ecf107b5d797d2ddcc30520e798f Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Mon, 27 May 2024 13:58:13 -0400 Subject: themes/hugo-pt2021: add dark mode --- themes/hugo-pt2021/assets/dark.sass | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 themes/hugo-pt2021/assets/dark.sass (limited to 'themes/hugo-pt2021/assets/dark.sass') diff --git a/themes/hugo-pt2021/assets/dark.sass b/themes/hugo-pt2021/assets/dark.sass new file mode 100644 index 0000000..16660dd --- /dev/null +++ b/themes/hugo-pt2021/assets/dark.sass @@ -0,0 +1,42 @@ +// disabled for now; breaks light mode +// +// @media (prefers-color-scheme: dark) +// html +// background: #222 +// color: #eee +// body +// background: #222 +// color: #eee +// html.light, html.light body +// background: #fff +// color: #fff + +html.dark + background: #222 + color: #eee + + body + background: #222 + color: #eee + + h1, h2, h3, h4, h5, h1.title, h2.title, h4.title, h5.title, figcaption, + strong + color: #eee + + h3.subtitle + color: #ccc + + .content + .title, h3, .subtitle, h4 + color: #ddd + + code, blockquote + color: #ddd + background: #333 + + // keep original table color for now + table strong + color: black + + a, a:hover + color: #0ae -- cgit v1.2.3