Home/Frontend
Topic

Frontend

2,065 articles on Frontend.

13,309 articles
Frontend — Automatically generating types for Cloudflare Workers

Automatically generating types for Cloudflare Workers

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.

CCloudflare·November 16, 2021Frontend
Frontend — JavaScript modules are now supported on Cloudflare Workers

JavaScript modules are now supported on Cloudflare Workers

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.

AAshconAshcon·November 16, 2021Frontend
Frontend — Introducing “Shadow Palette Generator”

Introducing “Shadow Palette Generator”

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
Frontend — Color Alpha Anywhere

Color Alpha Anywhere

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
Frontend — Useful React Hooks That You Can Use In Your Projects — Smashing Magazine

Useful React Hooks That You Can Use In Your Projects — Smashing Magazine

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

IDIfeanyi DikeIfeanyi Dike·November 12, 2021Frontend
Frontend — Semantic menu context

Semantic menu context

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
Frontend — Localizing Your Next.js App — Smashing Magazine

Localizing Your Next.js App — Smashing Magazine

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

AFAtila FassinaAtila Fassina·November 9, 2021Frontend
Frontend — Icon Glassmorphism Effect in CSS

Icon Glassmorphism Effect in CSS

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

ATAna TudorAna Tudor·November 8, 2021Frontend
Frontend — enterkeyhint

enterkeyhint

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

CCChris Coyier·November 5, 2021Frontend
Frontend — The State Initializer Pattern

The State Initializer Pattern

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.

KCKent C. DoddsKent C. Dodds·November 5, 2021Frontend
Frontend — GraphQL On The Front-End (React And Apollo) — Smashing Magazine

GraphQL On The Front-End (React And Apollo) — Smashing Magazine

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

DADavid AtandaDavid Atanda·November 4, 2021Frontend
Frontend — Chapter 10: Browser Wars

Chapter 10: Browser Wars

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

JHJay Hoffmann·November 3, 2021Frontend
Frontend — How to React ⚛️

How to React ⚛️

Let's see how learning React ⚛️ in the right order can make it less overwhelming.

KCKent C. DoddsKent C. Dodds·November 3, 2021Frontend
Frontend — A Deep Dive Into Serverless UI With TypeScript — Smashing Magazine

A Deep Dive Into Serverless UI With TypeScript — Smashing Magazine

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.

IAIkeh AkinyemiIkeh Akinyemi·November 3, 2021Frontend
Frontend — Responsible JavaScript

Responsible JavaScript

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

CCChris Coyier·November 2, 2021Frontend
Frontend — CSS-ing Candy Ghost Buttons

CSS-ing Candy Ghost Buttons

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

ATAna TudorAna Tudor·October 31, 2021Frontend
Frontend — Vite + _____

Vite + _____

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

CCChris Coyier·October 28, 2021Frontend
Frontend — Sticky Definition Lists

Sticky Definition Lists

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

CCChris Coyier·October 27, 2021Frontend
Frontend — Testing Vue Components With Cypress

Testing Vue Components With Cypress

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

MNMark NoonanMark Noonan·October 27, 2021Frontend
Frontend — Optimizing Next.js Applications With Nx — Smashing Magazine

Optimizing Next.js Applications With Nx — Smashing Magazine

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

MKMelvin KosisochukwuMelvin Kosisochukwu·October 26, 2021Frontend
Frontend — A Deep Dive Into object-fit And background-size In CSS — Smashing Magazine

A Deep Dive Into object-fit And background-size In CSS — Smashing Magazine

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

ASAhmad ShadeedAhmad Shadeed·October 25, 2021Frontend
Frontend — The CSS-in-React Landscape

The CSS-in-React Landscape

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

CCChris Coyier·October 21, 2021Frontend
Frontend — Introducing the Payment Element

Introducing the Payment Element

Today, we're introducing the Payment Element, an embeddable UI component for your checkout flow that supports 18 payment methods with a single integration.

MCMurray ChapmanMurray Chapman·October 20, 2021Frontend
Frontend — Expandable Sections Within a CSS Grid

Expandable Sections Within a CSS Grid

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

KBKev Bonett·October 15, 2021Frontend
Frontend — Smart CSS Solutions For Common UI Challenges — Smashing Magazine

Smart CSS Solutions For Common UI Challenges — Smashing Magazine

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/

CMCosima MielkeCosima Mielke·October 14, 2021Frontend
Frontend — Bonsai Browser

Bonsai Browser

Web-browser for research that helps programmers think clearly.

CCChris Coyier·October 13, 2021Frontend
Frontend — WooCommerce + Google Analytics

WooCommerce + Google Analytics

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

CCChris Coyier·October 12, 2021Frontend