The five best design links, every weekday

Category: Css

All Categories

joshwcomeau.com

Folding the DOM

In this post, we’ll explore a technique we can use to “fold” a DOM node, like folding a letter in real-life.

frontendmasters.com

Gap is the new Margin

In 2020, Max Stoiber wrote the spicy "Margin considered harmful".

joshwcomeau.com

CSS in React Server Components

When the core React team unveiled their vision for the future of React, some of my favourite libraries got scrambled.

piccalil.li

How we’re approaching theming with modern CSS

We’ve started a new project which requires heavy, creative theming, so I made a prototype to test some ideas out.

scottjehl.com

How would you build Wordle with just HTML & CSS?

A fun little form validation and CSS selector experiment.

frontendmasters.com

Drawing a Line to Connect Elements with CSS Anchor Positioning

The World Wide Web Consortium (W3C) published a First Public Working Draft of CSS Anchor Positioning last year, so I thought I would give it a try.

dev.to

Curious Geckos: The Most Precise CSS-only Position-Aware Mini-Game

A CSS-only, no JS, no checkbox, position-aware (hover/touch aware) interactive gecko-luring game.

kizu.dev

Layered Toggles: Optional CSS Mixins

In this article, I am sharing the next evolution of space & cyclic toggles, which allows us to create and apply optional mixins in CSS.

danburzo.ro

How to think about HTML responsive images

srcset, sizes, picture, source, and how they all fit.

texteffects.dev

Text Effects

Articles exploring the world of text effects using CSS, HTML, and JavaScript

southleft.com

Taming the Shadow DOM: Injecting Global Styles with Adopted Stylesheets

Learn how to bridge the gap between web components’ Shadow DOM and global styles using the power of adopted stylesheets.

ishadeed.com

An Interactive Guide to CSS Container Queries

Learn how to use CSS container queries today.

css-tricks.com

The Power of :has() in CSS

In this post we are going to explore the use of :has() in your next web project.

robinrendle.com

How to Kill the Cascade

In this blogger’s opinion, the cascade has always had this glaring, terrible flaw.

uxdesign.cc

Why UI designers should understand Flexbox and CSS Grid

Or bye bye, rigid column grid layout.

web.dev

CSS color-scheme-dependent colors with light-dark()

Define colors that react to the used color-scheme with the light-dark() function.

lea.verou.me

Proposal: CSS Variable Groups

CSS Variable Groups is a way to define multiple properties under the same namespace and pass the entire group around.

nerdy.dev

Can you feel the rhythm‽

Flex and grid logical layouts and logical props make the concept of baseline grids an international reality.

letsbuildui.dev

How to Animate Borders in CSS

Different approaches for animating CSS borders in 2024.

piccalil.li

Front-End solution: progress indicator

I’ve opted for a little web component that progressively enhances a loading statement.