bits 0x45 - Calender Week 11, 2024

Default to light mode

I do my best to make my site as “flat” as possible so that any client-side modification could opt-in without any issue. There are people who can’t read white on black as well as those who can’t read white on black. Some people need extra big fonts and some people need screen reader. Anyways the “hacker aesthetics” should not get in the way.

I used a dark theme as default because it reads better for my eyes. I never bothered to try to invert the theme to the light mode because I thought it would be trivial given how “plaintext” my site is. However I just learned that (e.g. with the plugin “dark reader”) making a dark site light is not as easy as making a light site dark.

I wanted to have a “switch theme” button but it would break my promise of not using javascript. And even if I used javascript, it still requires a overhaul of the stylesheet, e.g. making every color a “variable”. There was an alternative: I prepare two stylesheets, one for light mode and one for dark mode. The javascript button simply switches between the two stylesheets. However when you replace the href field of the stylesheet link to another theme, the browser is too lazy to re-render the page to reflect the changes and I still haven’t succeeded with this approach.

So, fuck it, I’ll just default to the light theme, the stylesheet should define no more color than necessary1. I’d like to repeat (perhaps too radical) the WebUI sanity guideline:

“looks good/cool/easy to read” is subjective. Ship no more than the content. Let the readers decide how they want to read it.

Moving to aerc, maybe?

It took me a while to get adapted to neomutt, and it has been great. But still it’s a pain to configure it…. aerc is an promising alternative that has vim-binding builtin and the configuration is straight-forward.

There is one bump though… Let’s see how it goes..

UPDATE: I fixed it in the ugly way…. Or should I say, gnupg did it the ugly way? Ugly problems demand ugly solutions!

(or perhaps I can learn Go and fix it myself?)

Good Reads

Fun with Timers and cpuid by Jim Cownie https://cpufun.substack.com/p/fun-with-timers-and-cpuid


  1. a background color (because still want something softer than plain #ffffff), an alt background color for block quotes, and one or two accent colors for e.g. the menu. Other colors, such as text and links, are all html-default. ↩︎

edited 21.03.2024
created 14.03.2024
EOF
[+] click to leave a comment [+]
the comment system on this blog works via email. The button
below will generate a mailto: link based on this page's url 
and invoke your email client - please edit the comment there!

[optional] even better, encrypt the email with my public key

- don't modify the subject field
- specify a nickname, otherwise your comment will be shown as   
  anonymous
- your email address will not be disclosed
- you agree that the comment is to be made public.
- to take down a comment, send the request via email.

>> SEND COMMENT <<

[BITS] - the weekly archive -
bits 0x51 - Calender Week XX, 20XX (WIP)
bits 0x50 - Calender Week 16, 2024
bits 0x49 - Calender Week 15, 2024
bits 0x48 - Calender Week 14, 2024
bits 0x47 - Calender Week 13, 2024
bits 0x46 - Calender Week 12, 2024
bits 0x45 - Calender Week 11, 2024
bits 0x44 - Calender Week 10, 2024
bits 0x43 - Calender Week 09, 2024 [VOID]
bits 0x42 - Calender Week 08, 2024 [VOID AGGREGATE]
bits 0x41 - Calender Week 07, 2024 [VOID]
bits 0x40 - Calender Week 06, 2024 [VOID]
bits 0x39 - Calender Week 05, 2024
bits 0x38 - Calender Week 04, 2024
bits 0x37 - Calender Week 03, 2024
bits 0x36 - Calender Week 02, 2024 [VOID AGGREGATE]
bits 0x35 - Calender Week 01, 2024
bits 0x34 - Calender Week 52, 2023
bits 0x33 - Calender Week 51, 2023
bits 0x32 - Calender Week 50, 2023 [VOID]
bits 0x31 - Calender Week 49, 2023
bits 0x30 - Calender Week 48, 2023
bits 0x2f - Calender Week 47, 2023
bits 0x2e - Calender Week 46, 2023
bits 0x2d - Calender Week 45, 2023
bits 0x2c - Calender Week 44, 2023
bits 0x2b - Calender Week 43, 2023
bits 0x2a - Calender Week 42, 2023