Dream Theme

Well, the site’s looking a little different again! What’s that about?

A little while ago, I started working on a new theme for this blog. In all the years I’ve blogged, only one time have I had a bespoke theme, and that was many many years ago and it didn’t even work correctly at the time. I’ve got a vague sense that it was kind of a loud electric blue. I was still using WordPress, and I recall it being an utter ballache to get a custom theme going, what with all the special WordPress functions you had to include.

For someone who wasn’t well up on PHP, or programming in general, it was a lot to get one’s head around.

Since then, I’ve kind of stuck with off-the-shelf themes, often tailored via custom CSS to my requirements. One can only get so far by doing that, and I’ve just lived with the inflexibility for the sake of having a working blog.

But, as I mentioned in my previous post, I was bored at work one day and came across a marvellous site that was styled like a book. Having a graphic design pedigree, and having a thing for printed media, and having found a beautiful font and a very nice paper-like colour scheme to use… it all fell into place! And what you’re looking at is the “finished” result.

Is it finished?

Well, no. I’ve got a minimum viable product out the door, because I have a habit of endlessly tweaking things to the extent that I never ever feel they’re finished enough to release. This, while I’m keen for it to look nice and be practical, was never going to see the light of day if I didn’t agree with myself on something I was comfortable releasing.

The blog listing page is quite crummy. I have some better ideas for what to do with it, but for now it… works? It doesn’t look incredible but it works.

If you go to a post with comments below it, you’ll find that those (and the comment section itself) are a bit barbaric, too. I haven’t got any code specific to the comments section, so that’s why they look like someone just farted out a form at the bottom of my page.

I built this in snatches of time between housework and baby-ing, so there are probably a bunch of other things I haven’t done or even considered!

How was it made?

HTML and CSS! (And PHP, because it’s WordPress innit.) It even uses a lot of advanced techniques – for example, did you know that you can do light and dark themes entirely within CSS? I didn’t, and it’s brilliant for accessibility! And the best bit is, it uses whatever your (yes, your) browser or OS dark mode preference is set to. In light mode, you get a delightful warm palette; in dark mode, you get a cool greenish site.

I started with _s, a special theme which gives you the absolute basics and invites you to hack away at it until you’ve got something a bit more personal. It takes the headache out of creating a WordPress theme, because all the bits I’ve got stuck on previously are already done for me!

The colour scheme is called Flexoki, and is designed to look like ink on paper. It’s really cool and I’ve wanted to use it in a project for years.

The header font comes from Google Fonts. I think it’s called Montagu Slab? Tempted to change it for something else but it’s okay for now.

The body font is a simply delicious serif called Junicode. While it’s primarily designed for ancient manuscripts, and has a lot of glyphs which only a historian would use; it’s also got a full set of Latin characters and it is just the most gorgeous serif I’ve ever seen. Might be a bit slow to load, but it’s worth it.

All the above is eventually going to go into a dedicated colophon page!

What’s next?

  • Fix the blog page, obviously. It’s in dire need of work! And the comments, while I’m at it.
  • Slightly disappointingly, I’d put together a rather clever lightbox system using just HTML. You can see it in action on the demo page I made. Unfortunately, it makes use of the HTML details tag, so I can’t just slap any ol’ image in there and expect it to work. Maybe there’s a solution here, I don’t know. Probably a plugin for it.
  • I’m also mildly disappointed at how block quotes are implemented in WordPress, mainly that it’s not easy to put in citations. Which is a shame, because I’ve styled my blockquotes in such a way that they don’t really work too well without a citation. Kind of my fault, I suppose.
  • There are a few other page types I hadn’t thought of, mainly the 404 page. Yeah, I know, seems like an obvious thing to overlook! One of the best parts about building a website is getting to make a fun 404 page, so I definitely need to sort that out.
  • I note, with some dismay, that none of my previous posts appear to have a featured image attached to them any more. I’ve gone back and corrected a couple, only to find they’re also missing quite a lot of their formatting and it’s all gone a bit weird. So that’s going to be fun to try and deal with.
  • Finally: I have done the opposite of what most people have been doing since about 2012, which is to say, I’ve gone desktop-first. In fact, I’ve gone desktop-only. I tried my site on my phone, and suffice to say, the mobile experience is suboptimal. Fortunately, this is pretty easy to fix using CSS – these days, all I really need to do is put in some special code for a portrait aspect ratio and away I go. (I assume. Not actually tried it yet.)

I hope you enjoy my new site design, whatever the case.

CSS Naked Day!

Wondering what’s happened to the site? It’s all gone a bit minimalist, a bit statement, a bit avant-garde. Perhaps even brutalist.

No, what’s happened is that I’ve stripped it of all its CSS for the next 48 hours… because it’s CSS Naked Day, naturally. And it’s perhaps the only global observation-y day I’ve come across which follows the sun – after all, it’s April 9th somewhere in the world, even if it’s not April 9th for me right now.

The idea is that it’s an opportunity to show what HTML is capable of on its own. These days, it really is very capable; not that my 2010-vintage WordPress theme is the best showcase for that. HTML’s purpose is to tell the browser what goes where – but it’s also to tell the user what they’re looking at. Stripping a website bare of CSS might make it look plain and perhaps a bit ugly, but if it’s still functional after all that, it’s the sign of a pretty well-made site.

CSS, as amazing as it is and continues to be, also hides a multitude of sins – sins like putting everything in a <div> tag, or putting your HTML elements out of order and re-jigging it after the fact.

The other thing about having a CSS-less site is that you get more of an idea of how accessible your site is. Screen reader users aren’t served quite so much, if at all, by CSS, and in many cases it can hinder their enjoyment of your site. Doing it properly with semantic tags makes the world of difference, especially when most big websites hardly care about accessibility at all.

Think of the 10 most popular websites in the world. Now, try and picture them without any CSS. I can guarantee that, perhaps with the exception of Google and Wikipedia, they would be an utterly broken and unusable mess. (Side note, this is what screen reader and keyboard users have to put up with… fun, huh?) Also, any site that uses a framework like React is definitely not using proper semantic HTML tagging, so to my mind they shouldn’t be considred functional. I’m looking at you, Microsoft Intune portal and your janky-as-balls “pages” that are just the same page but you’ve added a bit to the right and then scrolled the viewport over and also your radio buttons aren’t real because you can’t be arsed doing it properly so you just use 500 lines of JavaScript instead–

…sorry, getting a bit ranty. Whatever you get out of this, CSS Naked Day is a lovely way to – if nothing else – show off your HTML knowledge and revel in the fact that you can make a proper website!

Speaking of which… I’m getting closes to a minimum viable product on that new blog theme I talked about probably a year ago now. It’s had some tweaks, mainly around accessibility but also around making it work with the very useful WordPress theme unit test suite. It’s looking very spiffy!

For now, though, enjoy the website as nature intended. And if you run a WordPress (or ClassicPress!) blog, why not install the plugin and join in the fun.

Print Screen

Print has long fascinated me. Probably because I’ve spent so much of my lifetime in front of, or otherwise interacting with, a screen of some kind, there’s a level of respite to be found in the printed page. Also helps that I studied graphic design, and with it became familiar with all sorts of print. And I worked in a print shop for a little while, too!

For years I’ve wanted to redesign this blog, top-to-bottom – but two things have kind of got in the way. The first is that I’ve never really known what I want it to look like. 2000s-era web design is all well and nostalgic, and certainly would fit the era I typically hover around… but let’s face it. It looked tacky then, and it looks tacky now. I never thought much of the shiny, lickable Web 2.0 guff even then. You can do it tastefully, but I still don’t see that it’s very me, yaknow?

The other reason is that I hate themeing for WordPress. Been down that road, it’s full of thorny bramble and there’s broken glass all over the floor and the buildings are all on fire. (Basically, it’s a pfaff to get your head round and it never works anyway.) I think through a combination of things, including discovering the delightful typeface Junicode, finding (and buying many of) the special United States of Letterpress books from Field Notes, and running into the excellent (if rather opinionated) Practical Typography online book; I’ve come to realise what I want my blog to look like. For now, anyway…!

I also came across the lovely Flexoki colour scheme by Steph Ango (also known for the app Obsidian) and have thought for a long time that I wanted to use it for something. Turns out a printerly-ish website is the perfect candidate! In terms of software, I quite liked the idea of static site generators, and I think I’ve found the one I’d like to use: kiki, a shareware (!) construction set that fits on a floppy disk.

Further thoughts to transpire when I actually build the thing, but for now, enjoy this preview. (Click it to explore! Most of the links don’t work, but give it a go anyway.)

The Iron Giant

The Iron Giant film poster

I remember our class reading Ted Hughes’ The Iron Man in Year 5 at school. It started with lots of metal body ports forming themselves together into…well, an iron man. I don’t think we ended up finishing it, but the whole thing did seem rather familiar to me at the time.

Continue reading “The Iron Giant”

The Cat Book

You might be here because you found one of my cat manuals. Congratulations! Continue reading “The Cat Book”