Legacy Browser Support
[link—standalone]
So I've redesigned my website to be much more minimal, and imo much better looking. It renders perfectly in text based browsers such as Lynx and w3m, however in graphical browsers without modern css support, at least CSS 3 (namely Netsurf, but Dillo as well), the colorscheme isn't correct. My site uses a colors.css file to keep track of the colors, that way I can easily change them whenever I want. However, CSS variables are ig a relatively new standard. Browsers like Netsurf and Dillo don't completely support it yet. So why does this matter? Well, frankly it doesn't. Nobody uses those browsers anyways and there's no need to support browsers that don't support features that most other browsers implemented 5ish years ago. I'm still going to do it though bc yea. I'm just going to write a script that will read the colors.css file and replace all of the var() calls with the corresponding color values, write the changes to a new file that nginx will serve with the website. That way I get the ease of using variables with the compatibility of the old and tedious method of color assignments.
Very cool.