Contribute updates to Primitive UI

Completed

Background

Primitive UI is a CSS framework that was developed by Tania Rascia. I forget how I discovered it, but I started using it a few years ago and it’s been my favorite to work in. This site uses it, most of the other sites I run, and have built, use it as a foundational basis.

I like it because it’s slightly more complex than a CSS Reset framework – that is, it gives you a solid basis of styles that look aesthetically basic but not unadorned. I prefer to write my own CSS for each project, but this covers a lot of the boilerplate.

I have previously written about Dark Mode as an accessibility measure. Over the years of using Primitive UI, I have added dark-mode support pretty consistently, and I felt that this could be made generic and make it easier for users to employ dark-mode in their websites using the modern light-dark() function, now natively supported by all modern browsers.

Additionally it turns out there were some dependencies to update, and a couple bugs to fix as well.

Overview

The goal here is to get a Pull Request (PR) submitted and, ideally, accepted and merged into the main codebase. I can’t control the latter part of that, but if I can at least get the PR in, I think that’s a victory.

The work specifically is:

Comparatively, this is a smaller Work, but it was a substantial amount of effort that I did put time and energy into over a long period of time, so it feels like it fits.

Updates