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.
Generating a Tailwind color scale from one hex with OKLCH (in about 80 lines of JS)

Generating a Tailwind color scale from one hex with OKLCH (in about 80 lines of JS)

Comments
8 min read
Frutiger Aero: why the glossy 2000s look is back

Frutiger Aero: why the glossy 2000s look is back

Comments
9 min read
A 35-scene web film in one HTML file: how we built Chaski

A 35-scene web film in one HTML file: how we built Chaski

Comments
5 min read
Why CSS backdrop-filter Can't Do Real Apple Liquid Glass — and How to Build It in One 60fps WebGL2 File

Why CSS backdrop-filter Can't Do Real Apple Liquid Glass — and How to Build It in One 60fps WebGL2 File

Comments
4 min read
The Classlist(CSS basics part 5/60)

The Classlist(CSS basics part 5/60)

Comments
1 min read
Your transparent PNG gains a white fringe in the browser: premultiplied alpha, explained

Your transparent PNG gains a white fringe in the browser: premultiplied alpha, explained

Comments
4 min read
CSS Grid vs Flexbox: When to Use Which

CSS Grid vs Flexbox: When to Use Which

Comments
2 min read
CSS Transforms and Transitions for Beginners: Animate Without JavaScript

CSS Transforms and Transitions for Beginners: Animate Without JavaScript

Comments
2 min read
Christmas lights that hang from your real headings (and swing when you move the mouse)

Christmas lights that hang from your real headings (and swing when you move the mouse)

Comments
3 min read
What a Framer site looks like as an Astro project

What a Framer site looks like as an Astro project

Comments
5 min read
Why AI Coding Agents Miss the Last 5% of Figma Designs — and How a 100% Local VISUAL_DIFF.md Prompt Fixes It

Why AI Coding Agents Miss the Last 5% of Figma Designs — and How a 100% Local VISUAL_DIFF.md Prompt Fixes It

Comments
4 min read
Why your CSS gradients go grey in the middle (and the one keyword that fixes it)

Why your CSS gradients go grey in the middle (and the one keyword that fixes it)

Comments
4 min read
Structuring AI Design Prompts for Lovable: Patterns and Examples

Structuring AI Design Prompts for Lovable: Patterns and Examples

Comments
4 min read
React: estados honestos para un inbox temporal

React: estados honestos para un inbox temporal

Comments
4 min read
CSS interpolate-size: animate to height: auto

CSS interpolate-size: animate to height: auto

Comments
4 min read
👋 Sign in for the ability to sort posts by relevant, latest, or top.