A Hugo theme for Erynwells.me that incorporates some terminal aesthetics
Find a file
Eryn Wells 8a00cc6de9 Colors: Allow setting the color scheme explicitly
In addition to the color scheme changing based on the system setting, enable
setting the color scheme explicitly by adding a color-scheme="light | dark" attribute
on the <html> element.

Doing this was a bit tricky. I originally implemented the grayscale ramp by
reversing it when prefers-color-scheme: dark. This was convenient, but meant that
setting the color scheme explicitly didn't work.

Along the way I discovered the light-dark() CSS function. Deploy that as the preferred
style if the browser supports it. Otherwise, fall back on the prefers-color-scheme
media queries. This function only works if color-scheme: light dark is set on the
:root element.
2024-07-27 23:01:31 -07:00
assets/css Colors: Allow setting the color scheme explicitly 2024-07-27 23:01:31 -07:00
i18n Add a table of contents to the single template 2024-07-23 08:57:21 -07:00
layouts Headings: Move the anchor # 2024-07-27 09:30:03 -07:00
go.mod Add go.mod 2024-06-06 14:52:56 -07:00
hugo.yaml hugo.yaml: Remove markup section 2024-07-03 07:41:23 -07:00
LICENSE
README.md Add README.md 2024-06-06 14:51:03 -07:00
theme.yaml Convert toml hugo and theme files to yaml 2024-06-28 08:58:33 -07:00

Design System for Erynwells.me

Features

Installation

Configuration