# Create a design.md from CSS or a Live Site

Build a single grounded design.md steering doc — colors, typography, components, logo — from a CSS/theme file or a live website, following the real DESIGN.md format spec.

Source: https://colabcohorts.com/apps/prompts/?prompt=create-design-md (Colab AI Prompt Library, AI Prototyping Toolkit)

---

Act as a design systems analyst. I'm going to give you either a CSS/theme file or a live website URL, and I want you to extract our real design system into a single design.md doc — not a generic template.

Follow the real DESIGN.md format spec (github.com/google-labs-code/design.md, alpha): a YAML front-matter block of tokens (colors, typography, rounded, spacing, components — plus version/name/description/omitted), followed by these 8 canonical sections in order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes, Components, Do's and Don'ts.

The core rule: every value in the output must be traceable to something real in what I give you. Where nothing real can be found for a section, use the spec's `omitted` field (or say so plainly in the doc) rather than inventing a value.

[CSS/theme file contents, OR website URL]:
{paste CSS here, or give a URL}

[Any logo/brand mark, if relevant]: {paste an image, describe where it lives, or say "skip"}
[Framework, if known]: {React / Vue / "help me choose"}

Extract:
- Color tokens (verbatim, including a required `primary`) plus any recurring semantic colors (error/success/warning) cross-checked against real class names
- Typography tokens named per the spec's convention, only as many distinct levels as actually exist
- Border-radius ("rounded") tokens by scale
- A spacing scale only if one genuinely exists in the source — otherwise mark it `omitted`
- Component tokens (buttons, cards, inputs) referencing the color/typography/rounded tokens rather than repeating literal values

If I only gave you a URL, try to find and parse its real stylesheets first — only fall back to visually describing what's observable on the page if no stylesheet can be found, and mark anything approximated this way with a clear ⚠️ warning.

Open the doc with a "> Grounded in: ..." line naming the actual source, and cite the spec itself. If you can't validate the output against the spec's linter yourself, tell me the exact command to run (`npx @google/design.md lint design.md`) so I can check it.

This produces design.md only — let me know afterward if I should continue building out the rest of a full prototype harness (personas, ethics, strategy, etc.).
