commit
9011e995f237f0e7e4a6fe0c3ac09b2bcfc07e27
Author:
Dan Ott <danott@users.noreply.github.com>
Date:
Wed Jan 17 23:19:45 2024 -0500
Reply:
GitHub
Home:
allow-empty
Next:
66a88ef927379c3a98c8b697a753480d23f60f71
Prev:
1efe0d694c11068c5df483695388bae45319baf1

Make the HTML representation beautiful

git log --pretty is pretty in the console. I want this git log as blog to be pretty in the browser.

I dusted off my old CSS chops and made it look the way I wanted to. There is support for light mode and dark mode.

Finding a blessed list of solarized colors is more difficult than initially imagined. I ended up in the solarized-css project, looking at a .styl file. I think this is sass?

Some regex-foo in VSCode translated the assumed-sass declarations into CSS custom properties. I’m not using the majority of them. But I decided to keep the translation in the source code in case I ever need to generate them again.

I ended up reaching for ERB to make sense of my rendering. String interpolation can get you so far. But sometimes the mental model is worth the reach for complexity.