
Every time the Workers runtime code is built, a script runs over the public APIs and generates the Rust and TypeScript types as well as a JSON file containing an intermediate representation of the static types. The types are sent to the appropriate repositories and the JSON file is uploaded as well.

Now you can use JavaScript modules, also known as ECMAScript or “ES” modules, on Cloudflare Workers. This replaces the old “addEventListener” syntax with a new “import” and “export” semantics that makes it really easy to write reusable, modular code.

Jamstack has been in the website world for years. Static Site Generators (SSGs) — which often have content that lives right within a GitHub repo itself — are
HR
Hilman Ramadhan·November 16, 2021Frontend 
In order to create lush, realistic shadows in CSS, we need to use multiple layers and colors. How do we come up with all of the parameters, though? I've built a tool that'll help.
JWJosh W. Comeau·November 16, 2021Frontend 
Guido won the innovative category in one of the biggest Game Jams with a combination of Pages, Durable Objects, modern browser APIs, and a hefty amount of ingenuity.
EG
Erwin, Guido Zuidhof·November 15, 2021Frontend 
Theming UI refers to the ability to perform a change in visual styles in a consistent manner that defines the “look and feel” of a site. Swapping color
MM
Michael Michlin·November 15, 2021Frontend 
In my "Different Degrees of Custom Property Usage" article, I noted a situation about colors and CSS custom properties where I went "too far" with
CCChris Coyier·November 15, 2021Frontend 
Remember when Ahmad Shadeed wrote about that border-radius "toggle" he found in Facebook's CSS? It was interesting! I covered it. A few weeks after that surge
CCChris Coyier·November 12, 2021Frontend 
React class-based components are messy, confusing, hard for humans and machines. But before React 16.8, class-based components were mandatory for any projects that require states, life-cycle methods, and many other important functionalities. All these changed with the introduction of hooks in React 16.8. Hooks are game-changers. They have simplified React, made it neater, easier to write and debug
ID
Ifeanyi Dike·November 12, 2021Frontend 
Scott digs into the history of the <menu> element. He traced it as far back as HTML 2 (!) in a 1994 changelog. The vibe then, it seems, was to mark up a
CCChris Coyier·November 11, 2021Frontend 
I was working on a large React application for a startup, and aside from just wanting some good strategies to keep our styles organized, I wanted to give this

Bootstrap 5.2 shipped with solutions for the methods covered in this post. So, if you're using Bootstrap 5.2 or newer, you should be able to tinker with CSS
MM
Meredith Matthews·November 10, 2021Frontend 
Louis Lazaris breaks down some bonafide CSS trickery from Jane. The Pen shows off interactivity where:

Suspense is React’s forthcoming feature that helps coordinate asynchronous actions—like data loading—allowing you to easily prevent inconsistent state in your

Internationalized routing is not exactly a new feature on Next.js. (It has been out since [v.10](https://nextjs.org/blog/next-10).) In this article, we are not only checking what we get from this feature, but also how to leverage such functionalities to achieve the best user experience and a smooth developer experience as well. Keep reading if you enjoy self-documented code, lean bundle-sizes and
AF
Atila Fassina·November 9, 2021Frontend 
I recently came across a cool effect known as glassmorphism in a Dribble shot. My first thought was I could quickly recreate it in a few minutes if I just use

Bonafide CSS trick alert! Nelson Menezes figured out a new way (that only works in Firefox for now works everywhere) that is awfully clever.

Just ran across îles, a new static site generator mostly centered around Vue. The world has no particular shortage of static site generators, but it's

Šime Vidas DM'd me the other day about this thread from subzey on Twitter. My HTML for favicons was like this:

I only just recently learned the enterkeyhint attribute on form inputs was a thing! It seems like kind of a big deal to me, as crafting HTML form markup is a

A simple pattern used in libraries like downshift and ReachUI to enable component/hook users to initialize your state and even reset it to that initial value.
KC
Kent C. Dodds·November 5, 2021Frontend 
Josh Collingsworth is clearly a big fan of Svelte, so while this is a fun and useful comparison article, it's here to crown Svelte the winner all the way

The Scroll-linked Animations specification is an upcoming and experimental addition that allows us to link animation-progress to scroll-progress: as you

Within the last decade, technologies like GraphQL have changed how we build web apps and how they communicate with each other. GraphQL provides certain benefits over REST APIs — let’s find out what they are. In this article, David Atanda will cover advanced topics to achieve real-time update of data using the update() function, subscription, and Optimistic UI. All in a bit to improve user experien

In June of 1995, representatives from Microsoft arrived at the Netscape offices. The stated goal was to find ways to work together—Netscape as the single

Let's see how learning React ⚛️ in the right order can make it less overwhelming.
KC
Kent C. Dodds·November 3, 2021Frontend 
Serverless UI is simply a free, open-source command-line utility for quickly building and deploying serverless applications on the AWS platform. In this article, we will learn and cover everything needed on using Serverless UI to deploy our projects or serverless applications to cloud services providers.
IA
Ikeh Akinyemi·November 3, 2021Frontend 
High five to Jeremy on the big release of Responsible JavaScript on A Book Apart. There is a lot of talk about how the proliferation of JavaScript has had a

First, check out how incredibly easy it is to write a Cloudflare Worker to proxy another URL:

Recently, while looking for some ideas on what to code as I have zero artistic sense so the only thing I can do is find pretty things that other people have

Kendo UI makes it possible to go from a basic idea to a full-fledged app, thanks to a massive component library. We're talking well over 100 components that

Vite, "Next Generation Frontend Tooling" from Evan You, has been capturing a lot of attention. I've heard rave reviews from developers, even in private chats

TypeScript forces you to acknowledge you can't know what was thrown making getting the error message a pain. Here's how you can manage it.
KC
Kent C. Dodds·October 28, 2021Frontend 
I ran across this 30 seconds of code website the other day, and they have a CSS section which is really good! The first example snippet I looked at was this

A look from Christian Kozalla on the <dialog> HTML element and using it to create a nice-looking and accessible modal.

Cypress is an automated test runner for browser-based applications and pages. I’ve used it for years to write end-to-end tests for web projects, and was happy

We've covered URL schemes:

If you have a page that includes a lot of information, it’s a good idea to let users search for what they might be looking for. I’m not talking about
HR
Hilman Ramadhan·October 26, 2021Frontend 
Nx is a build framework that facilitates optimization, efficient scaling of applications, and other features such as shared libraries and components. In this article, Melvin Kosisochukwu will be looking at how you can effectively scale Next.js applications by using Nx. If you’re a developer looking to optimize applications and create reuseable components across applications, this article is for yo
MK
Melvin Kosisochukwu·October 26, 2021Frontend 
When I wrote the "book" The Greatest CSS Tricks Vol. I, I put "book" in quotes because there wasn't anything terribly book-like about it. The only way you

If we use a width and height that isn’t proportional to the image’s aspect ratio, the image might either be compressed or stretched. That isn’t good, and it can be solved either with object-fit for an img element or by using background-size. In this article, Ahmad Shadeed will go through how `object-fit` and `background-size` work, when you can use them, and why, along with some practical use case
AS
Ahmad Shadeed·October 25, 2021Frontend 
Quasar is an open-source Vue.js-based cross-platform framework that allows you, as a developer, to easily build apps for both desktop and mobile using technologies such as Cordova and Electron and writing your code once. The app we’ll build will store and get its data from Firebase, meaning that we will also be seeing how to use Firebase in Quasar.
JO
Joel Olawanle·October 23, 2021Frontend 
A single-serving website from Alexander Vishnyakov for testing if it's valid to put any particular HTML element within another type of HTML element. Kinda

Adding borders to complex shapes is a pain, but rounding the corner of complex shapes is a nightmare! Luckily, the CSS Paint API is here to the rescue! That’s

It's not uncommon for my front-end workflow to go something like this:

I only half-jokingly refer to the CSS-in-JS world as CSS-in-React. Many of the libraries listed below theoretically work in non-React situations — they

We're going to create a contact form with Next.js and Netlify that displays a confirmation screen and features enhanced spam detection.
MPMonica Powell·October 21, 2021Frontend 
Back in January 2020, Ben Holmes set out to do what just about every web developer does each year: rebuild his personal site. In this article, he shares his story of how he set out to build his own build pipeline from absolute ground zero and created [Slinkity](https://slinkity.dev/).

Today, we're introducing the Payment Element, an embeddable UI component for your checkout flow that supports 18 payment methods with a single integration.
MC
Murray Chapman·October 20, 2021Frontend 
Hey folks! Elad reached out to me to show me his new CSS reset project called the-new-css-reset. It’s quite interesting! I thought a neat way to share it with
ES
Elad Shechter·October 19, 2021Frontend 
We aren’t supposed to be doing any sort of decision-making based on browser User-Agent Strings. But, ya know, collectively, we do.

Cumulative Layout Shift is one of the hardest core web vital to debug. In this article, we go through different tools to investigate CLS, when to use them(and when not), and solutions to some of the CLS issues we faced in our Next.js-based e-commerce website.
AM
Arijit Mondal·October 18, 2021Frontend 
I love CSS Grid. I love how, with just a few lines of code, we can achieve fully responsive grid layouts, often without any media queries at all. I’m quite

Writing CSS has probably never been more fun and exciting than it is today. In this post we’ll take a look at common problems and use cases we all have to face in our work and how to solve them with modern CSS. If you’re interested, we’ve also just recently covered [CSS auditing tools](https://www.smashingmagazine.com/2021/03/css-auditing-tools/), [CSS generators](https://www.smashingmagazine.com/
CM
Cosima Mielke·October 14, 2021Frontend 
Web-browser for research that helps programmers think clearly.

Ahmad Shadeed blogs the sentiment that we might not need to lean on position: absolute as much as we might have in the past. For one thing: stacking elements.

As someone just sittin' back watching CSS evolve, it feels like we're at one of the hottest moments of innovation in CSS history. It was really something when

Remix has this beautifully simple feature for CSS that I want to tell you all about.
KC
Kent C. Dodds·October 13, 2021Frontend 
Do you like a good interface design challenge? What about accessibility testing and design systems? Or maybe Next.js and advanced CSS? With our [new online workshops](https://smashingconf.com/online-workshops/) on front-end & design, we cover all of it. Below you’ll find a schedule of what’s coming up next. Ah, and [here
IL
Iris Ljesnjanin·October 13, 2021Frontend 
Google Analytics is powerful analytics software. A common way to use it is to just slap the JavaScript snippet on every page template you have and let it