Home/Frontend
Topic

Frontend

1,551 articles on Frontend.

11,834 articles
Frontend — Care for the Text

Care for the Text

How do you make a great website? Everyone has an answer at the ready: Flashy animations! The latest punk-rock CSS trick! Gradients! Illustrations! Colors to

RRRobin RendleRobin Rendle·December 24, 2021Frontend
Frontend — Topological sort

Topological sort

Jordan Scales explores the computer science concept of topological sorting, and what it might look like if applied to the concept of z-index in CSS. So, you

CCChris Coyier·December 16, 2021Frontend
Frontend — HTML Sanitizer API

HTML Sanitizer API

Three cheers for (draft stage) progress on a Sanitizer API! It's gospel that you can't trust user input. And indeed, any app I've ever worked on has dealt

CCChris Coyier·December 16, 2021Frontend
Frontend — CSS-Tricks Chronicle XLI

CSS-Tricks Chronicle XLI

Ya know, I used to do one of these posts after making a few podcast appearances I hadn't had a chance to link up yet, so I could share them. As fate would

CCChris Coyier·December 13, 2021Frontend
Frontend — Spicy Sections

Spicy Sections

What if HTML had "tabs"? That would be cool, says I. Dave has been spending some of his time and energy, along with a group of "Tabvengers" from OpenUI, on

CCChris Coyier·December 7, 2021Frontend
Frontend — How To Protect Your API Key In Production With Next.js API Route — Smashing Magazine

How To Protect Your API Key In Production With Next.js API Route — Smashing Magazine

There’s a great challenge that comes with building Jamstack applications on the web. In this article, Caleb Olojo will be using Next.js to bootstrap your app. This does not mean that the [create-react-app](https://create-react-app.dev/) library will not work. You can make use of any one that you find convenient. You’re using Next.js because of the many perks that come with it.

COCaleb OlojoCaleb Olojo·December 2, 2021Frontend
Frontend — Diagonal Stripes Wipe Animation

Diagonal Stripes Wipe Animation

I was playing this game on Apple Arcade the other day called wurdweb. It's a fun little game! Little touches like the little shape dudes that walk around the

CCChris Coyier·November 30, 2021Frontend
Frontend — 3D CSS Flippy Snaps With React And GreenSock — Smashing Magazine

3D CSS Flippy Snaps With React And GreenSock — Smashing Magazine

One of Jhey’s main mantras is to make learning fun. In this article, he shows you ways to level up your skills by bringing your ideas to life, and not forgetting that you can be playful with code. With that mindset, every idea is bound to become an opportunity to try something new. It’s fun to make things that we may not create on a day-to-day basis. Demos like this can pose different challenges a

JTJhey TompkinsJhey Tompkins·November 29, 2021Frontend
Frontend — How To Maintain A Large Next.js Application — Smashing Magazine

How To Maintain A Large Next.js Application — Smashing Magazine

There are a few ways in which you can make a large code-base easy to maintain. In this article, Nirmalya discusses some of the complex problems that he faced while building and maintaining large Next.js applications. He always explains how these problems can be solved by using various tools. Most of these points will apply to any front-end application. For any front-end application, the main prior

NGNirmalya GhoshNirmalya Ghosh·November 26, 2021Frontend
Frontend — A Modern CSS Reset

A Modern CSS Reset

I have a set of baseline CSS styles that come with me from project to project. In the past, I'd use a typical CSS reset, but times have changed, and I believe I have a better set of global styles!

JWJosh W. Comeau·November 23, 2021Frontend
Frontend — Adding A Dyslexia-Friendly Mode To A Website — Smashing Magazine

Adding A Dyslexia-Friendly Mode To A Website — Smashing Magazine

The separation of content and presentation that CSS gives us always comes in handy when we need to adapt designs to better serve different communities. With a little CSS, we can adapt our web designs to be more accommodating for people with dyslexia. In this article, John C Barstow will explore those techniques by adding a dyslexia-friendly mode to an existing design.

JBJohn BarstowJohn Barstow·November 23, 2021Frontend
Frontend — Smashing Workshops: Winter 2021 — Smashing Magazine

Smashing Workshops: Winter 2021 — Smashing Magazine

What’s the state of CSS, Vue.js and Next.js? What are new, smart interface design patterns we could use? Let’s figure it out. With our [online workshops on UX, front-end and design](https://smashingconf.com/online-workshops).

ILIris LjesnjaninIris Ljesnjanin·November 22, 2021Frontend
Frontend — Next.js Wildcard Subdomains — Smashing Magazine

Next.js Wildcard Subdomains — Smashing Magazine

Wildcard domains often go under the radar. Hosting with a wildcard subdomain enables your users to visit your site on any subdomain of your domain (*.example.com), and as you can imagine, we can use this to create unique user experiences which we’ll be exploring in this article through a Next.js lens.

SPSam PoderSam Poder·November 19, 2021Frontend
Frontend — The Gap (Design Engineering)

The Gap (Design Engineering)

Egor Kloos describes a situation where a (purely visual) designer asks for some changes to a component. There is a misunderstanding where the (code monkey)

CCChris Coyier·November 17, 2021Frontend
Frontend — A Guide To Modern CSS Colors With RGB, HSL, HWB, LAB And LCH — Smashing Magazine

A Guide To Modern CSS Colors With RGB, HSL, HWB, LAB And LCH — Smashing Magazine

Did you know that your chosen color palette can have an impact on how much energy your website uses? Even a more environmentally friendly choice of colors can reduce the impact on the battery life of mobile devices. In this article, Michelle Barker shares advice on the not-so-obvious things you have to keep in mind when handling colors in CSS today.

MBMichelle BarkerMichelle Barker·November 17, 2021Frontend
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 — 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 — 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 — 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 — 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 — 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 — 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