James McGrath

A few years ago when I started using css custom properties, I would try all kinds of things with them to see what I could discover about using them. One of the things I made is this .fs-scale class...
Published on Jul 26, 2025
Reading time: 7 minutes
I use AI every day at work to assist me not only in coding but also in handling technical specifications and their challenges. As our organization began adopting AI more broadly, I have seen how the...
Published on Jul 19, 2025
Reading time: 4 minutes
Initially, browsers universally applied focus styles via the :focus pseudo-class to all focusable elements, typically as a focus ring. This default user-agent style ensured every link and button...
Published on Jul 16, 2025
Reading time: 2 minutes
Let's talk about alerts and how they are supposed to work. I was recently in a discussion about them at work, and to better prepare myself for a discussion with the product team and C-suite officers,...
Published on Jun 27, 2025
Reading time: 3 minutes
One of the things I am really bad at is deciding where to put a file in a project. I realized that I can let AI solve that for me by giving it more context on the project with a map of the project...
Published on Jun 26, 2025
Reading time: 2 minutes
I made an alt text generator using Aider with Claude Sonnet 4, SvelteKit and Tailwind. I didn't think it was very hard to do since I straight up vibe coded it.
Published on Jun 23, 2025
Reading time: 11 minutes
Since moving from Vue to Svelte one of the things I miss from Vue is when it would create an array of elements using a ref in a v-for loop.
Published on Oct 02, 2023
Reading time: 1 minute
Recently I found a need to calculate vh and vw
Published on Sep 25, 2023
Reading time: 1 minute
Recently while reading through the rendering section section of the HTML spec, I came across the hidden="until-found" attribute. Being that it's the first time I have ever seen this, I did a...
Published on Sep 13, 2023
Reading time: 2 minutes
I had to code a design that was like half a pie chart with text in the slices and the center of the chart was cut out in a circle like a donut. You can see it here on Squad by Mamamia. The solution I...
Published on Aug 28, 2023
Reading time: 2 minutes