
Adam Leith
I currently work as a UX Platform Engineer at PostHog. I specialize in building fast & accessible web applications using modern technologies with a high attention to detail. I write about frontend development, design and user experience.
Writing
Extend Sonner for more expressive App notifications with React, Typescript, and Tailwind
Create an accessible notification system for your app built on top of Sonner.
Tailwind merge limitations and the lost classes
How to use use tailwind merge and it's mergeConfigs() for when creating custom classes in Tailwind CSS without losing classes.
Accessible pricing cards
Create an accessible pricing card using React, Typescript, React Hook Form, and Base UI.
Import files into MDX and render as code blocks (with code highlighting)
Showcaseing your code snippets in Nextjs + MDX by importing the raw file
Easy text loading skeletons
How to create loading skeletons for your website that match your text perfectly to reduce layout shift
Hide underlaying HTML background on inertia bounce
How to prevent HTML background color from showing behind content when scrolling with inertia
Forms: Input password
How to properly implement other functionality to input fields