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

The Open Sourcerer of Forem: Beyond the UI

dev.to · 13 Apr

CSS · GitHub · Open Source

A developer recounts their first successful open source contribution to the Forem repository, documenting their journey from setting up the environment to fixing a UI z-index bug.

The author emphasizes the importance of patience, clear communication with maintainers, and aligning contributions with project needs, while encouraging others to start their open source journey.

Replicating Reddit's best feature on other forums

xavd.id · 23 Aug

CSS · Frontend · UX

The author recreates Reddit’s unobtrusive “friend” highlighting for Tildes and Lobsters with rolodex, a CLI that reads TOML username lists and generates CSS for Stylus.

A template repository simplifies installation and updates. The workaround improves recognition and community feel, but requires manual rebuilding, lacks synchronization and mobile support, and cannot create feeds; native following remains preferable.

What was your win this week?

dev.to · 6 Mar

CSS · Frontend · Open Source

A developer celebrates their first contribution to the official Forem repository, fixing a UI z-index bug affecting emojis and GIFs.

Other community wins include a game release titled Sunday DEV Drive, joining the AWS Community Builders program via DEV networking, and submitting a reflection for the Google Gemini Dev Challenge.

Jim's TrueType QR Code Font

qr.jim.sh · 8 Jul

CSS · UI

Jim's TrueType QR Code Font enables the generation of QR codes directly within text editors by using OpenType features.

By wrapping text in brackets, the font renders QR codes as character data. This innovative approach allows QR codes to be treated as ordinary text, though developers should use white-space: nowrap to prevent browser layout issues.

🥁 Mâm Cơm Landing Page: I built a Vietnamese dinner tray on a 3,000-year-old bronze drum

dev.to · 6 Aug

Accessibility · CSS · Frontend

Inspired by the traditional Vietnamese 'mâm cơm' and the historic Đông Sơn drum, this project creates an interactive digital rice tray.

It features a rotatable UI built with custom CSS, vanilla JavaScript, and an accessible tablist architecture. The site balances historical aesthetics with modern performance, including rigorous accessibility standards and automated testing for design integrity.

Would you reconsider your Tufte CSS sidenotes?

kyo.iroiro.party · 29 Nov

CSS · Frontend · HTML · UX

Inline Tufte CSS sidenotes can harm accessibility and text usability despite working visually across wide and narrow layouts.

Because notes are embedded inside paragraphs and repositioned with CSS, text selection, reader modes, text browsers, and screen readers may produce confusing order, missing spaces, or unwanted copied content; collapsible checkbox controls also add interaction that conflicts with Tufte’s unobtrusive design. The author recommends semantically correct footnotes, positioned with CSS Grid or similar techniques and kept as blocks on mobile.

Git Blamed Me, CSS Gaslit Me, Node Ghosted Me, React Re-rendered My Trauma

dev.to · 14 Feb

CSS · Frontend · React

This piece humorously analyzes the modern web development stack, contrasting the deterministic nature of Git with the interpretive behavior of CSS, the temporal complexity of Node.js, and the declarative state management of React.

It explores how these disparate philosophies—immutable history, cascading negotiation, event-driven concurrency, and virtual DOM reconciliation—converge to create modern engineering.

CSS or BS?

keithcirkel.co.uk · 1 Apr

CSS · Frontend · UI

This challenge tests your knowledge of the CSS specification by presenting 20 rounds of property names.

Users must distinguish between legitimate CSS properties and fabricated ones, navigating through over 600 existing properties, some of which are designed to sound deceptive. The game demands accuracy as users face increasingly difficult examples.

font-family recommendations

chrismorgan.info · 25 Jun

CSS · Frontend · UI

Web fonts and long lists of system font stacks are often unreliable due to loading issues and browser variations.

It is recommended to use only generic font families like serif, sans-serif, and monospace, as modern browser defaults are now sufficient. Avoid system-ui fonts for longform content and simplify font-family declarations to ensure better cross-platform consistency.

Celebrate June rituals with Solstice Bingo!

dev.to · 11 Jun

CSS · HTML · JavaScript

Solstice Bingo is a browser-based game inspired by June traditions worldwide, built using plain HTML, CSS, and JavaScript.

The project features dynamic background sky animations and persists progress via localStorage. Developed with Gemini and Claude as coding assistants, the game serves as an interactive celebration of global rituals and a personal learning project.

Justifying text-wrap: pretty

matklad.github.io · 25 Feb

CSS · Frontend · UX

In 2025, Safari introduced 'text-wrap: pretty', improving web typography through balanced line breaks.

While utilizing dynamic programming similar to TeX, the implementation currently conflicts with 'text-align: justify', causing excessive whitespace when lines are systematically shortened. This analysis highlights the challenge of combining intelligent line-breaking algorithms with justification in responsive web environments.

CSS Clicker

lyra.horse · 12 Feb

CSS · Frontend · HTML

CSS Clicker is an innovative idle game built entirely using HTML and CSS, functioning without any JavaScript or server-side code.

Developed as a technical challenge inspired by the Cohost community, it allows players to build and upgrade websites. The project demonstrates the power of CSS media queries and state management without traditional scripting.

CSS: the bomb inside your inbox

portswigger.net · 18 Aug

Cybersecurity · CSS · HTML

Gareth Heyes demonstrates how discrepancies between browsers and webmail HTML/CSS sanitizers enable trust-boundary escapes, UI manipulation, indirect prompt injection, token exfiltration, tracking, and password theft across services including Outlook, Fastmail, Gmail, and ProtonMail.

The research details CSS mutation, CSS hotwiring, CSS gadgets, and keyloggers, then recommends sandboxed iframes, strict allowlists, blocked requests, and safer sanitization.

Modern CSS Code Snippets

modern-css.com · 16 Feb

CSS · Frontend · HTML

The content provides a curated collection of modern CSS techniques that serve as native replacements for legacy hacks.

It focuses on simplifying web development by offering weekly side-by-side comparisons, helping developers transition from outdated workarounds to clean, modern standards for common styling challenges.

CSS Optical Illusions

dev.to · 15 Jan

CSS · Frontend · UX

A collection of 40 optical illusions created using only CSS and HTML on CodePen, exploring properties like color perception, motion, and geometric distortions.

The project includes classic effects such as Curvature Blindness and the Breathing Square, demonstrating how styling and animation can trick the human brain into seeing non-existent colors or movements.

The Proportional Web

owickstrom.github.io · 12 Jul

CSS · Frontend · HTML

Oskar Wickström introduces The Proportional Web, a responsive CSS stylesheet inspired by Robert Bringhurst's The Elements of Typographic Style.

It provides a clean, minimalist, and typographic-focused framework for prose-heavy web documents, utilizing rem units, semantic HTML5, and Alegreya fonts to ensure readability across devices.

Someone good at CSS help, my website design is dying

ahti.space · 6 Apr

CSS · Frontend · UI

Applying border-radius to nested elements like article and header causes color bleeding due to anti-aliasing during the composition process.

Transparent pixels at the edges blend with background colors before the final composite. Setting overflow: hidden on the parent container ensures correct clipping, preventing the visible white seam between header and article elements.

Easy (Horizontal Scrollbar) Fixes for Your Blog CSS

aartaka.me · 1 Jan

Accessibility · CSS · Frontend

Artyom Bologov provides a practical guide for web developers and bloggers to eliminate the dreaded horizontal scrollbar on mobile viewports.

The article identifies four primary culprits: preformatted code blocks (<pre>), large images (<img>), complex tables (<table>), and long unbroken words. For code, setting 'overflow-x: auto' allows local scrolling. For images, applying 'max-width: 100%' prevents them from exceeding the container’s width. Tables can be wrapped in a scrollable div to manage overflow properly. Finally, the author suggests using the <wbr> tag or the 'word-break: break-word' CSS property to handle long strings, ensuring a cleaner and more accessible user experience on small screens.

cursor:pointer on buttons

blog.kizu.dev · 13 Nov

CSS · Frontend · UI · UX

The CSS Working Group resolved that controls using `appearance: base-…` should default to `cursor: pointer`, including buttons, selects, checkboxes, radios, and related inputs.

The proposed user-agent rule is overrideable because it lacks `!important`, so authors can choose `default` or another cursor. The decision distinguishes interactive controls from blank space, while acknowledging that buttons and links may ultimately deserve different cursors and that more cursor types are needed.

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