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

# Create a design system

> Create a design system from scratch with a prompt, or extract one from a mockup you already like — then save it to your workspace.

There are two ways to create a design system, depending on where your brand lives today.

## From scratch: prompt it from the home page

Start here when the system exists in your head (or your brand guidelines) but not in any design yet.

<Steps>
  <Step title="Ask for it in the create input">
    From the Replit home page, describe the design system you want in the prompt box — for example: *"Create a design system for Velocity, a premium supercar rental brand."*

    <Frame>
      <img src="https://mintcdn.com/replit/9Q_lVrxG2Dh35jz1/images/design/replit-design/ds-home-create.png?fit=max&auto=format&n=9Q_lVrxG2Dh35jz1&q=85&s=31621bdbda00ed2b8bf8f7a80f066ece" alt="The home page prompt box with a design system creation prompt" width="800" height="240" data-path="images/design/replit-design/ds-home-create.png" />
    </Frame>
  </Step>

  <Step title="Answer the questionnaire">
    Agent asks a short set of questions about your system — brand personality, colors, typography preferences. You can also point it at a source: a Figma URL, a website, code, reference images, brand assets, or an existing DESIGN.md.
  </Step>
</Steps>

## From a mockup: extract the design system

Start here when you already have a design you love — a generated frame, a dropped template — and want everything else to match it.

<Steps>
  <Step title="Select the mockup">
    On the canvas, click the mockup whose look you want to capture.
  </Step>

  <Step title="Extract from the three-dot menu">
    Open the frame's **⋯** (three-dot) menu and choose **Extract design system**. Agent distills the mockup's tokens, colors, and typography into a living style guide — and applies it across the design.

    <Frame>
      <img src="https://mintcdn.com/replit/9Q_lVrxG2Dh35jz1/images/design/replit-design/ds-extract-menu.png?fit=max&auto=format&n=9Q_lVrxG2Dh35jz1&q=85&s=6681244a6f222276732baa817d0497f5" alt="Close-up of a selected frame's action bar with the more-options menu open, showing Apply design system and Extract design system" width="958" height="320" data-path="images/design/replit-design/ds-extract-menu.png" />
    </Frame>
  </Step>
</Steps>

## Review and save

Either way, review what was generated: a living style guide with your colors (by role — primary, accent, muted…), typography scale, and tokens (stored in `tokens.json`, feeding the CSS variables). Then select **Save design system** to keep it in your workspace.

<Frame>
  <img src="https://mintcdn.com/replit/9Q_lVrxG2Dh35jz1/images/design/replit-design/ds-review.png?fit=max&auto=format&n=9Q_lVrxG2Dh35jz1&q=85&s=947fb5e6043b6740ed93fd437bd9223d" alt="The APEX X1 Design System rendered as a living style guide in focus mode, with a sidebar of colors, fonts, layout, and components, the core palette, the type scale, and example components" width="2000" height="1254" data-path="images/design/replit-design/ds-review.png" />
</Frame>

## Next steps

* [Apply it to an existing app](/design/apply-design-system)
* [What's inside a design system](/design/design-md)
