I have decided to participate in CSS Naked Day this year. I had heard of it before but hadn’t put in the effort to do it. The premise is to remove all CSS from a website to show what the plain HTML of the site can do. Since I’ve worked to ensure my site works in CLI browsers and also fall back well in GUI browsers and really old browsers, I’m pleased with how it looks.
I’m using some JavaScript that turns off stylesheets using my theme switch script. This makes for a fairly small added amount of data transfer for the feature (like 72 bytes minzipped). The added code can be seen in this commit. JS is the only way to do CSS Naked Day on a static site, unless I do a separate deploy just for that day and then revert. It also has the advantage that while the “day” is much longer than 24 hours because it applies to every time zone in the world, this can be applied based on the local date.
Now that it’s built into the site’s code, it should happen automatically as long as my site is live.