Links
How to Favicon in 2023: Six files that fit most needs
It’s time to rethink how we cook a set of favicons for modern browsers and stop the icon generator madness. Frontend developers currently have to deal with 20+ static PNG files just to display a tiny website logo in a browser tab or on a touchscreen. Read on to see how to take a smarter approach and adopt a minimal set of icons that fits most modern needs.
The Market for Lemons
At long last, the journey has culminated with the rollout of Core Web Vitals. It finally provides an effortless, objective quality measurement prospective customers can use to assess frontend architectures. It's no coincidence the final turn away from the SPA justification has happened just as buyers can see a linkage between the stacks they've bought and the monetary outcomes they already value, namely SEO. The objective buyer, circa 2023, will understand heavy JS stacks as a regrettable legacy, one that teams who have hollowed out their HTML and CSS skill bases will pay dearly for in years to come.
Different Ways to Get CSS Gradient Shadows
It’s a question I hear asked quite often: Is it possible to create shadows from gradients instead of solid colors? There is no specific CSS property that does this (believe me, I’ve looked) and any blog post you find about it is basically a lot of CSS tricks to approximate a gradient. We’ll actually cover some of those as we go.
My favourite 3 lines of CSS
.stack > * + * {
margin-block-start: 1.5rem;
}
Let’s break the selector down: every direct sibling child element of
.stack
hasmargin-block-start
added to it. This is achieved by the Lobotomised Owl selector, but the>
combinator is added to prevent margin being added recursively.
CSS Layers for CSS Resets
CSS layers were invented to solve cases like this, where we want to tell the browsers that a specific layer is more important than others, and ignore the CSS specificity of another layer.
Videos
Understanding design tokens, from UX tool to production
Design tokens are key-value pairs for style properties, created in a UX design tool and synced into code. They represent a significant shift in how developers and designers collaborate - reducing manual and repetitive work and ensuring better consistency. You may be curious about what tokens are and how they could help you. Or maybe you already heard of them but wondered if they are production-ready for large-scale products (yes!). If that is the case, this talk is for you!
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! 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.