Links
What You Need to Know about Modern CSS (Spring 2024 Edition)
My goal with this bookmarkable guide is to provide a list of (frankly: incredible) new additions to CSS lately. There is no hardline criteria for this list other than that these things are all fairly new and my sense is that many people aren’t aware of these things. Or even if they are, they don’t have a great understanding of them and could use a plain language explanation of what it is, why they should care, and a bit of reference code. Maybe that’s you.
Front-End Development’s Identity Crisis
I’m not a “full-stack developer”, regardless of what my last job title says. I’m not even a front-end developer, thanks to the JavaScript–industrial complex. I’m a front-of-the-front-end developer, but that’s too long. So, I’m a web designer. And I also specialise in accessibility, design systems, and design.
CSS Color-Scheme-Dependent Colors with light-dark()
System colors have the ability to react to the current used
color-scheme
value. Thelight-dark()
function exposes the same capability to authors.
Taming the Shadow DOM: Injecting Global Styles with Adopted Stylesheets
Achieve a unified look for your web application! Learn how to bridge the gap between web components' Shadow DOM and global styles using the power of adopted stylesheets.
Syntax Highlighting Code Snippets with Prism and the Custom Highlight API
The way syntax highlighters on the web typically work is a to wrap all tokens in
<span>
elements with a proper class and use CSS to colorize them. Thanks to the CSS Custom Highlight API you can skip the step where you riddle your DOM tree with a bunch of<span>
s to add the color information.
Videos
Is this a good idea?
After a few people posted and talked about the
min-width: 0
thing, I've been getting a lot of questions about what I think about it. Rather than just share my own opinion on it (which we will get into), I saw it as a fun opportunity to dive into how Flexbox works and why this can sometimes solve some strange issues, but also the new issues it can cause as well.
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.