🖋️ One Stylesheet To Rule Them All
If you have been paying attention, you’ll know that for a long time I have wrestled with the look of this blog. Every fix was a patch on a patch. A tweak here, an override there, and before I knew it the custom CSS behind john.philpin.com had grown to nearly 2,000 lines. Nobody could tell you what half of it did. Including me.
Meanwhile, you might have noticed a lot of work going on over at philpin.com. Yesterday it struck me that if philpin.com already has a 🖇️ proper design system - colours, type, spacing, buttons, all defined once - then a single stylesheet should be able to serve both the site and the blog.
So that is what we did.
The CSS for john.philpin.com is now just one line that simply points to the css at philpin.com and the system takes over from there. Change the brand there, and the blog follows. Of course - being a blog and not a web site - we do expect variations - but that is already built into the architecture of PHI⑊PIN The blog keeps a few variations of its own, but the foundations are shared - fundamental to how the system is designed to work with partners and customers alike.
Within hours, the blog was about 85% closer to what I have been trying to get to since I first started tweaking it. The text is one size everywhere. Every button is the same height. The date has stopped shouting. And an old plug-in I had forgotten about, quietly overriding my design on every page, is gone.
This post is its own demonstration of the new look.
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
💬 Antoine de Saint-Exupéry
No quotation marks round it - the panel already tells you it is a quote. The source sits in its own band, in brand blue. I typed none of that formatting. I wrote the words and the 💬, and the system did the rest.
Which is the point. Fewer lines, not more. Nearly 2,000 lines of patches are on their way out, replaced by one system that both places share.
Not quite there yet - but am about to remove the original css and see what breaks. I am thinking that this might be easier than constantly scanning and deleting chunks of text out of a 2000 line CSS file.
There is still more to do. The next job is the 🖇️ wiki. Same idea, same stylesheet. One brand, everywhere it shows up.
And of course - where I have got to isn’t final - whilst some things are settled like the core logo - and variations - and its font is locked - the written text font - well - suffice to say - jury still out.
What We Changed, In Hours
… it makes me very happy 😎
- One stylesheet, from philpin.com. The blog’s own CSS is now one line.
- One text size, 16px, everywhere: posts, lists, quotes and their sources.
- Line spacing from philpin.com: 1.6 for text, 1.8 for quotes.
- Every button the same height, 32px, with its words centred.
- Every coloured strip the same height, 48px: the quote’s source, Start The Conversation, Sign On With and the Post bar.
- The date as a small label, on the same edge as the buttons below it.
- One 12px gap under the date, whatever comes first: text, quote or picture.
- Older, Surprise and Newer in their own card, 12px under the post, 24px before the conversation.
- Quotes in a light panel with no quotation marks round them, and the source in a brand blue band.
- One card per post. No card inside a card, and no opening repeated at the top.
- Corners and typefaces from philpin.com: Inter to read, Space Grotesk for labels.
- The three dashes above this list, drawn the philpin.com way.
- An old plug-in that overrode all of it, removed.
… via the PHI⑊PIN changelog