DEV Community

CSS

Cascading Style Sheets (CSS) is a simple language for adding style (e.g., fonts, colors, spacing) to HTML documents. It describes how HTML elements should be displayed.

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
How I test CSS animations with Playwright and getAnimations()

How I test CSS animations with Playwright and getAnimations()

Comments
5 min read
Your CSS is 30% whitespace. Here is what a minifier actually removes

Your CSS is 30% whitespace. Here is what a minifier actually removes

Comments
3 min read
A4 Paper Broke My Responsive Layout — and Made the Product Better

A4 Paper Broke My Responsive Layout — and Made the Product Better

Comments
4 min read
Cap agent Tailwind changes to one utility family per PR

Cap agent Tailwind changes to one utility family per PR

Comments
3 min read
Running a Hebrew storefront in Next.js: the RTL bugs nobody warns you about

Running a Hebrew storefront in Next.js: the RTL bugs nobody warns you about

Comments
3 min read
Ảnh mẫu tóc trên mobile: giữ trọn phom tóc với srcset và sizes

Ảnh mẫu tóc trên mobile: giữ trọn phom tóc với srcset và sizes

Comments
2 min read
The progress bar that made typing lag: debugging a 331 ms INP in a React game

The progress bar that made typing lag: debugging a 331 ms INP in a React game

1
Comments
7 min read
I Built a Zero-Dependency Glassmorphism & Neumorphism CSS Generator (Vanilla JS) 🚀

I Built a Zero-Dependency Glassmorphism & Neumorphism CSS Generator (Vanilla JS) 🚀

Comments
2 min read
Freeze design tokens the agent may not edit — allowlist only

Freeze design tokens the agent may not edit — allowlist only

1
Comments 1
3 min read
I put a diffusion model in a stylesheet. No JavaScript.

I put a diffusion model in a stylesheet. No JavaScript.

Comments
3 min read
The Mathematics of Aspect Ratios: How Euclidean GCD and Modern CSS Eliminated the 56.25% Hack

The Mathematics of Aspect Ratios: How Euclidean GCD and Modern CSS Eliminated the 56.25% Hack

Comments
7 min read
Warm Mono: How a Storefront Reads Premium Without an Accent Colour

Warm Mono: How a Storefront Reads Premium Without an Accent Colour

Comments
5 min read
Typography QA: catching wrong-font bugs before they ship

Typography QA: catching wrong-font bugs before they ship

Comments
1 min read
How to get the exact HEX code from any image (and turn it into a CSS or Tailwind palette)

How to get the exact HEX code from any image (and turn it into a CSS or Tailwind palette)

Comments
3 min read
dvh Is Not a Keyboard Fix: Picking the Right Viewport Tool on Mobile

dvh Is Not a Keyboard Fix: Picking the Right Viewport Tool on Mobile

Comments 1
4 min read
đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.