Custom properties in CSS are exceptionally useful, not just for tokenising your CSS, but also for abstracting complexity and interactivity into smaller, easier to manage pieces. This short guide will get you up to speed with how they work and how to use them. Say you’ve got some CSS like this: There’s a lot of […]
Read this post in Japanese. In Every Layout, we wrote about The Stack. It’s a marriage of Heydon’s Lobotomised Owl selector and my method of managing Flow and Rhythm with CSS Custom Properties. Let’s break the selector down: every direct sibling child element of .stack has margin-block-start added to it. This is achieved by the […]