Commit graph

9 commits

Author SHA1 Message Date
1cc6ff0e78 Colors: Finish off converting all the colors 2024-08-02 16:09:11 -07:00
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
cb8ad426d5 Headings: Move the anchor #
Draw only one hash for headings, and place them in the gutter in wide layouts,
or trailing the heading text in narrow layouts. Do this with grid in the wide
version, and flexbox in the narrow layout.

Add a --text-color-light CSS variable for content that should be lighter than
--text-color-secondary.
2024-07-27 09:30:03 -07:00
737ec20e3c Meta: Remove all the block comments at the top of CSS assets 2024-07-25 13:11:40 -07:00
b1e71c41b8 Clean up the basic color variables 2024-07-23 09:08:30 -07:00
293f0ba957 Improve formatting of code highlighting styles 2024-07-23 08:43:41 -07:00
32b04bc184 Replace bespoke codeblock theme with Dracula theme
https://draculatheme.com
2024-07-03 07:30:39 -07:00
16536744ee Bring over the gradient from erynwells.me as a .text-color--gradient class 2024-06-29 10:28:41 -07:00
4bc1390b3c CSS Checkpoint
- Add the system_css template
- Name the CSS files in the css directory with a numeric prefix so they sort by
  priority.
2024-06-28 09:03:28 -07:00