디자인 가이드라인 (색상, 타이포그래피, 그림자, 해야할 것, 하면 안되는 것) 디자인 공통 언어
컴포넌트 속성
- Variant :
primarysecondaryoutline - State :
defaulthoveractivedisabled - Boolean :
isLoadinghasError - Size :
smmdlg
-
상태와 타입 분리
Bad<Button button-status="loading" />
Good<Button variant="primary" state="isLoading" /> -
수치 사용 지양
Badp-[20px]
Goodsize="lg"
Design.md
표준화된 형식을 통해 디자인 시스템, 스타일 가이드, 컴포넌트 사양을 AI에게 명확하게 전달
- YAML front matter에 머신러닝이 읽을 수 있는 디자인 토큰 포함되어 일관성을 강제하기 위한 정밀한 값
- Markdown body는 사람이 읽을 수 있는 디자인 근거 제공
디자인 토큰 (Design tokens)
문서 최상단에 YAML front matter로 정의
- 이 블록은 반드시
------사이에 작성 - Figma 변수 및 Tailwind 테마 설정(theme configs)과 쉽게 상호 변환
---
version: <string> # optional, current version: "alpha"
name: <string>
description: <string> # optional
colors:
<token-name>: <Color>
typography:
<token-name>: <Typography>
rounded:
<scale-level>: <Dimension>
spacing:
<scale-level>: <Dimension | number>
components:
<component-name>:
<token-name>: <string | token reference>
---Sections
- 관련 없는 Section은 색량 가능하지만 순서는 아래 순서로 나열
| Section | Aliases (허용되는 별칭) | |
|---|---|---|
| 1 | Overview | Brand & Style |
| 2 | Colors | |
| 3 | Typography | |
| 4 | Layout | Layout & Spacing |
| 5 | Elevation & Depth | Elevation |
| 6 | Shapes | |
| 7 | Components | |
| 8 | Do’s and Don’ts |
- Overview : 전체적인 설명. 브랜드 성격, 타겟 사용자. 기초적인 문맥 (Foundational context)
- Colors : 최소한 primary 는 반드시 정의
- Typography : Semantic role(Headline, body) 단계와 크기 variant(sm, md, lg) 정의
- Layout : 그리드 모델, 간격 스케일(scale 4px 배수, dense, base)
- Elevation & Depth : 시각적 계층 구조 shadow, flat 디자인의 경우 border, color tone, color 대비
- Shapes : 요소 형태 (radius, border)
- Components : Component atoms 스타일 가이드 (button, chips, list, input, checkbox, radio)
- Do’s and Don’ts : 에이전트가 디자인 생성할 때 일관성을 잃지 않도록 하는 가이드라인
ERP Dashboard 서비스의 Design.md 예시
UX Writing
| 상태 | |||
|---|---|---|---|
| Status | 단계 | String | pending delivered done |
| State | 가변적 상황/데이터 | Boolean | isChecked isOpen |
| Stats | 통계/수치/데이터 요약 | Number | 방문자 수, 능력치(Str,HP), 시스템 리소스 사용 량 |
| Red Semantic | ||
|---|---|---|
| Error | 폼 검증 실패, 통신 장애 | |
| Danger | 경고 | NextUI |
| Destructive | 삭제, 초기화, 탈퇴 | Radix UI, Apple Ghidelines |
| Critical | 심각도 |
