Cursor
Cursor는 .cursor/rules/*.mdc 규칙 파일로 컨텍스트를 활성화하고 ~/.cursor/mcp.json에 설정된 MCP server를 읽습니다.
DESIGN.md 배치 위치
CLI 린트 검사와 다른 에이전트가 하나의 파일을 공유하도록 정규 DESIGN.md를 저장소 루트에 두고, .cursor/rules/design-system.mdc 파일을 추가해 Cursor가 언제 이를 로드할지 제어합니다.
my-app/
├── DESIGN.md
└── .cursor/
└── rules/
└── design-system.mdcDesignMD Pro 탐색의 모든 사이트에서 Use this design 카드의 Cursor를 선택하면 alwaysApply: true가 설정된 {slug}-design-system.mdc 파일을 바로 다운로드할 수 있습니다.
.cursor/rules/design-system.mdc 설정하기
옵션 A: 경로 스코프 래퍼 (풀스택 저장소 권장)
DESIGN.md를 단일 편집 원본으로 유지하고 UI 파일을 편집할 때만 Cursor가 이를 참조하게 합니다.
---
description: Project design system (DESIGN.md) — apply to all UI components and pages
globs:
- "src/components/**/*.tsx"
- "src/app/**/*.tsx"
- "src/app/**/*.css"
alwaysApply: false
---
Follow the design tokens, spacing scale, typography, and Do's and Don'ts defined in `DESIGN.md` at the repository root. Never invent hex colors or border radii outside the spec.옵션 B: 자체 포함 상시 적용 .mdc 규칙
DesignMD Pro에서 {slug}-design-system.mdc를 직접 내보냈다면 .cursor/rules/에 그대로 배치합니다.
---
description: Meridian Workspace design system (DESIGN.md) — apply to all UI work
globs:
alwaysApply: true
---
Follow the Meridian Workspace design system below for every UI change. Use its tokens instead of inventing new values, and follow its Do's and Don'ts.
```markdown
---
version: alpha
name: Meridian Workspace
...
---
```DesignMD Pro MCP server 연결하기
~/.cursor/mcp.json(또는 개인 시크릿을 커밋하지 않는 팀 워크스페이스의 .cursor/mcp.json)에 designmdpro를 추가합니다.
{
"mcpServers": {
"designmdpro": {
"url": "https://designmdpro.app/mcp"
}
}
}Pro API 키(계정 → API Keys의 dmdp_…)와 함께 설정하는 경우:
{
"mcpServers": {
"designmdpro": {
"url": "https://designmdpro.app/mcp",
"headers": {
"Authorization": "Bearer dmdp_your_api_key"
}
}
}
}mcp.json을 수정한 뒤 Cursor를 재시작하거나 Cursor Settings → Tools & MCP에서 MCP server를 새로 고침하세요.
프롬프트 템플릿
@DESIGN.md Refactor the settings card layout to match the Surface, Shapes, and
Elevation & Depth rules. Keep all hex values mapped to defined color tokens.Using the designmdpro MCP server, search for developer-tool design systems,
inspect the Colors and Typography sections of the closest match, and list
which tokens differ from our current DESIGN.md.자주 하는 실수
- glob 없는 구형
.cursorrules사용: 단일 파일.cursorrules는 데이터베이스 마이그레이션과 백엔드 테스트에도 디자인 토큰을 주입합니다. 대신globs가 있는.cursor/rules/design-system.mdc를 사용하세요. .mdc와DESIGN.md에 토큰 중복 유지:@google/design.md lint용 독립형DESIGN.md를 유지한다면 두 사본을 수동 관리하지 말고.mdc에서DESIGN.md를 참조하세요.
다음 단계
- MCP Server 레퍼런스 — 도구, 어노테이션, 인증 등급
- Tailwind CSS & shadcn/ui 연동 — 프로젝트의 CSS variables로 토큰 매핑하기
- 전체 예제 — 완성형 스타터
DESIGN.md파일
Last updated on