Capítulo 3 de 17

Chapter 3: Atoms

Core Idea

Atoms are the smallest functional units of an interface — HTML elements like a label, an input, or a button — that can't be broken down further without losing their function; on their own they're abstract and not very useful, but they define the base palette a system builds from.

Key Concepts

  • Basic HTML elements: form labels, inputs, buttons, but also more abstract, non-visual atoms like color palettes, font stacks, and spacing/animation tokens.
  • Abstract in isolation: an atom demonstrated alone (a button with no context) doesn't show how it's actually used — its value shows up once combined into molecules.
  • Atoms as the base palette: a design system's atoms collectively define its raw material — analogous to a paint swatch book before any painting happens.

Mental Models

Judge atoms by their properties, not their looks. An atom's job is to expose a small set of clean, well-defined properties (size, color, disabled state) that molecules and organisms can rely on — not to look impressive standalone.

Include the invisible atoms. Color tokens, typographic scales, spacing units, and animation curves are atoms too, even though they aren't a rendered HTML element — they're foundational primitives a system is built from.

Anti-patterns

  • Judging a design system's maturity by its atom count: more atoms isn't the goal; the goal is atoms that compose cleanly into the molecules and organisms the product actually needs.
  • Designing atoms in a vacuum with no context of how they'll be combined: leads to atoms that look fine alone but don't compose well.

Key Takeaways

  1. Atoms are the smallest, function-defining building blocks — both visual (buttons, inputs) and non-visual (color/spacing/type tokens).
  2. An atom's usefulness is proven by how well it combines into molecules, not by how it looks in isolation.
  3. A style guide's atom section doubles as a system's base palette — the material list before assembly starts.

Connects To

  • Ch 4 (Molecules): where atoms first show their actual purpose, combined with other atoms.
  • Practical — Design Tokens (Ch 11): the non-visual atoms (color, type, spacing) map directly onto what the industry now formalizes as design tokens.