I keep running into the same problem: how to set a style attribute in the CMS and have that be dynamically rendered on the front-end, without relying on inline styles. Turns out it's a great use case for CSS variables!
I got annoyed having to manually markup inline code for blog posts so I dug around in the Redactor documentation and worked out how to create a keyboard shortcut instead.
It is Christmas Eve and the penultimate week of the New 52
challenge! There's a nice symmetry to that, which, of course, is
why I picked today to write a post... and nothing to do with it
being the …
I finally made it to an IndieWebCamp meetup, even if it was remote only due to the increasingly restrictive implications of the coronavirus. I learnt a lot, I had a great time, and I'm ready to start implementing a whole bunch of new ideas right here. I also took a huge number of notes from the speakers and sessions throughout the day.
Notes from the fully remote React Summit 2020 (or at least the talks I tuned in for). Lots covered, from static-site generators and the Jamstack through to React state management and accessibility. What a fun day!
An interesting thought experiment from Chris: if a client asked
you to build a website that could last a minimum of 10 years, what
would you do? Lots of influential people in his answers, but I'm
…
🔖
How to change the background colour of a word in InDesign
I'm using InDesign increasingly it seems and overall
I really dig it, but I recently ran into a fairly simple
problem that doesn't have an official solution: inline code
styling. It's pretty much a …
There has been a lot of web chatter around the launch of Deno,
the new JavaScript runtime engine. Their introductory blog post
does a great job of explaining when you should use it (and
conversely …
Customising HTML lists often means sacrificing standard browser typesetting bonuses, like hanging indents. But with a little bit of modern CSS, you can get them back again, whilst still getting to use custom counters – like emoji 🚀
I think there's some real merit to Andy's ideas behind Cube CSS.
It's a middle-ground between everything-in-JS or BEM that throw out
the cascade entirely and the free-for-all that can happen if you
…
The idea of a great divide in front-end development resonated with me. I'm worried about how the erosion of certain skills could lead to a less inclusive, accessible web, for both users and developers. On the other hand, there are some massive advantages to our new tools. It's a double-edged sword.
I'd never heard of a "skip link" before but
it's a neat idea that's clearly been around for some time.
Basically, it's a link placed at the very start of the <body>
that's …
A very neat little trick. Embedding @keyframes within your SVG
<style> element makes it animate when it loads, whether
rendered as an image or a background (or, I assume, inlined). It
can even …
I've never understood the appeal of TailwindCSS. I've watched
friends and colleagues get amped for it, seen their code, and just
felt like it was a meaningless abstraction of the existing
technology. …
Harry has created an absolutely phenomenal talk here that
provides an immense amount of depth whilst still being completely
accessible to someone like me who largely doesn't deal with the
technical …
🔖
Modern CSS for dynamic component-based architecture
Josh has added some additional thoughts to Andy's CSS reset.
Personally, I like a combination of the two (with a dash of
Stephanie's best practices thrown in for good measure), but wanted
to capture …
I have long sought a web-native way to achieve sidenotes with
CSS, and it turns out Eric is in the same boat. The new Anchor
Position API in CSS is seeking to solve that problem, and whilst it
…
A complete overview of the most recent WCAG 2.2 spec as it
enters RC status, including quick overviews on the most common
solutions to meet each new success …
Mastodon makes saving interesting links for later very easy, but getting these into a feed reader or note-taking service seemed impossible until I came across a neat little hosted solution.
Today's obscure HTML element: <bdi>. It stands for
"bidirectional" and refers to text that can include both RTL and
LTR languages (does not appear to care about other …
Every web developer has torn their hair out trying to align an
icon with some text, or two separate pieces of text with each
other, or (god forbid) a whole sequence of text nodes, icons, form
…
Migrating content between fields in Craft is not as simple as it might be. In the wake of Craft 5, I've been getting a lot of practice, and wanted to write up some of the techniques I've been using.
🔖
How the language attribute is damaging accessibility
A first-hand account of how marking individual words or short,
inline phrases as a different language (even when accurate) can be
a jarring and inaccessible experience for many screen reader …