Home/Frontend
Topic

Frontend

1,512 articles on Frontend.

11,739 articles
Frontend — Testing Pipeline 101 For Frontend Testing — Smashing Magazine

Testing Pipeline 101 For Frontend Testing — Smashing Magazine

Automated testing can give you much confidence in merging your changes, especially in extensive refactoring or working with your teammates. As a result, you might have thought about including testing as part of your build routine to get the most value out of it. Don’t know where to start? Let’s implement your testing pipeline together from scratch.

RSRamona SchweringRamona Schwering·February 21, 2022Frontend
Frontend — Implications Of WordPress Joining The Block Protocol — Smashing Magazine

Implications Of WordPress Joining The Block Protocol — Smashing Magazine

When working with JavaScript-based libraries, such as React or Vue, we work with “components” which are pieces of code grouped together. A “block” is also a component, but it is high-level, asserting a definitive purpose, and defining the requirements to produce the desired layout or functionality. It is the outermost component from the hierarchy of components wrapping each other, so it has a bird

LLeonardolosovizLeonardolosoviz·February 15, 2022Frontend
Frontend — React State Management Using Easy Peasy — Smashing Magazine

React State Management Using Easy Peasy — Smashing Magazine

According to the documentation, Easy Peasy is an abstraction of Redux, providing a reimagined API that focuses on developer experience. It allows you to quickly and easily manage your state, whilst leveraging the strong architectural guarantees. We’ll use Easy Peasy as a state manager of choice to build a note application which would help us learn how it works.

TToppleTopple·February 1, 2022Frontend
Frontend — Fred Wang: Senior Backend Engineer

Fred Wang: Senior Backend Engineer

I’m part of the Mambas team at Spotify, which is responsible for all the animation, presentation and personalized data in the Wrapped interactive mobile app. My job is to take the raw data from the backend and enrich it, translate it and format it for different regions before it goes to the frontend mobile engineers. That includes deciding what music to play during data stories and what images and

SESpotify Engineering·February 1, 2022Frontend
Frontend — Getting Started With CSS Cascade Layers — Smashing Magazine

Getting Started With CSS Cascade Layers — Smashing Magazine

We all have run into CSS collisions and sudden regressions in our codebases when new styles are written or 3rd-party styles are added. This is because of the interdependence of styles due to source order, specificity, and inheritance. Some ways to control the cascade have included methodologies like ITCSS and BEM and other newer native features. Cascade layers will be the ultimate native solution

SEStephanie EcklesStephanie Eckles·January 24, 2022Frontend
Frontend — Building The Real App With React Query — Smashing Magazine

Building The Real App With React Query — Smashing Magazine

You probably know how annoying it could be to handle different states, if you have ever built React applications that use asynchronous data. In this article, Georgii Perepecho explains the most common React Query features that you need to be familiar with when creating a real-life application that is stable when testing.

GPGeorgii PerepechoGeorgii Perepecho·January 20, 2022Frontend
Frontend — Modern Fluid Typography Using CSS Clamp — Smashing Magazine

Modern Fluid Typography Using CSS Clamp — Smashing Magazine

In this article, Adrian Bece will explore fluid typography principles, use-cases, best practices, implementation with CSS clamp function and how to calculate the right parameters. He’ll also show you how to address some accessibility concerns and watch out for one important issue that you cannot fix as of yet, but have to be aware of regardless.

ABAdrian BeceAdrian Bece·January 17, 2022Frontend
Frontend — Using the CSS Me Not Bookmarklet

Using the CSS Me Not Bookmarklet

The CSS Me Not bookmarklet lets you see all of the CSS files on a site, notably unused files you might want to prevent from loading.

CCChris Coyier·January 14, 2022Frontend
Frontend — Mondrian Art in CSS From 5 Coders

Mondrian Art in CSS From 5 Coders

I saw some Mondrian Art in CSS going around the other day and figured I'd go looking for others I've seen over the years and round them up.

CCChris Coyier·January 14, 2022Frontend
Frontend — Building A Web Code Editor — Smashing Magazine

Building A Web Code Editor — Smashing Magazine

If you’re a developer who’s thinking about building a platform that requires a code editor in one form or another, then this article is for you. This article explains how to create a web code editor that displays the result in real time with the help of some HTML, CSS and JavaScript.

DDDaniel DonDaniel Don·January 13, 2022Frontend
Frontend — How to Make a Pure CSS 3D Package Toggle

How to Make a Pure CSS 3D Package Toggle

You know how you can get cardboard boxes that come totally flat? You fold ‘em up and tape ‘em to make them into a useful box. Then when it’s time to recycle

JTJhey TompkinsJhey Tompkins·January 12, 2022Frontend
Frontend — A Deep CSS Dive Into Radial And Conic Gradients — Smashing Magazine

A Deep CSS Dive Into Radial And Conic Gradients — Smashing Magazine

CSS gradients are a useful CSS feature that can be used to create interesting UI effects or even help us in drawing something without the need to create HTML elements for it. In this article, we’ll be taking a closer look at two gradients: `conic-gradient` and `radial-gradient`. You’ll see how each one of them works in detail, what the differences and similarities are between them, how and where t

ASAhmad ShadeedAhmad Shadeed·January 10, 2022Frontend
Frontend — CSS-Based Fingerprinting

CSS-Based Fingerprinting

Fingerprinting is bad. It's a term that refers to building up enough metadata about a user that you can essentially figure out who they are. JavaScript has

CCChris Coyier·January 3, 2022Frontend
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