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.

12 stories

Under the hood of MDN's new frontend

developer.mozilla.org · 8 Apr

CSS · Frontend · React

MDN recently overhauled its frontend to replace a debt-ridden React SPA with a component-based architecture using Lit web components and server components.

This shift improves maintainability, performance through granular CSS/JS loading, and developer experience using Rspack. By leveraging modern web standards like Declarative Shadow DOM, MDN achieved a faster, more modular, and highly performant website.

Introducing Microlighter

daverupert.com · 19 Aug

CSS · Frontend · HTML

MicroLighter is a zero-dependency, approximately 2KB client-side syntax highlighter built on the CSS Custom Highlights API instead of DOM-injected spans.

It uses TextMate grammars loaded on demand, human-readable light-dark() themes, and a separate <micro-lighter> web component for features such as line numbers and copy controls.

small details in my mastodon client that i wanted more people to notice

w.on-t.work · 5 Jul

CSS · Frontend · UX

A developer discusses unique design and engineering choices for their personal, unfinished Mastodon client.

Key features include readable class names, responsive layouts with icon-only modes, custom threading visualizations, media carousel optimizations, and creative handling of hashtags and mentions to improve the user experience within the limitations of the ActivityPub ecosystem.

Iframes that finally fit their content

alfy.blog · 9 Oct

CSS · Frontend · UI

Chrome 154 introduces iframe content-height sizing: the parent adds frame-sizing: content-height, while the embedded page must include a responsive-embedded-sizing meta tag with permitted origins.

The browser measures and resizes content without postMessage or resize scripts, though changing content still requires requestResize(). The feature suits payments, widgets, surveys, and self-controlled srcdoc content, but currently works only in Chromium, with fixed-height fallbacks recommended. Strict origin allowlists and min-height help limit data leaks and layout shift.

A few ways of specifying per-theme colours in only CSS

chrismorgan.info · 16 May

CSS · Frontend · Performance

This guide explores six native CSS techniques for implementing per-theme colors, including manual overrides, CSS variables, color-mix(), light-dark(), the experimental if() function, and paused @keyframes.

It favors approaches that support system-level preferences and manual toggling without JavaScript, highlighting the trade-offs between compatibility, verbosity, and interpolation capabilities for modern web development.

Do you use :visited on links?

kevquirk.com · 21 Sept

CSS · Frontend · UX

The author has enabled CSS `:visited` styling on their site, making visited links purple instead of matching unvisited links.

Inspired by Miniflux’s effective use of this distinction for RSS reading, the change helps readers identify links they have already opened. They provide a simple CSS example and ask whether other bloggers use `:visited`.

Dark mode with web standards

olliewilliams.xyz · 4 Jul

CSS · Frontend · UI

Implementing dark mode involves using the CSS color-scheme property and meta tag to respect OS settings while offering users manual toggles.

While color-scheme simplifies color management via light-dark() and system colors, it differs from the prefers-color-scheme media query. Advanced implementations for elements beyond colors currently rely on workarounds involving style queries and custom properties.

The beauty of CSS mixins

patrickbrosset.com · 25 Nov

CSS · Frontend

CSS mixins are an experimental Chromium feature that packages reusable declarations, nested rules, parameters, conditionals, and caller-provided blocks behind @mixin and @apply.

They support typed defaults, private variables, named responsive breakpoints, dark-mode conditions, and flexible theming without exposing markup. A Mixin Zen Garden demonstrates role-based mixins across multiple designs, while highlighting limits: browser support is currently Chromium-only, and nested selectors can still couple customizations to HTML structure.

Effortless animations with CSS view transitions

giacomocavalieri.me · 1 Nov

CSS · Frontend · UI

The author shares their experience using CSS view transitions to create smooth, high-quality animations on a static website without needing any JavaScript.

By implementing the @view-transition rule and the navigation: auto property, developers can easily enable seamless cross-fade transitions between documents. The summary explains how pseudo-elements like ::view-transition-group can be used to customize animation duration and timing functions. Furthermore, assigning unique names via the view-transition-name property allows specific elements to be animated independently across pages, such as transforming a menu item into a breadcrumb. This approach highlights how modern CSS features enable sophisticated web design with minimal effort, even for those who are not experienced frontend developers.

Visited links are purple

dbushell.com · 16 Nov

CSS

The author now styles visited links in purple within blog body copy, following examples from Wikipedia, MDN, and GOV.UK.

WCAG 2.2 does not require visited-link differentiation, and its color-only exception accommodates browser privacy constraints, though links must otherwise meet accessibility criteria. Chromium added :visited link partitioning in 2025. The author also praises Bubbles, a social RSS aggregator supporting personal blogs, while noting its need for better technology filtering and community participation.

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