Dynamic SVGs in Light & Dark Mode
Learn how to make your SVG illustrations respond to light and dark mode using CSS variables—plus, a script to automate replacing hex values.
I’m a designer and developer committed to making the web a more empowering and accessible place. I create engaging user experiences and bring them to life through maintainable, high-quality code.
Learn how to make your SVG illustrations respond to light and dark mode using CSS variables—plus, a script to automate replacing hex values.
Learn how to use the correct spaces, punctuation, and special characters to create precise, elegant web typography.
Learn how to support system-based theming in Styled Components, while allowing a user to select their preferred theme and persist that choice.
Learn to use React’s Context API and provide/inject in Vue to share state between related components without resorting to a global data store.
Learn how to use render props in React and scoped slots in Vue to create components that are flexible and reusable.
Learn about margin collapse, a fundamental concept of CSS layout. See visual examples of when margin collapse happens, and when it doesn’t.
Want more front-end tips and tricks? Sign up for my newsletter to stay up-to-date.