Embracing Playful Imperfection With The CSS `random()` Function
2026年10月20日
In design, we love spending hours obsessing over consistency, grids, and alignment. But when I heard that the native CSS random() function landed in Safari and is rolling out in Chrome 156, I started wondering: where does randomness actually make sense on the web? Is it something we want in our design system? To find out, I did what I always do in doubt: I built a bunch of playful CodePen demos exploring organic typography, bouncing letters, splayed cards, and a punk fanzine.
As someone who loves building design systems and tinkering with CSS architecture, a big part of my day job revolves around control. We set up spacing scales, lock down typography, set up color tokens, and make sure everything aligns on a grid. Consistency is usually our bread and butter as design engineers and a proud badge of skill when creating design systems. If a card suddenly jumps 20 pixels to the left on a refresh, it’s not creative expression; it’s a bug that the project manager will log.
So when I first heard that the native random() function from the CSS Values and Units Level 5 spec was shipped in Safari, and is currently rolling out in Chrome 156 (with positive signals from Mozilla on Firefox as well), my first reaction was: that’s pretty cool!
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
This article is a sponsored by TestMu AI Pass the string "10-03-2024" to new Date(), and the answer is browser-dependent. Chrome, Edge, and Firefox all return 3rd October 2024 with no warning. Safari returns Invalid Date. A user in Berlin w
As the year draws to a close, many of us are busy meeting deadlines, wrapping up projects, or getting ready for the holiday season. So why not take a moment amid the end-of-year hustle to set the mood for December? Our new collection of des
AI is changing how we design and build, and it isn’t slowing down. On December 1, 2026, SmashingConf is hosting the AI 2027 Conference, a live online half day event to take stock of where AI stands today, what we can expect in 2027, and whe
This article is a sponsored by Level Access Lately, I’ve been thinking and writing a lot about what AI is doing to product development, and what that means for accessibility. The thing that has my wheels turning is a finding from Level Acce
A product team at a large health insurer wants to add AI that writes the full written determination for benefits appeals specialists. The technology works as specified. However, the specialists stop using it, and the ones who keep using it