> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uspec.design/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Generate a canonical component contract and portable implementation guide, then render the guide into Figma as annotation frames.

> [!NOTE]
>
> **uSpec starts with the uSpec Extract plugin.** The plugin captures deterministic evidence;
> `create-component-md` compiles it into canonical `.json` and concise `.md` artifacts. This saves
> thousands of tokens per run and captures more component detail than live extraction.
> [See the Component Markdown guide →](https://docs.uspec.design/specs/component-md.md)

![uSpec: design system documentation for Figma components](https://mintcdn.com/personal-49ab26fb/ZYG_i5QveKIsG6Ph/images/cover.png?fit=max\&auto=format\&n=ZYG_i5QveKIsG6Ph\&q=85\&s=1f7b73802e2a871c77fd466c77bee25a)

uSpec turns your Figma components into structured documentation from your AI agent. The **uSpec Extract** plugin captures your component, `create-component-md` compiles a canonical `.json` contract and portable `.md` implementation guide, and the `create-*` skills render that guide into Figma as annotation frames.

Works with **Cursor**, **Claude Code**, and **Codex**.

## Start here: Component Markdown

> [card] [One contract, one implementation guide](https://docs.uspec.design/specs/component-md.md)
>
> A schema-valid `.json` contract plus concise `.md` for every component. Both cover API,
> structure, color, and screen-reader behavior.

## Render into Figma

Once you have a component `.md`, the `create-*` skills render annotation frames directly into your Figma file, next to the component. They read from the `.md` you generated — they no longer re-extract from a Figma link.

> [card] [Component Anatomy](https://docs.uspec.design/specs/anatomy.md)
>
> Numbered markers and attribute tables for every element

> [card] [Component API](https://docs.uspec.design/specs/api.md)
>
> Properties, values, defaults, and configuration examples

> [card] [Component Properties](https://docs.uspec.design/specs/property.md)
>
> Variant axes, boolean toggles, and variable mode exhibits

> [card] [Component Color](https://docs.uspec.design/specs/color.md)
>
> Design token mapping for every element and state

> [card] [Component Structure](https://docs.uspec.design/specs/structure.md)
>
> Dimensions, spacing, and padding across density and size variants

> [card] [Screen Reader](https://docs.uspec.design/specs/screen-reader.md)
>
> VoiceOver, TalkBack, and ARIA accessibility specs

> [card] [Motion](https://docs.uspec.design/specs/motion.md)
>
> Animation timeline bars and easing details from After Effects

## How it works

Every spec flows through one pipeline, with the component contract and its Markdown view at the
center:

**1. Extract**

Run the **uSpec Extract** Figma plugin on your component to produce a `_base.json` capture of
every variant, token binding, and sub-component. The public plugin asks for the component link
on first use and remembers it for that document.

**2. Compile the contract and guide**

Run `create-component-md` against the `_base.json`. It interprets API, Structure, Color, and
Voice evidence, validates their obligations, then writes canonical `.json` and concise `.md`
artifacts.

**3. Render into Figma (optional)**

Point any `create-*` skill at the `.md` to render that section as annotation frames next to the component. These skills read from the `.md`; they do not re-extract from Figma.

> [!NOTE]
>
> `create-motion` is the one exception: it renders a timeline from an After Effects export and does not use the Component Markdown pipeline.

## Get started

> [card] [Setup](https://docs.uspec.design/getting-started.md)
>
> Set up your AI agent, Figma MCP, and your template library.

> [card] [Create your first spec](https://docs.uspec.design/getting-started.md#create-your-first-spec)
>
> Prompt format, available skills, and tips for better output.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.