logo
Kurashizu Blogwhere ideas flow
  • Home
  • News
  • Blog
  • About
  • Home
  • News
  • Blog
  • About

© 2026 Kurashizu. All rights reserved.

Admin·New Post·Service Status
Powered by Cloudflare·31.10.26
← Back to news

The CSS Zen Garden dream, finally shipped

Original article
josprague.com|50 points|21 comments|by yosito|Sep 15, 2026

The Realization of the CSS Zen Garden Vision

By Jo Sprague | August 14, 2026

The Dream and the Disillusionment

Shortly after graduating college in 2008, I encountered CSS Zen Garden, a project by Dave Shea. It demonstrated a captivating concept: a single HTML document could be transformed into entirely different visual experiences using only CSS.

It felt like a revelation—a future of clean, modular design completely decoupled from the underlying content. However, applying this to professional client projects revealed a harsh reality. The dream was attainable impossible at the time because:

  1. CSS properties were too limited for high-fidelity designs.
  2. We relied on server-side processing+image-heavy layouts\text{server-side processing} + \text{image-heavy layouts}server-side processing+image-heavy layouts.
  3. Table-based layouts and endless "hacks" were the norm.
  4. Browser inconsistency meant most of our time was spent fighting rendering engines.

The Evolution of the Web

It took nearly twenty years to bridge this gap. The most significant leaps happened recently, moving us from a world of workarounds to a world of standards.

Feature2008 EraModern Era
LayoutTables, Floats, HacksGrid and Flexbox
ConsistencyBrowser-specific bugsStandardized implementation
LogicPreprocessors/Server-sideNative CSS Properties

Shipping the Vision: Firefox.com

Collaborating with Mozilla and Lincoln Loop, I had the opportunity to rebuild Firefox.com. My goal was to implement the entire system using modern, native CSS—completely eschewing preprocessors.

Project Specifications

The scope of the build was extensive:

  • 70+ unique components
  • 25+ page templates
  • Integrated as Wagtail components (allowing content editors to build pages without needing a developer).

The technical workflow looked like this:

The "Build Step" Nuance

To be transparent, we did utilize PostCSS in our production pipeline. However, its role was singular: inlining @import statements.

"Native @import still suffers from poor performance in certain browsers. On a high-traffic site, performance outweighs architectural purity."

It is crucial to distinguish between a "build step" that transforms a dialect (like Sass) and one that simply flattens files for the browser. In this project, the source code is the exact language the browser speaks.

/* Example of the native approach */
:root {
  --firefox-brand-color: #ff7139; /* Exported directly from design */
}

.component {
  display: grid;
  gap: var(--firefox-brand-color);
}

Why This Matters

Executing this vision for Mozilla—a primary champion of web standards—was deeply symbolic. Firefox.com is a site about the browser, created by the organization that spent two decades advocating for the very platform used to build it. It was the ultimate litmus test for whether the platform is truly ready.

A Debt of Gratitude

My approach to this craft was shaped by pioneers who viewed CSS as a systemic discipline:

  • Nicole Sullivan
  • Rachel Andrew
  • Jen Simmons
  • Chris Coyier
  • Eric Meyer (my hometown hero)
  • Kasey Kelly (who facilitated the Mozilla connection)

The Bottom Line

Whether I am using native CSS, Tailwind, or shadcn/ui, the core philosophy remains the same: Design systems should enable speed and consistency.

The goal is to minimize the "translation loss" between a designer's intent and the final production code. We can express this as a desire for maximum efficiency:

Efficiency=Design IntentNumber of Translations\text{Efficiency} = \frac{\text{Design Intent}}{\text{Number of Translations}}Efficiency=Number of TranslationsDesign Intent​

When the "right" way to build is also the "easiest" way, everyone wins.


Looking to modernize your front-end foundation? Get in touch.

Modern Web Design