Skip to content

01 · CASE · META · WHATSAPP

WhatsApp AI-Ready.

A design system reframed as infrastructure: stronger documentation, prompt architecture and components, so AI can understand and build alongside humans.

YEAR
2026
CLIENT
Meta WhatsApp
ROLE
Sr. Design Systems Designer
SERVICES
Design System · Documentation · AI Readiness
AI-READY DESIGN SYSTEM
01

Structured for AI.
Built for humans.

Three connected layers that align documentation, prompt logic, and component architecture so AI can understand, reason, and build.

01
DOCUMENTATION LAYER
D
README.mdPurposeUsageGuidelines
item
item
item
02
PROMPT LOGIC LAYER
P
prompt.yamlcontextrulesconsistency
item
item
item
03
COMPONENT ARCHITECTURE LAYER
C
button.tsxIconLabelContainer
item
item
item
AI UNDERSTANDS. AI BUILDS. HUMANS SHIP.
DS / AI-READY / v1.0.0SYSTEM. LOGIC. COMPONENTS.
01Overview

Design systems as infrastructure

Traditional design systems were built mainly for human use: designers reading guidelines and engineers implementing components. As AI-assisted workflows become part of delivery, systems have to support machine interpretation too. Visual consistency is still the baseline, but interpretability, structure and reliable reuse now matter just as much.

  • Reframed the design system as living infrastructure.
  • Optimised for both human alignment and AI interpretability.
  • Strengthened three connected layers across documentation, prompts and components.
02The problem

Three friction areas

A system can be visually mature and still not be AI-ready.

In this case, three friction areas reduced reliability at scale: fragmented documentation, inconsistent prompt logic, and component architecture that was harder to interpret and reuse than it needed to be. The result was avoidable ambiguity in decisions and output quality across workflows.

  • Documentation depth and format varied.
  • Prompt usage drifted with personal style.
  • Implicit component behaviour reduced reuse confidence.

Friction Map

Ambiguity hotspots across the three pillars of an AI-ready design system

Documentation

Missing usage context

When to use vs. when not to use is unclear, making intent harder to infer reliably.

high friction
Inconsistent naming

Similar concepts are labeled differently across pages, causing mapping confusion.

medium friction
Outdated examples

Examples diverge from current patterns, creating avoidable implementation drift.

medium friction

Prompt Logic

Undefined edge cases

Rare combinations lack fallback logic, reducing output quality under complexity.

high friction
Implicit constraints

Assumptions known by people are not always explicit in the instruction layer.

high friction
Conflicting priorities

Trade-offs are underspecified, so decision hierarchy becomes inconsistent.

medium friction

Component Architecture

Unlabeled variants

Variants exist visually, but semantic intent and boundaries are not always explicit.

high friction
Hidden dependencies

Required relationships are sometimes implicit, which weakens predictability.

medium friction
Token gaps

Occasional hardcoded values reduce theming resilience and consistent reuse.

low friction
High friction: blocks reliable generation
Medium friction: degrades quality
Low friction: minor inconsistencies
03Documentation

From fragmented to unified

Documentation as operational infrastructure.

The documentation layer had strong intent but uneven structure. I treated documentation as operational infrastructure rather than static reference: clearer information hierarchy, stronger semantic labelling, and explicit links between principles, component behaviour, and implementation intent.

  • Standardised templates across every doc.
  • Explicit constraints and decision rationale.
  • Stronger state and variant definitions.
  • Faster human alignment + reliable AI grounding.

Documentation ↘ from fragmented to unified

DS / DOCUMENTATION / v1.0.0
BEFORE↘ each doc, its own structure
ANATOMY
icon
label
action
DO & DON'T
DO
✓
✓
✓
DON'T
✕
✕
✕
PROPS
sizesm/md/lg
variantprimary
iconleft
disabledfalse
onClickfunc
USAGE
<Button variant="primary"/>
EXAMPLES
TOKENS
#111
#6B7
#FF3
#D1D
#FFF
STATES
DEFAULT
HOVER
FOCUS
DISABLED
A11Y
✓A11y
✓A11y
✓A11y
✓A11y
NOTES
FRAGMENTED · 9 DOCS · 9 STRUCTURES
AFTER↘ one template · every doc
BUTTON.md
ANATOMY
USAGE
STATES
DO'S & DON'TS
✓
✕
TOKENS
A11Y
✓✓✓
CARD.md
ANATOMY
USAGE
STATES
DO'S & DON'TS
✓
✕
TOKENS
A11Y
✓✓✓
INPUT.md
ANATOMY
USAGE
STATES
DO'S & DON'TS
✓
✕
TOKENS
A11Y
✓✓✓
SAME ANATOMY · USAGE · STATES · DO'S & DON'TS · TOKENS · A11Y↘ ready for human + AI consumption
04Prompt architecture

Prompts as composable patterns

Instruction contracts, not prose.

Prompt usage had evolved organically, which made outcomes too dependent on individual writing style. I introduced a structured prompt architecture with reusable modules and clearer instruction contracts, separating context, task, constraints, and expected output shape.

  • Reusable prompt blocks.
  • Standardised constraints and fallback behaviour.
  • Lower cognitive load for teams.
  • More deterministic AI-assisted output.

Prompt architecture ↘ contract flow

DS / PROMPT / v1.0.0
CONTEXT
TASK
CONSTRAINTS
OUTPUT SHAPE
BLOCK LIBRARY
OBJECTIVE
AUDIENCE
TONE
FORMAT
EXAMPLES
INPUT DATA
RULES
BOUNDARIES
RESOURCES
REFERENCE
STYLE
DELIVERABLES
SUCCESS CRITERIA
ASSUMPTIONS
GLOSSARY
CONTEXT NOTES
EDGE CASES
+ NEW BLOCK
REUSABLE · STANDARDIZED · PREDICTABLE↘ instruction contracts, not prose
05Component architecture

Readable systems, not just rendered UI

Anatomy · states · variants · tokens.

The component layer was reusable, but some structures were not explicit enough for predictable interpretation. I focused on legibility: clearer component anatomy, tighter token mapping, and explicit state and variant modelling.

  • Clear API semantics.
  • Explicit state matrices.
  • Stronger token-component relationships.
  • Safer AI-assisted composition.

Component blueprint ↘ anatomy · states · tokens

DS / COMPONENT / v1.0.0
ANATOMY
  • 01ACTION
  • 02TEXT BLOCK
  • 03ICON
  • 04PADDING
  • 05CONTAINER
Title textSupporting text
→
VARIANTS
DEFAULT
Title textSupporting text→
WITH BADGE
Title textSupporting text3→
WITH TRAILING TEXT
Title textSupporting text12m→
STATES
DEFAULT
HOVER
FOCUS
PRESSED
DISABLED
IDLE
HOVER
FOCUS
PRESSED
DISABLED
TOKENS
COLORTEXT PRIMARYtext.primary · #111111
COLORTEXT SECONDARYtext.secondary · #6B7280
COLORICON SUBTLEicon.subtle · #6B7280
COLORBORDER DEFAULTborder.default · #D1D5DB
COLORSURFACE DEFAULTsurface.default · #FFFFFF
COLORACCENTcolor.accent · #FF3838
SPACEXS (4)4px
SPACESM (8)8px
SPACEMD (16)16px
SPACELG (24)24px
RADIUSSM (4)4px
RADIUSMD (8)8px
RADIUSLG (12)12px
ANATOMY · STATES · VARIANTS · TOKENS↘ readable systems, not only renderable UI
06The system

How the 3 layers connect

A closed loop with bidirectional feedback.

Documentation defines meaning and boundaries. Prompt architecture translates that meaning into actionable instructions. Component architecture turns those instructions into reusable patterns. When the three layers line up, the system becomes easier to trust and to scale, for humans and for AI-assisted workflows.

  • Documentation → defines meaning.
  • Prompt → translates intent.
  • Components → operationalise patterns.
  • Feedback flows in both directions.

How the 3 layers connect ↘ closed loop

DS / SYSTEM / v1.0.0
INFORMSCOMPOSESEVIDENCESTESTSVALIDATESGROUNDSSYSTEM01DOCUMENTATIONDefines meaning and boundaries02PROMPT ARCH.Translates meaning into actionable instructions03COMPONENT ARCH.Operationalizes instructions into reusable patterns
01

DOCUMENTATION

Defines meaning and boundaries.

INTENTRULESVOCAB
02

PROMPT ARCH.

Translates meaning into actionable instructions.

CONTEXTTASKCONSTRAINTS
03

COMPONENT ARCH.

Operationalizes instructions into reusable patterns.

ANATOMYSTATESTOKENS
FORWARD FLOWFEEDBACK↘ closed loop · trust · scale · resilience
07My approach

Systems infrastructure thinking

Durability over short-term optimisation.

I worked as a systems infrastructure designer: identifying friction points, improving structural clarity, reducing ambiguity, increasing reusability, and preparing foundations for future tooling.

  1. 01Identifyfriction in decision-making and output consistency.
  2. 02Improvestructure between rules, prompts and components.
  3. 03Reduceambiguity with explicit constraints and shared terms.
  4. 04Increasereusability through composable system patterns.
  5. 05Supportfuture tooling by improving semantic legibility.
08Outcomes

Strategic infrastructure, not vanity metrics

Outcomes were visible in clearer system decisions, stronger consistency, better legibility, and more scalable reuse.

01
Clarity

in standards, constraints and component behaviour.

02
Consistency

across authoring, interpretation and implementation.

03
Legibility

for both humans and AI-assisted workflows.

04
Reuse

more scalable through clearer structural patterns.

09Reflection

AI-readiness lives in the foundations

AI-readiness isn't a prompt layer you bolt on at the end. It comes from the system underneath: documentation quality, instruction structure, component interpretability. Get those right and AI amplifies the system instead of adding noise.

MANU COSTA · SR. DESIGN SYSTEMS DESIGNER