Links
Brand New Layouts with CSS Subgrid
Subgrid allows us to extend a grid template down through the DOM tree, so that deeply-nested elements can participate in the same grid layout. At first glance, I thought this would be a helpful convenience, but it turns out that it’s so much more. Subgrid unlocks exciting new layout possibilities, stuff we couldn’t do until now.
Why use React?
This isn’t a rhetorical question. I genuinely want to know why developers choose to build websites using React. There are many possible reasons. Alas, none of them relate directly to user experience, other than a trickle-down justification: happy productive developers will make better websites. Citation needed.
Keyframes Tokens: Standardizing Animation Across Projects
Animations can be one of the most joyful parts of building interfaces, but without structure, they can also become one of the biggest sources of frustration. By consolidating and standardizing keyframes, you take something that is usually messy and hard to manage and turn it into a clear, predictable system.
Updating CSS Border Radius When A Container Is Overflowing
In this article we’ll create a container element that dynamically adjusts its
border-radiuswhen its contents overflows.
Build Your Own Router
URLPatternjust dropped, so I wanted to dig into what it would take to make a simple SPA router with vanilla JavaScript and browser APIs. We should be able to make a component that takes in a router configuration and renders the appropriate component determined by the browser URL.
Videos
How To Create an Dark-Mode Adaptive SVG Favicon
Find out how to create an adaptive favicon that automatically switches to a light/dark color scheme using SVG icon format and
prefers-color-schememedia query.
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! They solve complex responsive web design and development challenges for ecommerce, healthcare, fashion, B2B, SaaS, and nonprofit organizations.
If you’d like to help with the costs of running Friday Front-End, you can back our Patreon for as little as a dollar a month.