RORK LABJP
TOOLING — Rork's developer repos keep moving: rork-xcode was updated on July 16, rork-device on July 15, and rork-plist on July 13OPUS46 — Claude Opus 4.6 is live in Rork, and Rork Max is built to assemble apps on top of Claude CodeSIM — A cloud iOS simulator runs in the browser, with one click to install on a device and two clicks to publish to the App StoreMAX — Rork Max emits pure Swift rather than React Native, reaching iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and even iMessageNATIVE — That opens up HealthKit, ARKit and LiDAR, NFC, Dynamic Island, Live Activities, 3D through Metal, and on-device inference with Core MLSEED — Rork raised a $15M seed led by Left Lane Capital, with Peak XV and a16z Speedrun joining the roundTOOLING — Rork's developer repos keep moving: rork-xcode was updated on July 16, rork-device on July 15, and rork-plist on July 13OPUS46 — Claude Opus 4.6 is live in Rork, and Rork Max is built to assemble apps on top of Claude CodeSIM — A cloud iOS simulator runs in the browser, with one click to install on a device and two clicks to publish to the App StoreMAX — Rork Max emits pure Swift rather than React Native, reaching iPhone, iPad, Apple Watch, Apple TV, Vision Pro, and even iMessageNATIVE — That opens up HealthKit, ARKit and LiDAR, NFC, Dynamic Island, Live Activities, 3D through Metal, and on-device inference with Core MLSEED — Rork raised a $15M seed led by Left Lane Capital, with Peak XV and a16z Speedrun joining the round
Articles/Dev Tools
Dev Tools/2026-04-28Beginner

Communicating Design Rules to AI: Using DESIGN.md for Mobile Apps

Google's open-source DESIGN.md format helps you communicate design specifications to AI tools like Rork. Learn to define colors, typography, and spacing rules in markdown so AI-generated UI stays consistent with your brand.

DESIGN.mdDesign SystemsUI10Rork515Brand Consistency

When you ask AI to build mobile app screens, a nagging doubt creeps in: Is the AI actually following my design rules? Will the colors match? Are the font sizes consistent? Will the spacing feel right? If you could hand the AI a design guidebook it actually understands, design reviews would take half the time.

That's where DESIGN.md comes in. It's an open-source markdown format Google created specifically for this: writing design specifications in a way that both humans and AI can read and follow.

What is DESIGN.md?

DESIGN.md is a lightweight format (Apache 2.0 licensed, open-source) for documenting design systems in plain markdown. Instead of keeping design rules buried in Figma or Adobe XD, you write them in a file called design.md that tools like Rork can read directly.

The philosophy is simple: Design rules should be machine-readable. When you write "primary color is #2563EB and use it for main action buttons," you're creating a specification that AI can follow, not just something a human designer remembers.

Why It Matters for Mobile Apps

Mobile apps live or die by consistency. When buttons across different screens have different colors, when text sizes vary for no reason, when padding is unpredictable—the app feels unpolished, even if the features work perfectly.

DESIGN.md solves this by letting you define:

  • Color tokens: Primary, secondary, error, neutral—with rules for when each applies
  • Typography scales: Heading 1, Heading 2, body text, captions—all with consistent sizing
  • Spacing system: The distance between elements, padding inside containers, margins between sections
  • Component rules: How buttons should look, how cards should behave, how form fields should appear

When Rork generates a new screen, it can reference these rules automatically. Instead of "make a button," you say "make a button following our DESIGN.md," and it stays consistent with screens you built weeks ago.

A Practical Example

Here's what a simple DESIGN.md looks like for a casual app project:

# Design Tokens
colors:
  primary: "#2563EB"
  secondary: "#10B981"
  error: "#EF4444"
  neutral_light: "#F3F4F6"
  neutral_dark: "#1F2937"
 
typography:
  heading_1:
    font_size: "28px"
    line_height: "36px"
    font_weight: "700"
  heading_2:
    font_size: "20px"
    line_height: "28px"
    font_weight: "600"
  body:
    font_size: "16px"
    line_height: "24px"
    font_weight: "400"
 
spacing:
  xs: "4px"
  sm: "8px"
  md: "16px"
  lg: "24px"
  xl: "32px"

Then add human-readable explanations below:

## Colors
 
### Primary (#2563EB)
Use for main action buttons (Create, Save, Continue), active tabs, and primary links.
Never use for errors, disabled states, or secondary information.
 
### Secondary (#10B981)
Success and positive states. Use for checkmarks, confirmation messages, and completed steps.
 
### Error (#EF4444)
Error messages and invalid form fields only.

How AI Tools Read It

When you use Rork or other AI tools, you paste your DESIGN.md into the prompt. The AI then knows the rules and applies them consistently.

Example prompt:

"Create a task management home screen following this DESIGN.md:

[paste DESIGN.md content]

Requirements:
- Large heading 'My Tasks' at the top
- Task list items, each with md (16px) padding
- 'New Task' button in the bottom right using primary color
"

By explicitly referencing DESIGN.md, you're telling the AI "these rules are non-negotiable." The quality jump is significant.

Validation Tools

Google's DESIGN.md ecosystem includes CLI tools for validation and export:

# Check if your design spec is valid
designmd validate design.md
 
# Export to Tailwind CSS
designmd export design.md --format=tailwind
 
# Export to W3C DTCG format
designmd export design.md --format=dtcg

These catch inconsistencies before they become problems.

The Difference It Makes

Without DESIGN.md:

  • Button colors are random or unpredictable
  • Font sizes vary wildly
  • Spacing feels haphazard
  • Multiple screens look like they were designed by different people

With DESIGN.md:

  • All buttons are the brand color
  • Typography is consistent: headings are 28px, body is 16px, every time
  • Spacing follows the 16px base grid
  • Ten screens generated with Rork still feel like one coherent app

In practice, this cuts design review and rework time by 50% or more.

Getting Started

  1. Write down your design rules (colors, fonts, spacing, component rules)
  2. Grab Google's official DESIGN.md template and customize it
  3. Save it as design.md in your project root
  4. Paste it into your Rork prompts
  5. Test the generated UI and refine your DESIGN.md as needed

DESIGN.md is a conversation in shared language between you and AI. It takes effort upfront, but the payoff compounds—especially as your app grows and you generate more screens.

Try it on your next Rork project.

Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • Copy-paste ready implementation code
  • New advanced guides published daily
  • $5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

Dev Tools2026-07-08
Building a Segmented Control With a Sliding Indicator in Reanimated
The stock segmented control looks out of place on Android. Here is a custom Reanimated component that measures each segment and slides the indicator, with complete code plus UI-thread rendering, accessibility, and RTL handling from real shipping notes.
Dev Tools2026-04-29
Adding Bottom Sheets to a Rork App — A Practical Guide to @gorhom/bottom-sheet on iOS and Android
Rork's default Modal works for confirmations, but the moment you need multiple snap points or inertial scroll inside the sheet it falls short. This guide walks through dropping @gorhom/bottom-sheet into a Rork project, handling the keyboard, and smoothing out iOS/Android differences.
Dev Tools2026-04-26
Why Your Rork Modal Won't Close — 5 Common Pitfalls and How to Fix Them
The close button doesn't fire, tapping the backdrop does nothing, and buttons inside the modal feel dead. In Rork-generated React Native code, eight times out of ten the cause is one of these five patterns.
📚RECOMMENDED BOOKS
Build a Large Language Model (From Scratch)
Sebastian Raschka
LLM Dev
Prompt Engineering for LLMs
Berryman & Ziegler
Prompting
AI Engineering
Chip Huyen
AI Eng
* Contains affiliate links
See all →