levity

background

other colors

sun picker (temporary)

## sunset slider A fancy light/dark mode switcher that simulates a sunset.
### context When I started this website in early 2024, I was about to move out of my much-loved apartment and into an uncertain future. Establishing this home base on the web – such as it is – was largely an effort to cultivate a stable sense of place during a time of transition and rootlessness. My favorite things about that apartment were the access road behind the neighborhood which led to a small park – the only place I've been able to maintain a running habit – and the west-facing sliding glass doors in my office bedroom, both of which offered excellent views of the evening sky.
### how it works The code for the slider lives in [/script/sunset.js](/script/sunset.js). The entrypoint, `attachSlider`, is imported into our main script file, [script.js](/script/script.js), which is loaded on almost every page (it's part of the [page template](/template)). Among a few other things, `script.js` calls `attachSlider` to append the slider to the page's (first) `header` element, if there is one, after the .