Smashing Magazine - #406: State Of The Web 2023

State of CSS 2023, new JavaScript and TypeScript features, SVG, faivons, Web Components and inclusive design. Issue #406 May 23, 2023 View in the browser

Smashing Newsletter

God eftermiddag Smashing Friends,

It can be quite challenging to keep track of what’s new on the web these days. What are some of the new features in CSS and JavaScript? What about web performance? What about the current state of web components? Or even in its simplest terms, what would be the right way to define favicon in 2023? In this newsletter, we’ll try to find answers to these questions!

When it comes to CSS and web development, we are getting ready to dive deep into frontend and tooling, with a few lovely events coming up in the next few months!

Smashing Meets AI
The rise of AI: Join us on June 20 to talk to three amazing speakers about how AI impacts your work — now and in the future.

  • Smashing Meets AI (free, June 20, online), a friendly get-together to discuss the challenges of AI, along with designing and building with it.
  • SmashingConf Freiburg 🇩🇪 (in-person + online, Sep 4–6) with adventures into design systems, accessibility, CSS, JS and web performance.
  • Accessible Components From Design To Development (online, Sep 14–22) with a deep-dive into accessibility, CSS and JavaScript by Carie Fisher.
  • SmashingConf Antwerp 🇧🇪 (Oct 9–11), on design systems, usability, product design and complex UI challenges.

Also, in today’s Smashing Podcast, we’re talking about Web Platform Baseline. What is it, and how can it help determine your browser support policy? On this note, a huge Thank You to all the passionate and kind people working day and night on CSS, and wonderful people like yourselves sharing what you’ve learned and spreading the word!

Vitaly (@vitalyf)


1. The State Of CSS In 2023

Remember endless discussions about how long it would take for shiny new CSS features to be adopted in all modern browsers? Well, these times are now in the past. Today, CSS is nothing short of magical, but keeping track of everything that’s now available in CSS isn’t an easy task.

What's new in CSS and UI

In What’s New in CSS and UI, Una Kravets, Bramus and Adam Argyle highlight some of the important updates that came to the platform recently. Container queries and :has selector are already here, just like cascade layers and wide-gamut color spaces. It’s exciting that style queries should land soon across browsers (already in Chrome), allowing us to query custom properties of a parent container to decide on styles of child elements.

Imagine that you’d like one component to look different on a dark background vs. light background of a parent? With style queries, we could solve this problem in no time — and keep all styles within the same single component, with no extra classes needed! A great update, with everything you might need to know, put together in one single place. Handy! (vf)


2. High-Definition Colors

Color-wise, we are living in exciting times. With high-definition colors with LCH, okLCH, LAB, and okLAB that give us access to 50% more colors available in modern browsers, the times of RGB/HSL might be over soon. To get you familiar with the new color spaces, Vitaly wrote a quick overview of what you need to know.

High-Definition Colors

Both OKLCH and OKLAB are based on human perception and can specify any color the human eye can see. While OKLAB works best for rich gradients, OKLCH is a fantastic fit for color palettes in design systems. OKLCH/OKLAB colors are fully supported in Chrome, Edge, Safari, Firefox, and Opera. Figma doesn’t support them yet. (cm)


3. New In JavaScript And TypeScript

The web is evolving at such a fast pace that it’s almost impossible to keep track of all new features that make their way into programming languages. When it comes to JavaScript and TypeScript, Linus Schlumberger did the hard work for you, and summarized changes and new features of the last three years to get you up-to-date.

All JavaScript and TypeScript Features of the last 3 years

From oldest to newest, Linus presents each JavaScript / ECMAScript and TypeScript feature with a short description and a code snippet. As he points out, not all of the features will be relevant or practical to you, but they show what’s possible and deepen your understanding of the languages. (cm)


4. How To Favicon In 2023

With more than 20 static PNG files necessary just to display a tiny website logo, creating a set of favicons can quickly turn into quite a messy undertaking. So how can we make the process more straightforward? Andrey Sitnik came up with a smart solution.

How to Favicon in 2023

Andrey’s approach gets by with only five icons and one JSON file to fit most modern needs. In his blog post “How to Favicon in 2023,” he summarized how he got there, the compromises he had to make, and a step-by-step tutorial on how to build a favicon set. If you don’t want to dive too deep into the details but are looking for code snippets to get you up and running quickly, Andrey has got you covered, too. (cm)


5. Upcoming Workshops and Conferences

That’s right! We run online workshops on frontend and design, be it accessibility, performance, or design patterns. In fact, we have a couple of workshops coming up soon, and we thought that, you know, you might want to join in as well.

Smashing Online Events
With online workshops, we aim to give you the same experience and access to experts as in an in-person workshop from wherever you are.

As always, here’s a quick overview:


6. Fixing Common SVG Fails

Browser DevTools are your best friend when you need to find potential issues with inline SVGs or opportunities to optimize them. But what to do if you can’t see your SVG at all? To help you troubleshoot improperly rendered SVGs, Mariana Beldi summarized six common SVG fails — and how to fix them.

6 Common SVG Fails

From improperly configured viewBox values and missing width and height to missing IDs and unexpectedly clipped SVGs, Mariana’s guide explores red flags to watch out for. A fantastic resource that saves you not only time but also a lot of frustration. (cm)


7. Inclusivity By Default

Websites often neglect people who rely on accessibility tools or don’t use a common web browser to navigate a site effortlessly with their eyes and hands. However, as Rohan Kumar points out, “many niches add up to a large population.” To help front-end developers and web content authors create inclusive experiences that don’t leave anyone out, Rohan wrote a comprehensive reference guide with best practices for crafting inclusive textual websites.

Best Practices For Inclusive Textual Websites

The guide applies to minimal websites that focus primarily on text and covers everything from security and privacy to optimal loading, images, color, interaction, layout, and much more. With 23,000 words, it is quite a read, but one that is well worth it. If you’re short on time, be sure to read at least the introduction and the conclusion to get a better idea of inclusivity by default and how it isn’t nearly as daunting as it might sound.

Carrie Fisher’s free Learn Accessibility course on web.dev is also a great resource to help you create more accessible experiences. Created for both beginners and advanced devs, the course consists of 19 lessons and covers everything from what digital accessibility is to evaluating patterns and components and performing assistive technology testing. (cm)


8. The State Of Web Components

Web Components are already very powerful, and their potential is still evolving. Since the first version shipped to all major browsers in 2020 and enabled developers to create reusable custom elements, the number of features has nearly doubled. If you want to dive deeper into what Web Components are capable of today and what to expect from them in the future, Rob Eisenberg wrote a great overview.

2023 State Of Web Components

In his post “2023 State of Web Components,” Rob highlights notable real-life examples of what has been built with Web Components and explores the various shipped, in-progress, and planned Web Component-related standards. For a complete overview, he breaks the features down into Composition & Scope, Platform Interop, Rendering & Peformance, Styling, Package & Distribution, and API Paradigms. (cm)


9. New On Smashing Job Board


10. Recent Smashing Articles


That’s All, Folks!

Thank you so much for reading and for your support in helping us keep the web dev and design community strong with our newsletter. See you next time!


This newsletter issue was written and edited by Cosima Mielke (cm), Vitaly Friedman (vf) and Iris Lješnjanin (il).


Sent to truly smashing readers via Mailchimp.
We sincerely appreciate your kind support. You
rock.

Follow us on Twitter Join us on Facebook

unsubscribe update preferences view in your browser

Key phrases

Older messages

#405: UX and Interface Design

Tuesday, May 16, 2023

UX metrics, golden rules of design research, B2B interface, guide to animation, enterprise UX and designing for attention. Issue #405 • May 16, 2023 • View in the browser Smashing Newsletter Iyi

#404: Front-End Tooling

Tuesday, May 9, 2023

DevTools tips, fluid type scale, Terminal explained, HTML email, better mobile input and fluid CSS grid. Issue #404 • May 2, 2023 • View in the browser Smashing Newsletter Cagā dina Smashing Friends,

#403: Advanced CSS In 2023

Tuesday, May 2, 2023

Advanced CSS techniques with container queries, :has() selector, CSS text balancing, a combined CSS-aspect-ratio-grid and new color formats in CSS. Issue #403 • May 2, 2023 • View in the browser

#402: Useful Figma Plugins and Tools

Tuesday, April 25, 2023

Figma design specs, skeleton screens, handoff helpers, design systems, embedding ChatGPT into Figma and Figma templates. Issue #402 • April 25, 2023 • View in the browser Smashing Newsletter Bom dia

#401: Web Performance

Wednesday, April 19, 2023

Optimizing time to first byte, debugging CLS, optimizing LCP, React DevTools, priority hints and low-hanging web performance fruits cheatsheet. Issue #401 • April 18, 2023 • View in the browser

You Might Also Like

It's Officially Show House Season

Thursday, May 2, 2024

View in your browser | Update your preferences ADPro Showing Up, and Showing Off One of the traditions design aficionados look forward to the most each year is the return of decorator show houses. In

Zelman Meats, AI Feedback Loop, Figma Variables, CSS Masonry, Passkeys

Thursday, May 2, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar May 2 2024 Zelman Meats logo by Red Dot Studio logodesignlove.

Every viral brand has these 5 things in common ⚡️

Wednesday, May 1, 2024

See if your brand checks all the boxes... Branding, branding, branding. Like, PR, it's an oft-misunderstood area of business building. Many people think a logo, some colors, and a font constitute

inherit(), Polish, Picture-Superiority Effect, Music Notation, Multi-Brand Design System

Wednesday, May 1, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar May 1 2024 Self-Modifying Variables: the inherit() Workaround

164 / What if you could talk to Scarlett Johansson from the movie Her?

Tuesday, April 30, 2024

Product Disrupt Logo Product Disrupt Half-Monthly Apr 2024 • Part 2 View in browser Welcome to Issue 164! Standing out in today's competitive market is hard, really hard. But side projects can help

#454: JavaScript

Tuesday, April 30, 2024

Front-End Engineer Handbook, JavaScript Cheatsheet, File System APIs and Invokers. Issue #454 • Apr 30, 2024 • View in the browser Smashing Newsletter Labas vakaras Smashing Friends, Let's talk

Mayer Rus on L.A.’s Great Gallery Migration

Tuesday, April 30, 2024

View in your browser | Update your preferences ADPro Image may contain: People, Person, Accessories, Bag, Handbag, Food, Meal, Adult, Clothing, Hat, Glasses, Fun, and Party For this week's edition

Head of Typography, Centering Things, 3D Badge, Alternating Style Queries, Hate Speech

Tuesday, April 30, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 30 2024 Detect JavaScript Support in CSS ryanmulligan.dev

JavaScript Support, AI in UI/UX, Deja Vu, Nature of Code, Clubhouse

Tuesday, April 30, 2024

The 5 best design links, every day. Curated by a selection of great editors. Email not displaying properly? View browser version. Sidebar April 29 2024 Detect JavaScript Support in CSS ryanmulligan.dev

Accessibility Weekly #394: Images as the First Thing in a Button or Link

Monday, April 29, 2024

April 29, 2024 • Issue #394 View this issue online or browse the full issue archive. Featured: Images as the first thing in a button or link "An accessibility problem I encounter regularly is