Discover · smashingmagazine.com

No picture published by smashingmagazine.com

Embracing Playful Imperfection With The CSS `random()` Function

Articles on Smashing Magazine smashingmagazine.com

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.

More ways to use this
Open on another device
Scan this QR code to open the same public page

Scan to open this page. Your saved notes and account access are not included.

Download QR code

Open the page link

In the piece

Named in it

Keep going

Each of these is read from what this estate already kept: the feed a piece came through, the publisher behind it, the credits and topics the publisher printed. None of it is a recommendation, an identity or a record kept anywhere else.

Also from Articles on Smashing Magazine

  1. Meet AI 2027 Conference (Dec 1)smashingmagazine.com
  2. AI Sped Up The Build: How Can Accessibility Testing Keep Up?smashingmagazine.com
  3. Should You Actually Add AI To That? A Four-Question Audit For Product Teamssmashingmagazine.com
  4. A New Community For In-House UX Peoplesmashingmagazine.com
  5. Making Immersive LLM Chat Experiences More Accessiblesmashingmagazine.com
  6. Modern CSS Might Make Your Front-End More Complexsmashingmagazine.com