10 posts tagged with “javascript”

Vitest sessionStorage mock

23 Feb 2024

i needed to ensure what we were saving didn't contain sensitive credit card info so i had to write a mock. Read more

migrating to slinkity

15 Feb 2023

in typical bored developer fashion, i took these extra vacation days to update my blog. this post is my brain dump during this migration from gatsby to slinkity, which brings together 11ty & vite. wish me luck! Read more

Some information about import map specifiers

2 Aug 2022

This post is inspired by a question someone asked in the single-spa Slack with regards to how import maps define specifiers. Read more

Theme toggle on a Gatsby + MDX site

27 Nov 2021

I recently read [Josh Comeau's excellent article](https://www.joshwcomeau.com/react/dark-mode/) on how he was able to achieve a theme toggle on his Gatsby site. I find his solution to be excellent! However my Gatsby site is, for better or worse, pretty tied to MDX and React. I implemented a solution based on his for my current site theme. Read more

Microfrontends Resources

8 Jul 2020

This post is just an accumulation of a few introductory and valuable resources for learning about and getting started with microfrontends. I'll try to keep this resource as up-to-date as possible. Read more

Styled components and props - a rule of thumb

18 May 2020

A while ago, I wrote about an [improvement to using props in styled-components](/improve-your-styled-component-props-usage/). The TLDR; is "Avoid overusing props in styles and instead use proper DOM and ARIA states". I think this advice extends to all CSS-in-JS solutions. Read more

Improve your styled-component props usage

30 Nov 2019

I hadn't used styled-components until about a year ago when I started at my current job. I can't say its my favorite CSS-in-JS option for various reasons. One of those reasons is the pitfall of relying on props for styling, which can do a lot more damage than devs may realize. Read more

Bad Assumptions about Microfrontends

9 Aug 2019

There've been some surprisingly incorrect assumptions being made about "microfrontends" since it became a buzzword. Microservices in the browser (I prefer this term over microfrontends) are a totally new paradigm but these bad takes seem to have quite a bit of reach. I'll tackle some of these in this post. Read more

Accessible Buttons

20 Mar 2019

It's 2019 and I still see new code being written which uses non-interactive elements as buttons. Let's rehash why this is a problem. Read more

Building a CSS framework using npm

14 Feb 2017

This last weekend I wanted to create a simple CSS framework that I can reuse for my own little projects. Read more