본문으로 건너뛰기
Skillpedia
인터페이스 (UI/UX)8.2k · #12531

design-spec

하는 일

이 스킬은 프로젝트의 색상, 글자체, 간격, 컴포넌트를 한 문서에 정리하는 DESIGN.md 파일을 쓰는 방법을 설명합니다. 일관된 디자인을 원하는 디자이너와 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓새 웹사이트나 앱을 시작하며 화면을 만들기 전에 디자인을 정하고 싶을 때.
  • ✓프로젝트에 색상, 글꼴, 간격의 공통 디자인 값이 필요한 경우.
  • ✓AI에게 명확한 시각 지침을 주고 싶을 때.

스킬 링크

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/design-spec/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/design-spec/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“카페 웹사이트를 위해 페이지를 만들기 전에 색상, 글꼴, 간격 규칙이 담긴 DESIGN.md를 작성해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

파일 맨 위에는 기계가 읽을 수 있는 디자인 값 블록이 있고, 그 아래에는 선택 이유를 설명하는 글이 있습니다. AI는 인터페이스를 만들 때 이 파일을 기준으로 삼습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

DESIGN.md Specification

A DESIGN.md is the single source of truth for a project's visual language. Create it BEFORE building UI. Two layers: machine-readable design tokens (YAML front matter) + human-readable rationale (markdown body). Tokens are normative; prose gives context. Prose may use descriptive names ("Midnight Forest Green") that map to systematic token names (primary).

Format adapted from the DESIGN.md spec (Google Labs, Apache-2.0). A linter/exporter exists: npx @google/design.md.

📚 Reference library: collection.md — 70+ real-world DESIGN.md files (Airbnb, Stripe, Linear, Vercel, Apple…) to study or adapt as a starting point.


When to produce a DESIGN.md

This is a hard gate for UI work (see .agents/rules/design-rules.md): before writing components, pages, or styles, a DESIGN.md must exist at the project root. If absent, create it first from the brief; if present, read it and conform.

The token block converts cleanly to/from tokens.json, Figma variables, and Tailwind theme config — so it is the bridge between design intent and code.


1. File structure

---
<YAML token front matter>
---

# Project Name (optional title)

## Overview
## Colors
## Typography
## Layout
## Elevation & Depth
## Shapes
## Components
## Do's and Don'ts

Front matter MUST begin and end with a line containing exactly ---. Sections use ## headings, appear in the order above, and may be omitted if irrelevant. Domain-specific sections may be added.


2. Token schema (YAML front matter)

version: alpha            # optional
name: Daylight Prestige
description: ...          # optional
colors:
  <token-name>: "#RRGGBB"
typography:
  <token-name>:
    fontFamily: Public Sans
    fontSize: 48px
    fontWeight: 600
    lineHeight: 1.1
    letterSpacing: -0.02em
rounded:
  <scale>: 8px
spacing:
  <scale>: 16px           # Dimension or unitless number
components:
  <component-name>:
    backgroundColor: "{colors.primary}"
    rounded: "{rounded.md}"
    padding: 12px

<scale> is a named level: xs sm md lg xl full (any descriptive key is valid).


3. Type system

Type Format Example
Color # + hex (sRGB) "#1A1C1E"
Dimension number + unit (px/em/rem) 48px, -0.02em
Token Reference {path.to.token} {colors.primary}
Typography composite object see §4

Typography properties: fontFamily (string), fontSize (Dimension), fontWeight (number — bare or quoted are equivalent in YAML), lineHeight (Dimension or unitless multiplier — unitless recommended), letterSpacing (Dimension), fontFeature (string), fontVariation (string).

Token references: wrapped in {} pointing to another value in the tree. Most groups must reference a primitive ({colors.primary-60}), not a group. Inside components, references to composite values are allowed ({typography.label-md}).

Component property tokens: backgroundColor, textColor (Color); typography (Typography); rounded, padding, size, height, width (Dimension).

Variants: define UI states as separate entries with a related key — button-primary, button-primary-hover.


4. Sections (canonical order)

# Section Aliases Purpose
1 Overview Brand & Style Brand personality, audience, emotional tone. Fallback context when a token isn't defined.
2 Colors Palettes; at least primary. Common: primary/secondary/tertiary/neutral.
3 Typography 9–15 levels, each a semantic role (headline/body/label) × size.
4 Layout Layout & Spacing Grid model, spacing scale, containment.
5 Elevation & Depth Elevation Shadows, OR for flat designs the alternative (borders, tonal layers, contrast).
6 Shapes Corner radii, edge treatment, shape language.
7 Components Per-atom guidance: Buttons, Inputs, Cards, Chips, Lists, etc.
8 Do's and Don'ts Guardrails during generation.

5. Recommended token names (guidance, not required)

  • Colors: primary secondary tertiary neutral surface on-surface error
  • Typography: headline-display headline-lg headline-md body-lg body-md body-sm label-lg label-md label-sm
  • Rounded: none sm md lg xl full

6. Consumer behavior for unknown content

The

자주 묻는 질문

DESIGN.md 파일에는 무엇이 들어가나요?

색상, 글자체, 간격, 모서리 둥글기 같은 디자인 토큰과 그 이유를 적은 설명이 들어갑니다.

예시에서 시작할 수 있나요?

네. 실제 DESIGN.md 파일들이 모인 자료를 참고하거나 고쳐 쓸 수 있습니다.

사용자 인터페이스를 만들기 전에 꼭 필요한가요?

이 스킬은 이를 관문으로 봅니다. 컴포넌트나 페이지를 쓰기 전에 DESIGN.md가 있어야 합니다.

상세 정보

작성자의 원본 설명

How to author a DESIGN.md file — the machine-readable design-token + human-rationale format that must exist before any UI is built. YAML front-matter token schema (colors, typography, spacing, rounded, components), type system, token references, and canonical section order.

repo: vudovn/ag-kit

인기도

GitHub 스타
8.2k
순위
#12531
라이선스
MIT
업데이트
2026. 10. 18.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬