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

# Use DESIGN.md Files with Your AI Tools

> Learn what a DESIGN.md file is, how to get one from Pagifye, and how to use it with Claude, ChatGPT, Cursor, Codex, Lovable, Bolt, v0 and other AI tools.

A DESIGN.md file tells an AI tool how your website should look. It lists the colors, fonts, spacing and button styles your website should use, all in one simple text file. When you give it to an AI such as Claude, ChatGPT or Cursor, the AI follows your design instead of guessing, so every page it builds looks like it belongs to the same brand.

This page explains what a DESIGN.md file is, how to get one from Pagifye, and how to use it in the AI tool you already use.

## What Is a DESIGN.md File?

Think of DESIGN.md as a style guide written for AI. It's a normal Markdown file (a plain text file that ends in `.md`) that follows Google's open DESIGN.md standard. Anyone can open it in a text editor and read it.

A DESIGN.md file usually covers:

* **Colors:** your background, text, brand and warning colors, with their exact color codes.
* **Typography:** which fonts to use and how big headings and body text should be.
* **Spacing:** how much space to leave between things.
* **Rounded corners and borders:** how round buttons and cards should be.
* **Shadows:** how much depth cards and menus have.
* **Components:** how buttons, inputs and cards should look.
* **Do's and don'ts:** simple rules, such as which color to never use for text.

> [!TIP]
>
> Without a DESIGN.md file, an AI picks its own colors and fonts each time, so your pages can look different from each other. With one, the AI reuses the same values everywhere.

## Get a DESIGN.md File from Pagifye

Pagifye has a directory of ready-made DESIGN.md files at [pagifye.com/designmd](https://pagifye.com/designmd). Some are made by Pagifye and some are open source. Each one is marked **Free** or **Pro**.

**1. Find a design system**

Open [pagifye.com/designmd](https://pagifye.com/designmd). Type in the **Search design systems** box, or filter by **Categories**, **Licence** (**Free** or **Pro**) and **Source** (**Pagifye** or **Open Source**). On a phone, select **Filter** to see the filters. Select a design system's card to open its guide.

**2. Look through the guide**

The guide page shows the design visually: color swatches, font samples, spacing and more. This helps you check that it's the style you want before you get the file.

**3. Sign in and choose a team**

Select **Log in to get DESIGN.md** and sign in, or [create a free account](https://docs.pagifye.com/documentation/create-an-account.md). You need to sign in even for free files. If you see **Select a team to continue**, open your account menu at the top right (the circle with your initials), open **Teams** and select a team.

**4. Download or copy the file**

Select **Download DESIGN.md** to save the file. You'll see **Download started**, and the file saves as `DESIGN.md`, usually in your Downloads folder.

Or select **Copy DESIGN.md** to copy all its text. You'll see **DESIGN.md copied to clipboard**. Use this option for Lovable, Bolt and v0, where you paste the text.

> [!NOTE]
>
> **Free** design systems work on any Pagifye account. **Pro** design systems are included with every paid Pagifye plan. Access depends on the plan of the team you've selected. If a file is Pro and your selected team is on the free plan, you'll see **Upgrade to Pro** instead of the download buttons. See [Pricing & Packages](https://docs.pagifye.com/documentation/pricing.md).

Many guides also have an **Example Prompts** section with ready-made requests for that design. Select **Copy all** to copy them (you'll see **Prompt copied**), then paste one into your AI tool.

## Use DESIGN.md with Your AI Tool

There are two simple ways to use the file:

* **In a chat app** (Claude, ChatGPT, Gemini): attach the file, or paste its text, at the start of the chat.
* **In a coding or website builder tool** (Claude Code, Cursor, Codex, Lovable, Bolt, v0): save the file in your project, or add it to the tool's instructions, so the AI reads it every time.

Pick your tool below.

> [tab] Claude, ChatGPT and Gemini
>
> 1. Start a new chat.
> 2. Attach your `DESIGN.md` file with the attach (paperclip or **+**) button, or paste the text you copied.
> 3. Ask for what you want, and tell the AI to follow the file. For example: *Build a pricing section for my website. Follow the attached DESIGN.md for all colors, fonts and spacing.*
>
> A new chat doesn't remember files from an old one, so attach the file again each time. Some chat apps let you save files in a project so every chat in it can use them.

> [tab] Claude Code
>
> 1. Put `DESIGN.md` in the top folder of your project (the one you open in your code editor).
> 2. Open the `CLAUDE.md` file in the same folder and add this line. If you don't have one, make a new file in your code editor and name it exactly `CLAUDE.md`.
>    ```text CLAUDE.md theme={null}
>    Follow @DESIGN.md for all colors, fonts, spacing and component styles.
>    ```
> 3. Start Claude Code in that folder. The `@DESIGN.md` part makes Claude Code load the file automatically every time.
>
> If your project already has an `AGENTS.md` file and no `CLAUDE.md`, add the line from the **Codex** tab to `AGENTS.md` instead. Claude Code stops reading `AGENTS.md` once a `CLAUDE.md` exists.

> [tab] Codex
>
> 1. Put `DESIGN.md` in the top folder of your project (the one you open in your code editor).
> 2. Open the `AGENTS.md` file in the same folder and add this line. If you don't have one, make a new file in your code editor and name it exactly `AGENTS.md`.
>    ```text AGENTS.md theme={null}
>    Read DESIGN.md before building any UI, and follow it for all colors, fonts, spacing and component styles.
>    ```
> 3. Codex reads `AGENTS.md` before it starts working, so it sees your instruction to read DESIGN.md.
>
> Many other coding agents also read `AGENTS.md`, so this line helps them too.

> [tab] Cursor
>
> 1. Put `DESIGN.md` in the top folder of your project (the one you open in your code editor).
> 2. In the chat, type `@` and choose `DESIGN.md` to add it to your message.
> 3. Ask for what you want, and tell Cursor to follow the file.
>
> To skip step 2 every time, add the line from the **Codex** tab to an `AGENTS.md` file in your project. If Cursor seems to ignore it, type `@AGENTS.md` in the chat.

> [tab] Lovable
>
> 1. Open your project, then go to **Project settings**, then **Instructions** (it used to be called Knowledge).
> 2. Paste the DESIGN.md text you copied and save.
>
> Lovable uses these instructions on every message in that project. Each instructions box holds up to 10,000 characters. If your file is longer, paste the most important parts, such as colors, typography and do's and don'ts.

> [tab] Bolt
>
> 1. Open your project and click the project name at the top left.
> 2. Click **All project settings**, then **Knowledge** in the left sidebar.
> 3. Paste the DESIGN.md text into **Project instructions** and select **Save prompt**. You'll see **Project prompt updated**.
>
> Bolt uses it from your next prompt onward. Only project Editors and Co-owners can change it.

> [tab] v0
>
> 1. Select the **+** button in the prompt bar.
> 2. Under **Instructions**, select **New Instruction**.
> 3. Give it a **Title** such as `DESIGN.md`, paste the DESIGN.md text into **Rule** and select **Add**.
> 4. Before you send a message, select **+** and check that instruction. It stays on until you uncheck it.

Using a different AI tool? Look for a place to add **instructions**, **knowledge** or **rules**, and paste the file there. If you can't find one, attach or paste the file at the start of your chat.

## Try It Out

After you add your DESIGN.md file, try this prompt to check the AI is following it.

Check that your AI follows DESIGN.md

Read my DESIGN.md file and tell me, in plain words, its main colors, fonts and button style. Then build a simple landing page hero with a heading, a short paragraph and a main button. Use only the colors, fonts, spacing and rounded corners from DESIGN.md. Don't invent new ones.

## Tips for Better Results

* **Mention the file in your request.** A short reminder like *follow DESIGN.md* helps the AI stick to it.
* **Use one DESIGN.md per project.** Mixing two design systems confuses the AI.
* **Check the colors.** If something looks off, ask the AI: *Which DESIGN.md color did you use here?*
* **Pair it with Pagifye components.** Use DESIGN.md for the look and [Pagifye MCP](https://docs.pagifye.com/documentation/mcp.md) to bring in ready-made sections.

## Troubleshooting

> [accordion] I see Select a team to continue
>
> Your account isn't using a team yet. Open your account menu at the top right (the circle with your initials), open **Teams** and select a team. Then try again.

> [accordion] I see Upgrade to Pro or A valid premium team subscription is required
>
> This is a Pro design system, and your selected team is on the free plan. Select **Upgrade to Pro** or **View pricing** to choose a plan. If another of your teams has a paid plan, switch to it from **Teams** in your account menu at the top right.

> [accordion] Copy or download doesn't work
>
> You may see a message such as **Failed to copy DesignMd** or **Failed to create DesignMd download**. Refresh the page and try again. If it still fails, [contact support](https://docs.pagifye.com/documentation/support.md).

> [accordion] The AI isn't following my design
>
> Make sure the AI can see the file: attach it again in a new chat, or check that it's in your project's root folder and mentioned in `CLAUDE.md` or `AGENTS.md`. Then remind it in your message: *Follow DESIGN.md for every color and font.*


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