Topic

CSS

Follow CSS layout techniques, Flexbox, Grid, and frontend styling. Our digest aggregates animation libraries, preprocessor frameworks, and CSS-in-JS tooling from developer communities.

What this topic tracks

  • Framework and platform updates
  • UI architecture, build tooling, and performance
  • Browser, accessibility, and product engineering practices

CSS · 92 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

Ball Pit

codepen.io · 25 Mar

CSS · Frontend · HTML

CodePen is a popular social development environment for front-end designers and developers.

It allows users to write code in the browser, experiment with HTML, CSS, and JavaScript, and share their projects instantly. It is widely used for prototyping, learning new web technologies, and showcasing creative coding efforts within the global developer community.

Abusing Customizable Selects

css-tricks.com · 18 Mar

CSS · Frontend · UI

This article explores the new customizable <select> element in Chromium browsers.

Through fun demos like a stack of folders, a fanned deck of cards, and a radial emoji picker, the author illustrates how to use advanced CSS features like ::picker(), sibling-index(), and @starting-style to create interactive, highly stylized dropdown components that remain accessible.

Join the 2026 WeCoded Challenge and Celebrate Underrepresented Voices in Tech Through Writing & Frontend Art 🎨!

dev.to · 6 Mar

CSS · Frontend · HTML

The 2026 WeCoded Challenge on DEV celebrates marginalized developers through storytelling and technical creativity.

Participants can submit personal reflections or frontend art between March 6 and April 5. Winners receive exclusive profile badges and DEV++ memberships, with entries judged on clarity, impact, and the effective use of frontend technologies.

The CSS Zen Garden dream, finally shipped

josprague.com · 15 Sept

CSS · Frontend · UI

A rebuild of Firefox.com with Mozilla and Lincoln Loop demonstrates that modern, native CSS—custom properties, Grid, and Flexbox—can deliver a production design system without preprocessors or hacks.

The project includes 70+ components, 25 templates, and 19 locales in Wagtail. PostCSS only inlines @import for performance, preserving native CSS authorship.

tailwindlabs/tailwindcss

github.com · 7 Nov

CSS · Frontend · UI

Tailwind CSS is a utility-first CSS framework for rapidly building custom user interfaces.

It provides a utility-oriented approach to styling, helping developers compose UI designs efficiently rather than relying on predefined components. The project is maintained by tailwindlabs and provides documentation, GitHub discussions, and contribution resources for developers seeking guidance, best practices, feature ideas, or ways to participate.

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

github.com · 7 Feb

CSS · Frontend · HTML

This technical exploration demonstrates a creative method for implementing an interactive menu using only HTML and CSS, eliminating the need for JavaScript.

The technique centers on the use of two distinct clip-path properties to manage visual transitions. The first creates a circular reveal effect, expanding from the top-left to the bottom-right of the screen. By utilizing a specific calculation involving vmax and a multiplier of 1.42—representing the square root of 2—the developer ensures the circle covers the entire viewport regardless of aspect ratio. The second clip-path utilizes a polygon shape to simulate a light ray effect. While currently hardcoded, this approach offers a lightweight, high-performance alternative for web animations and UI design.

i built a social platform where everything vanishes after 24 hours

dev.to · 3 Mar

CSS · Frontend · React

genjutsu is an open-source, developer-focused social network featuring ephemeral content that vanishes every 24 hours.

Built with React, Tailwind CSS, and Supabase, it emphasizes real-time connection and a manga aesthetic. The platform removes the pressure of permanent digital history, allowing builders to share code snippets and experimental ideas authentically without lasting consequences.

I don't recommend Tailwind CSS

en.andros.dev · 2 Aug

CSS · Frontend · Software Architecture

Tailwind CSS offers quick styling but introduces long-term costs.

Criticisms include high learning curves, inconsistent naming, compromised code readability, and a false sense of CSS mastery. As modern native CSS now incorporates many features previously unique to Tailwind, developers should prioritize learning fundamental CSS before adopting utility-based abstractions for complex projects.

CSS properties you should know for better text designs

master.dev · 11 Aug

CSS · Frontend · UI

Effective web typography relies on creative CSS properties to enhance visual appeal.

Key techniques include using background-clip for fill effects, vertical-align and align-content for precise positioning, box-decoration-break for styling fragmented lines, letter-spacing for dynamic animations, and text-combine-upright for specialized vertical layouts, all of which elevate standard text designs.

CSS-Native Parallax Effect

dan-webnotes.com · 2 Jun

Accessibility · CSS · Frontend

CSS scroll-driven animations now enable native parallax effects, replacing JavaScript-based scroll listeners.

By using view-timeline-name and declarative CSS, developers can create high-performance parallax movements. This method offloads work from the main thread, utilizes utility classes for simplicity, and includes accessibility support for users preferring reduced motion.

CSS Web Components for marketing sites (2024)

hawkticehurst.com · 4 Nov

CSS · Frontend · HTML

The author argues that traditional Web Components utilizing Shadow DOM and JavaScript are often overkill for marketing websites.

Instead, they propose 'CSS Web Components,' an architecture where custom elements wrap standard HTML to provide clear styling boundaries and variant control through CSS attribute selectors without any JavaScript dependency.

Dithering with CSS

ikesau.co · 4 May

CSS · Frontend · UI

This article explores using CSS filters to achieve a dithered visual effect on website imagery.

While primarily for aesthetic purposes rather than bandwidth optimization, this method allows for dynamic, theme-based adjustments. Note that it does not reduce file size, as the original image is still loaded behind the CSS effect.

vladocar/Sumi.css

github.com · 21 Oct

CSS · Frontend · UI

Sumi.css is a minimalist, classless-first CSS framework that makes semantic HTML look finished without JavaScript, dependencies, or a build step.

Its 6.7 KB minified-and-gzipped stylesheet styles typography, forms, tables, cards, accordions, modals, navigation, and controls from HTML elements. It supports automatic or forced light/dark modes, CSS custom-property theming, zero-specificity element rules for easy overrides, responsive layouts, and accessibility features including focus rings, ARIA states, and reduced-motion support.

CSS: Unavoidable Bad Parts

matklad.github.io · 9 Jun

CSS · Frontend · HTML

This guide serves as a practical, non-expert tutorial on CSS, focusing on a learnable subset for building simple websites.

It highlights essential strategies like semantic HTML and classless CSS, while warning against common pitfalls like browser defaults, layout complexities, margin collapsing, and the intricacies of font rendering, ultimately advocating for a pragmatic approach to styling.

Try text scaling support in Chrome Canary

joshtumath.uk · 27 Jan

Accessibility · CSS · Frontend

Chrome Canary has introduced experimental support for a new HTML meta tag, <meta name="text-scale" content="scale" />, allowing mobile web browsers to respect system-level text size preferences.

While desktop browsers have long supported text resizing, mobile platforms often default to full-page zoom or ignore user settings entirely. Developed in collaboration with the Google Chrome team and now part of the CSS Fonts 5 specification, this feature requires a deliberate developer opt-in to prevent layout breakages on sites not designed for large text. Supporting this requires using font-relative units (em, rem) for content while avoiding absolute overrides of the initial font size. This initiative aims to improve accessibility for the significant percentage of mobile users who adjust their text scale for readability.

New Safari developer tools provide insight into CSS Grid Lanes

webkit.org · 14 Jan

Accessibility · CSS · Frontend

Safari Technology Preview 235 has introduced powerful new developer tools designed to simplify the implementation of CSS Grid Lanes, a feature that enables masonry-style layouts within the CSS Grid specification.

This update allows developers to visualize internal content flow through the introduction of Order Numbers in the Grid Inspector. Unlike traditional grids, Grid Lanes allow content of varying aspect ratios to pack together efficiently in either columns or rows. The new inspector tool is vital for accessibility, enabling developers to monitor tabbing sequences and screen reader flow to ensure a logical user experience. Furthermore, the Safari Web Inspector now supports simultaneous overlays without performance degradation, distinguishing between flex gaps and free space while providing labels for track sizes and area names across Grid, Subgrid, and Flexbox containers.

Page Transitions are now easy: CSS View Transitions

irrlicht3d.org · 19 Nov

CSS · Frontend

CSS View Transitions let multi-page websites add app-like navigation animations with one rule, `@view-transition { navigation: auto; }`, replacing substantial JavaScript.

Both same-origin pages must opt in, and transitions apply to user-initiated links and history traversal, not reloads, bookmarks, or address-bar navigation. Developers can customize cross-fades or animate named elements with `view-transition-name`; names must be unique. Chrome, Edge, and recent Safari support cross-document transitions, with Firefox catching up. RocketCake will expose the feature as a one-click option.

Made a CSS-only scroll animation library, 34 moves, no JS

usedolly.dev · 24 Oct

CSS · Frontend

Dolly is a CSS-only scroll animation library with 34 moves and 0 kB of JavaScript.

Add a data-dolly attribute to existing elements, or use data-dolly-scene and data-dolly-pin for pinned sections; the browser runs scroll timelines without initialization, listeners, or IntersectionObserver. It supports progressive fallback, reduced-motion preferences, and effects including parallax, zoom, sequences, and counters. Scroll timelines work in Chrome, Edge, Safari, and Opera, while Firefox shows the completed page without motion.

a pure css implementation of some sunlight streaming in through the window

github.com · 10 Aug

CSS · Frontend · UI

A developer creates a dynamic daylight simulation using CSS and SVG filters.

The project features progressive blur layers, SVG-animated leaf turbulence, and custom CSS matrix3d transformations to achieve realistic perspective distortions. The implementation demonstrates advanced frontend techniques to simulate natural light transitions inspired by Daylight and Sunlit.

Where it came fromHacker NewsDev.toRedditGitHubLobstersCreate a Snapbyte.dev digest and choose CSS as one of your topics.Build your digest