Back to all writings

Styles are Dead: The Engineering Logic Behind 3-Level Variable Structures

Why static styles crumble at scale, and how organizing design tokens into Primitives → Semantics → Components creates an unbreakable contract between Figma and code.

Draft Preview · Coming Soon

This article is currently being written and refined. The content below is a preview of the outline and core insights.

Styles are Dead: The Engineering Logic Behind 3-Level Variable Structures

The Breakdown of Flat Styles

For years, design tools taught us to create flat color palettes and static text styles. But when applications scale to support dark mode, multi-brand white labeling, and multi-tenant platforms, static styles fail catastrophically.

In modern design systems, variables are not just color swatches—they are typed data structures reflecting functional hierarchy.

Key insight

Level 1: Primitives (raw values like `blue-500`) → Level 2: Semantics (intent like `color-interactive-primary`) → Level 3: Components (scoped usage like `button-primary-bg`).