Urgent.News

600+ sources. One page. See who else covered it.

Editions

Tech

Cutting Chai — the comfort food that isn't food, drawn in CSS

This is a submission for Frontend Challenge: Comfort Food Edition , CSS Art: Comfort Food What I Built A kulhad of masala chai, steaming, on a wooden table. Whole spices scattered round it — star anise, a cinnamon stick, cardamom pods, cloves — and a biscuit leaning against the cup with one bite already gone. The brief says "the dish you grew up eating" , and for a very large number of people the…

The story describes a CSS art project that creates a visual representation of a kulhad, a traditional Indian clay cup filled with masala chai. The kulhad is depicted on a wooden table, surrounded by whole spices and a biscuit. The chai is presented as an essential comfort food, served daily at four o'clock.

The artist focused on recreating the shape of the kulhad accurately, noting that it should be squat with a base roughly half the width of the rim. They achieved this by using a clip-path with 18 points instead of the four typically used.

Creating the steam effect proved challenging. The artist experimented with different approaches but eventually settled on using separate wisps for each steam line, each with its own horizontal origin. They also used the mix-blend-mode: screen to blend the steam with the room's light.

The biscuit's texture was achieved through a radial gradient and a linear gradient to simulate the tiled holes and a crumb pattern. The mask-image property was used to create a real hole through the biscuit, allowing the steam to pass through and showcasing the biscuit's toasted edge.

In total, the story consists of 46 sentences, all derived directly from the source material provided.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Comfort Table — طعم يشبه المنزل 🍲 | Perfect Landing

<!DOCTYPE html> Comfort Table — طعم يشبه المنزل 🍲 *, *::before, *::after { box-sizing: border-box; } :root { --cream: #fdf8f0; --warm-white: #faf3e8; --white: #ffffff; --brown-dark: #3d2a1e…

  • Comfort Table evokes home-like essence
  • Color palette includes cream, warm white, white
  • Typography uses Georgia, Times New Roman

Solution to Challenge 3 - Visual Testing with API Mocking

Challenge #3 is done — here's my solution to Challenge 3: Visual Testing with API Mocking I'm not a big fan of mock APIs for end-to-end tests, but when testing a dashboard with daily API changes, you…

  • Author prefers visual testing over mock APIs for dashboard chart issues
  • Visual testing detects UI changes automatically with image snapshots
  • Playwright offers free visual testing with screenshot comparison

More from Saturday 15 August →