# Upstage Design System — 규칙 전문 v1.2.3 · 생성물 · source revision Lift 1.2.3 (zip sha256 8d5d9377c2b4…). 원본은 각 파일이며, 값이 어긋나면 원본이 이긴다. 아래는 판단에 필요한 문서를 이어붙인 것이다. 색인은 /llms.txt. ============================================================================== # FILE: SKILL.md ============================================================================== --- name: lift description: Use Lift, the Upstage design system, to create or modify Upstage Product, Website, Marketing UI, card news, and branded presentation decks using canonical design context, tokens, rules, templates, and compatibility guidance. Use for Upstage screen design, UI implementation, design-system migration, token-safe components, Upstage PPT/slides/sales decks, or applying Upstage branding to existing presentations. Includes "Upstage 디자인", "업스테이지 UI", "콘솔 API Key 페이지", "업스테이지 발표자료", and "마케팅 덱". Does not claim unrelated-brand presentations. For a standalone UX audit use upstage-ux-review instead. metadata: version: "1.2.3" print-source: "Communications team print-specs 0.5.0 reviewed as 0.5.1; print-channel guidance only, external crop-mark core not bundled." release-date: "2026-11-18" compatibility: "Codex and Claude Code. Python 3.9+ for validation/deck build/static audit; Node.js 20+ for pattern CLI. Deck rendering uses Python or Node Playwright + Chromium. Python contact sheets need Pillow; legacy PPTX tools need python-pptx. Native editable PPTX follows the host presentation skill. No automatic dependency installation." deck-source: "DS 0911-2 export 2026-09-11 + upstage-deck v2.2.1. v2.1.3 에서 갈라진 두 갈래(다이어그램 4종·기하 토큰 11개 편입 / 브라우저 백엔드·테스트 하네스)를 3-way 병합했고 build.py 테마 주입 버그를 고쳤다. Marketing deck-only integration; source version is independent from this bundle." content-source: "upstage-design-system — rules/forbidden-rules.json v0.6.1, canonical-classes 578, website.css 2026-08-21 라이브 실측. 슬림 스킬 번들 v0.4.1(forbidden-rules v0.5.0)보다 최신이다." visual-source: "Pattern Studio v7.6 UI 13 families + 7 user SVG exports, 2026-09-08: reference samples, not a permitted-shape whitelist. Preserves the 3 editorial families and band/sector fade added in v1.8.0, alongside 3 topic recipes. Earlier Figma observations are secondary; composition recommendations are separate from source facts." merged-from: "upstage-design-system-skill v0.4.1 — fonts, slides, deck-templates, ui_kits, kit templates, CHANGELOG, adherence lint config만 이식. 규칙·토큰·컴포넌트는 v0.4.1이 구판이라 이식하지 않았다." --- # Lift Skill v1 — Upstage Design System 공개 배포판이다. 인물 사진, 라이선스 글꼴, 사내 주소, 인명, 고객사명을 빼거나 바꿨다. 제외 항목과 내부 전용 자료 위치는 [공개판 안내](references/public-edition.md)를 참고한다. Lift is the Upstage design system for Product, Website, and Marketing work. Build from this self-contained skill without a separate checkout, symlink, or environment variable. The name combines Lift and Liftoff: **From the first step to liftoff.** Invoke `$lift` or ask the agent to read this `SKILL.md`. For migration from the former `upstage-design` skill, read [the naming guide](references/lift-migration.md). ## 호출할 때 먼저 최신 여부를 확인한다 Lift를 호출할 때마다 디자인·구현·자료 선택을 시작하기 전에 아래 검사를 한 번 실행한다. ```bash python3 /scripts/check_updates.py --json ``` Preview판은 설치된 `LIFT-UPDATE.json`을 기준으로 확인한다. 정식판은 `SKILL.md`의 버전·판을 식별자로 삼아 공개 배포 기록의 파일별 해시와 설치 파일을 대조한다. 버전만으로 최신 여부를 판단하지 않는다. - `current`: 설치 파일과 같은 채널의 공식 배포 정보가 일치한다. Preview는 일치하더라도 **UNRELEASED**이며 정식 릴리스가 아니다. - `update_available`: 버전 또는 원본 해시가 다르다. 같은 Preview 이름이어도 내용이 달라질 수 있다. 설치 버전과 확인된 배포 버전을 알리고, 업데이트는 사용자가 요청한 범위에서 진행한다. 자동 설치·덮어쓰기·다운로드한 코드 실행은 하지 않는다. - `local_modified`: 설치 파일이 배포 기록과 다르거나 누락됐다. 최신 여부는 미확인으로 표시하고 로컬 변경을 보존한다. - `unknown`: 확인에 필요한 정보가 없거나 네트워크·실행 환경·채널 문제로 확인하지 못했다. 최신이라고 표시하지 않는다. 읽을 수 있는 설치 버전을 알리고 현재 설치본으로 진행한다. 설치 식별 정보도 읽을 수 없으면 설치 버전 역시 미확인으로 표시한다. Preview와 Stable은 서로 다른 채널이다. 검사 실패나 변경 감지는 자동 업데이트 권한이 아니다. 검사를 실행할 수 없어도 그 이유와 확인 가능한 설치 버전을 밝힌 뒤 진행한다. `--manifest`는 네트워크를 사용하지 않는 테스트 전용이며 실제 최신 확인을 대신하지 않는다. ## 먼저 — 새로 만들기 전에 기존 것을 본다 CTA·배너·히어로·카드·폼처럼 **이미 있는 것을 새로 만들려는 요청**이면, 라우팅보다 먼저 [website-section-patterns.md](references/starter-kit/context/website-section-patterns.md)의 「손으로 만들기 전에 컴포넌트를 본다」 표를 읽는다. Webflow 컴포넌트 34개 중 CTA만 7종이고 테스티모니얼 3종은 인스턴스가 1개다 — 전부 복제로 늘어난 결과다. 히어로는 [website-hero-types.md](references/starter-kit/context/website-hero-types.md)에서 유형(T1 텍스트형 · T2 표지형 · T3 분할형 · T4 배경 미디어형)을 고른다. **페이지 이름으로 만들지 않는다.** **로고는 그리지 않는다.** `assets/brand/upstage_lockup_{black,white,color}.svg` 를 쓴다. 제품 마크와 픽토그램은 `assets/product/` · `assets/icons/`. 목록은 [brand-assets-index.md](references/starter-kit/context/brand-assets-index.md). 텍스트로 `upstage.` 를 찍거나 SVG 패스를 직접 쓰면 ALL-4 위반이다. 로고 사용 규칙을 확인할 때는 [로고 가이드](references/starter-kit/guides/logo-guide.html)를 함께 본다. 공통 층(헤딩·본문·버튼·색·간격)은 [website-style-guide.md](references/starter-kit/context/website-style-guide.md)에 이미 있는지 본다. **라우팅 키워드에 안 걸려도 여기서 멈추지 않는다.** 매치가 없으면 무엇을 만드는지 한 줄 확인하고 진행한다. 라우팅 실패를 이유로 작업을 중단하지 않는다. **Lift에 없다는 것은 금지가 아니다.** 정의가 없는 형태(예: 밑줄형 탭)를 사용자 결정을 바꾸는 근거로 쓰지 않는다. 권고로만 말하고 구현은 지시 범위대로 한다. 모호하면 한 줄로 확인한다. 토큰이 맞는 것과 그 자리에 맞는 것은 다르다. 요청 범위 밖의 요소를 지우거나 바꾸지 않는다. 시각 시안은 변형 3~4개를 나란히 놓고 고르게 한다. 피드백을 수치(간격 24→40, weight 600→500)로 받으면 정확히 반영할 수 있다. ## Route the request 1. Select `product`, `website`, or `marketing` from the user's target. If unclear, read [context-routing.json](references/starter-kit/rules/context-routing.json) and state the selected context and reason. Upstage 덱·발표자료·PPT·기존 덱 브랜드 적용은 Marketing의 [Deck 프로파일](references/starter-kit/context/marketing/decks.md)로 먼저 연결한다. 덱의 카드·표라는 단어로 Product/Website로 분기하지 않는다. 일반 A4·카드뉴스에는 덱 치수를 적용하지 않는다. 출력 채널을 별도로 판단한다. 실제 종이 출력이면 Marketing의 [인쇄 출력](references/starter-kit/context/DESIGN.print.md)과 [인쇄 규격](references/starter-kit/rules/print-specs.json)을 추가로 읽는다. 화면용 PPT·웹·디지털 카드뉴스에는 로드하지 않는다. 덱 인쇄는 Deck 프로파일을 유지하고 납품 단계에만 인쇄 규격을 적용한다. 2. Identify the role only when it changes the deliverable: developer or planner/designer. 3. Keep implementation and independent UX review separate. This skill performs design-system conformance checks on its own work, but does not replace `upstage-ux-review`. ## Load only the relevant references 브랜드 키컬러·UI 기본색의 값과 역할은 [가이드 공통 원장](references/starter-kit/guides/copy.json)을 함께 읽는다. **작은 모델이나 지시문 길이 제한이 있으면** `references/quick/.md`(product · website · marketing) 하나만 먼저 읽는다. 맥락별 핵심 규칙·토큰·금지 목록을 1만 자 이하로 줄인 요약본이고, 값이 어긋나면 정본이 이긴다. 같은 파일을 다시 열지 않는다. 토큰은 세 층이다 — `tokens/primitives.css`(§2 공유 Primitive, 세 context 공용) · `tokens/tokens.product.css`(Product semantic/component, Product·Website 전용) · `tokens/tokens.marketing.css`(Marketing 전용). 층을 섞지 않는다. Always read: - [token-intents.json](references/starter-kit/tokens/token-intents.json) - [forbidden-rules.json](references/starter-kit/rules/forbidden-rules.json) - [a11y-contract.json](references/starter-kit/rules/a11y-contract.json) — 컴포넌트를 쓰거나 만들 때 - [korean-typography.json](references/starter-kit/rules/korean-typography.json) — 한국어가 들어갈 때 - [DESIGN.microcopy.md](references/starter-kit/context/DESIGN.microcopy.md) — 화면에 보이는 문구를 하나라도 쓰거나 고칠 때(버튼, 빈 상태, 가이드, 도움말, 에러, 토스트, 다이얼로그). 토큰만 읽고 문구를 쓰지 않는다. 화자별 말투(§2.1)와 금지 기호(§9)를 먼저 확인한다. 색 역할을 선택하거나 설명할 때는 [색 역할 가이드](references/starter-kit/guides/color-roles.html)를 함께 본다. Then read the selected context: - Product: [DESIGN.product.md](references/starter-kit/context/DESIGN.product.md). 메뉴, 탭, 목록, 칩, 토글의 상태(호버, 선택, 포커스, 비활성, 처리 중)나 색의 의미를 다루면 [DESIGN.product-states.md](references/starter-kit/context/DESIGN.product-states.md)도 읽는다. - Website: [DESIGN.website.md](references/starter-kit/context/DESIGN.website.md) **가 정본이다**, and [website.css](references/starter-kit/tokens/website.css) — the Website token file. Section rhythm uses `--section-*`, never `--space-*`. [website-token-policy.md](references/starter-kit/tokens/website-token-policy.md) 는 2026-05-21 자 **역사 문서**다 — 필요할 때만 열고, DESIGN.website.md 와 어긋나면 DESIGN.website.md 를 따른다. Marketing 원장을 Website 에 전역 로드하지 않는다. For page composition read [website-section-patterns.md](references/starter-kit/context/website-section-patterns.md). 공통 층(헤딩·본문·버튼·색·간격)은 [website-style-guide.md](references/starter-kit/context/website-style-guide.md)가 정본이다. mono 폰트는 code·pre·kbd·samp 안에서만 쓴다(ALL-5). 히어로는 페이지가 아니라 유형으로 고른다 — [website-hero-types.md](references/starter-kit/context/website-hero-types.md). 앱 첫 화면(로그인 전·후, Website 껍질 + Product 내부)과 탐색 시안은 [app-first-screen.md](references/starter-kit/context/app-first-screen.md)도 읽는다. - Marketing: [DESIGN.marketing.md](references/starter-kit/context/DESIGN.marketing.md). 영상·모션은 렌더 전에 §11 사전 체크를 본다. - Marketing card news, customer story, or lecture card: also read the matching file under `references/starter-kit/context/marketing/`. 기하·옵아트·궤도·스트라이프 패턴 배경 요청이면 [background-graphics.md](references/starter-kit/context/marketing/background-graphics.md)도 읽는다. 원본 재현은 제공 SVG와 [관찰 기록](references/starter-kit/context/marketing/pattern-studio.md)을 우선한다. 레이블·메시지·분위기에 맞춘 신규 그래픽, 창의적 재해석 또는 예시와 다른 안을 요청하면 [주제 우선의 그래픽 아트 디렉션](references/starter-kit/context/marketing/graphic-art-direction.md)을 읽고 주제 해석을 먼저 정한다. 원본 13개 계열과 SVG 7개는 참고 샘플이며 허용 형태 목록이 아니다. 신규 그래픽은 A/B 같은 고정 스타일 분류 없이 레이블의 의미에서 하나의 일관된 표현으로 설계한다. 선·면·윤곽·겹침은 표현 수단이며 샘플 특징을 억지로 합치지 않는다. 신규 장식에는 자유곡선·무작위 흔들림·과밀 패턴을 피하고 직선과 원호 등 규칙적인 기하를 사용한다. 텍스트 보호 여백과 그래픽 외곽 여백을 구분하고 배치·잘림을 함께 결정한다. 레이블·본문의 의미에서 새로운 실루엣과 구조를 설계할 수 있다. 일관성은 곡선의 연결·각도 증가량·간격·선 굵기·반복과 중첩의 규칙으로 관리한다. 수치는 시안마다 정하고 의도한 점진적 변화를 허용한다. 샘플 외곽의 보존은 지정 원본 재현에 적용한다. 정밀 SVG 기하와 그래픽 전용 페이드를 분리하고 새로운 형태도 같은 조형 질서로 검토한다. 카드뉴스 배치·그라디언트를 설계하거나 조정할 때는 [개선 사례와 판단 기준](references/starter-kit/context/marketing/card-news-pattern-composition.md)을 함께 확인한다. 사례의 숫자·문구·실루엣을 고정 템플릿으로 삼지 않는다. 신규 Marketing 그래픽은 [최종 승인 그래픽 10종](references/starter-kit/context/marketing/approved-graphics-20260918.md)의 전체 보드와 관련 카드 이미지를 먼저 확인한다. 마지막 프리즈의 시각 기준이며 A/B 고정 분류, 레이블별 도형 목록, 샘플 특징의 혼합 지시가 아니다. For matching Marketing visual examples, inspect only the relevant image under `assets/marketing-examples/`; these are references for composition, not files to copy into the user's product. For role-specific work, read only the matching guide under `references/starter-kit/prompts/`. For Product screens that combine components (header, toolbar, modal, panel, list, table, settings, form, viewer), read [DESIGN.product-patterns.md](references/starter-kit/context/DESIGN.product-patterns.md). When implementing a component, read its `.prompt.md` and `.jsx` under `references/starter-kit/components/`; prop contracts and allowed values are in `components/_types.d.ts`. A `.prompt.md` whose first line says "구현 없음, 가이드 전용" is a guide only (no `.jsx`, no type contract): follow its rules, using the `@upstageai/ui` component it names when there is one. For charts read [chart-rules.json](references/starter-kit/rules/chart-rules.json). UI copy always follows [DESIGN.microcopy.md](references/starter-kit/context/DESIGN.microcopy.md) (listed above). Product 배지·라벨을 만들 때는 짧은 예시나 정적 HTML이어도 색을 고르기 전에 [Badge 지침](references/starter-kit/components/display/Badge.prompt.md)과 [구현](references/starter-kit/components/display/Badge.jsx)을 읽는다. 별도 색상 요구나 분류·상태 의미가 없는 ‘새 기능’ 같은 라벨은 기본 Badge를 사용한다. ‘새 기능’·‘혜택’·‘라벨’이라는 단어만으로 Highlight를 선택하지 않는다. 분류·상태가 명확하면 지원하는 tone을 사용하고, 의도적인 정보 강조가 필요할 때만 해당 context의 Highlight 사용 조건을 확인한다. For structured agent output or final self-check, read: - [agent-response.schema.json](references/starter-kit/schema/agent-response.schema.json) - [self-check.schema.json](references/starter-kit/schema/self-check.schema.json) Use examples under `references/starter-kit/examples/` only when the current deliverable matches one of them. Do not load every example by default. ## Bundled artifacts and release maintenance 패턴 도구, UI kit, 덱 kit, 정적 HTML용 CSS 진입점(`styles.{product,marketing,website}.css`, context에 맞는 것 하나만 건다), 검증·패키징 스크립트 목록은 [bundled-artifacts.md](references/bundled-artifacts.md)에 있다. 필요할 때만 연다. 이 번들 자체를 고치거나 배포할 때도 같은 파일의 배포 절을 읽는다. ## Preflight implementation work Before changing application code or configuration, run: ```bash python3 /scripts/detect_compat.py ``` Read [compatibility.md](references/compatibility.md) for the returned profile. Treat installed package versions and the lockfile as evidence; do not infer compatibility from a branch name or an upstream merged PR. - Tailwind 3 + `@upstageai/ui` 1.2.x: use the bundled Product token CSS as the runtime token source and apply the documented bridge and content glob. - Tailwind 4 + `@upstageai/ui` 2.1.0 or newer: import `@upstageai/ui/theme.css`; do not copy the bundled Product token CSS into application CSS. - Unsupported, missing, or ambiguous combinations: report the mismatch before editing configuration. Do not silently upgrade dependencies. - If the detector warns about multiple Radix layer package versions, report it first. Escape inside a nested tooltip can close the surrounding dialog until the versions are aligned. - Moving from Tailwind 3 to 4 or from UI 1.x to 2.x: read the Tailwind 3 → 4 and UI 2.1.0 defect sections of compatibility.md first, and follow the migration principles in [lift-migration.md](references/lift-migration.md). The foundation PR must leave the screen unchanged; review string literals the upgrade tool rewrote; take before-captures of the states in [testing.md §9](references/testing.md) before changing anything. Dependency installation or upgrades may be performed only when they are within the user's implementation request. Preserve the project's package manager and lockfile policy. ## Implement - Preserve existing adapters. Merge the minimum required token or Tailwind changes; do not regenerate an existing `globals.css` or Tailwind config wholesale. - Prefer existing `@upstageai/ui` components over reimplementing primitives. - For Korean, Chinese, and Japanese (CJK) text, apply `word-break: keep-all`. It prevents words from breaking in the middle and makes lines wrap at spaces (word-unit boundaries) whenever possible. - Do not use raw hex, fallback hex, magic z-index, text gradients, or cross-context tokens except where the canonical token files explicitly allow them. - Include empty, loading, error, disabled, success, and responsive states when relevant. - Do not invent metrics, prices, customer names, or customer logos. Use real values from the user or the product; otherwise use an obvious placeholder and say so. Never put the Upstage logo in a customer-logo slot. - Do not show internal code names on screen. Use the name the user sees in the product, and reuse the product's existing terms from its copy files (§10 of DESIGN.microcopy.md). - Treat `buttonVariants` in React Server Components as unresolved until a published version passes a fresh-consumer RSC regression test. Prefer the component API or a verified local class helper. - For `@upstageai/ui` 1.2.x, do not rely on `Button asChild` until a published 1.2.x release containing the backport is verified. `2.1.0+` contains the fix. ## Verify Run the project's existing typecheck, lint, tests, and build in proportion to the change. For UI work, inspect the rendered result when a local preview is available. When the change adds or edits UI copy files, run `python3 /scripts/lint_copy.py ` (add `--allow-yo ` for agent chat replies). Report findings in the changed strings; do not rewrite untouched strings to clear existing findings. For the installed profile, also run the checks in [compatibility.md — 설치 조합별 확인 항목](references/compatibility.md#설치-조합별-확인-항목). Before/after evidence is rendered images of real states (open overlays, a select inside a modal, keyboard → mouse, touch, reduced motion, dark), not prose. For a generated static artifact, run `python3 /scripts/validate_css.py --output --context ` and check 320px overflow in the rendered page. Finish with context, token intent, forbidden-rule, code-safety, verification, and human-review findings. A self-check is evidence for review, not a final quality verdict. ============================================================================== # FILE: readme.md ============================================================================== # Lift 디자인 기준과 제작 자료 이 폴더는 **Lift — 업스테이지 디자인 시스템** 스킬에 포함된 기준·토큰·규칙·참고 구현·템플릿입니다. 현재 시작점은 [스킬 SKILL.md](../../SKILL.md)이며, 별도 Starter Kit을 설치할 필요가 없습니다. | 경로 | 용도 | |---|---| | `context/` | Product·Website·Marketing, 덱·인쇄 등 작업별 기준 | | `tokens/` | 공통 primitive, context별 토큰과 intent | | `rules/` | 금지 규칙, 접근성, 한국어 타이포, 라우팅 | | `components/` | 컴포넌트 참고 구현과 prop 계약 | | `prompts/` | 기획·디자인, 개발 작업 가이드 | | `schema/` · `checklist/` | 요청·응답 형식과 self-check | | `examples/` · `templates/` · `deck/` | 예시와 제작 템플릿 | 사용법은 [사용 가이드](USAGE.md), 제품 개발은 [Product 연동](PRODUCT-INTEGRATION.md)과 [버전별 호환 가이드](../compatibility.md)를 따릅니다. Website는 [DESIGN.website.md](context/DESIGN.website.md)와 `tokens/website.css`가 현재 기준입니다. 이전 Product·Marketing 토큰 혼합 안내를 사용하지 않습니다. 전체 `lift/` 폴더를 전달해 참조와 자산을 유지합니다. UI 컴포넌트 패키지 `@upstageai/ui`는 별도로 제품에 설치된 버전을 사용합니다. AI의 self-check는 사람의 최종 검수를 대신하지 않습니다. ============================================================================== # FILE: kit/context/DESIGN.product.md ============================================================================== # DESIGN.product.md 작성일: 2026-05-21 상태: `DESIGN_v2.md` Product fragment 대상: 콘솔, 대시보드, 설정, API 관리, 웹앱 UI ## 0. 컨텍스트 선언 ``` 나는 Product 컨텍스트로 작업한다. 읽어야 할 섹션: §1.5 Intent Token Mapping + §2 공유 Primitive + §3-P Product Semantic + §4-P Product Component + §5 레이아웃 + §7.8 Forbidden Cross-Use Table ``` > Source of truth: `DESIGN_v2.md` (Sections 1.5, 2, 3-P, 4-P, 5, 7.8) + [tokens.product.css](../tokens/tokens.product.css) (agent-facing Product token source). ## 1. Product 정체성 | 항목 | 값 | | ------------- | -------------------------------------------------------------------- | | 대상 표면 | Console, Dashboard, Playground, Settings, API management, Web app UI | | 톤 | 정보 밀집, 반복 사용 가능, 업무 UI | | Type baseline | 16px body, Hero 1.5–2.0× (24–32px), Card 1.1–1.4× | | Stack | Next.js 14 / Tailwind 3 / React 18 / `@upstageai/ui` | Product는 **밀도와 안정성**을 우선한다. Marketing 톤이나 큰 visual emphasis는 금지. ## 2. Intent → Token 매핑 (Product) | Intent | Product 토큰 | | ---------------------------------- | -------------------------------------------------------------- | | `action.primary` | `hsl(var(--primary))` (brand-500 `#5B52FF`) | | `action.secondary` | Button `outline` / `ghost` (transparent bg, `--foreground`; outline border `--border`) | | `action.destructive` | `hsl(var(--destructive))` (red-400) | | `surface.default` | `hsl(var(--background))` | | `surface.subtle` | `hsl(var(--subtle))` | | `surface.brand` | `hsl(var(--accent))` (brand-50) | | `text.primary` | `hsl(var(--foreground))` | | `text.secondary` | `hsl(var(--muted-foreground))` | | `text.on-dark` | `hsl(var(--primary-foreground))` | | `border.subtle` | `hsl(var(--border-subtle))` | | `border.medium` | `hsl(var(--border-medium))` | | `focus.ring` | `hsl(var(--ring))` | | `state.disabled` | `hsl(var(--disabled))` + `hsl(var(--disabled-foreground))` | | `state.success/warning/info/error` | `hsl(var(--state-*-bg/-icon/-fg))` | | `surface.overlay` | `hsl(var(--overlay))` + `--overlay-opacity` / `--overlay-blur` | | `elevation.shadow` | `var(--shadow-sm / -md / -lg / -xl)` | | `motion.duration` | `var(--duration-fast / -normal / -slow)` | 전체 intent map은 `tokens/token-intents.json` 참조. 텍스트 색은 단색(solid)만, CSS text-gradient 금지. ## 3. Semantic 토큰 (요약) ### Base & Layout `--background`, `--subtle`, `--foreground`, `--card`, `--card-foreground`, `--card-border`, `--popover`, `--overlay`(+`--overlay-opacity`/`--overlay-blur`), `--modal-bg`, `--modal-border`, `--modal-shadow`. ### Actions `--highlight` (green-yellow-400; 목적이 분명한 정보 강조. 배지·라벨의 기본색이 아니며 보조 동작·차트 기본색으로 사용하지 않음), `--primary` (brand-500 light / brand-400 dark), `--secondary*` (deprecated neutral HSL compatibility aliases; new secondary actions use `outline` / `ghost`), `--destructive` (red-400), `--accent` (brand-50), `--accent-foreground` (brand-800), `--accent-border` (brand-300), `--disabled`, `--disabled-foreground`, `--disabled-border`. Highlight는 강조 목적이 분명한 정보에 사용한다. 배지·라벨의 기본색을 뜻하지 않는다. 일반적인 ‘새 기능’ 라벨은 Badge 기본값을 따른다. 분류·상태에는 Badge가 지원하는 tone을 사용하며, 보조 동작·차트 기본색에는 Highlight를 사용하지 않는다. 색을 고르기 전에 Badge 지침과 구현을 확인한다. (`components/display/Badge.prompt.md`, `Badge.jsx`) ### Muted Scale `--muted-light`, `--muted`, `--muted-soft`, `--muted-medium`, `--muted-foreground`, `--muted-dark`, `--muted-darker`. ### Border Scale `--border-subtle`, `--border`, `--border-medium`, `--border-strong`, `--border-dark`, `--border-bold`. ### Forms `--input`, `--input-hover`, `--input-active`, `--ring`, `--ring-offset`, `--placeholder`, `--switch-*`, `--slider-*`. ### State | State | bg | icon | fg | | ------- | --------- | ---------- | ---------- | | success | green-50 | green-400 | green-900 | | warning | yellow-50 | yellow-400 | yellow-900 | | info | blue-50 | blue-400 | blue-900 | | error | red-50 | red-400 | red-900 | ### Feedback `--skeleton`, `--skeleton-strong`, `--skeleton-shimmer`, `--status-online/offline/busy/away`. ### Utility `--link`, `--link-hover`, `--selection-background/-foreground`, `--code-background/-foreground`, `--kbd-*`, `--scrollbar-*`, `--dimed`, `--shadow-tooltip`, `--gradient-primary`, `--gradient-blue`. > `--gradient-*` 토큰은 **배경 전용**. 텍스트 그라데이션 금지. 전체 토큰 값은 [tokens.product.css](../tokens/tokens.product.css) 참조. ## 4. Component Tokens 특정 UI 컴포넌트 바인딩 토큰 — `globals.css` §3 COMPONENT TOKENS: - **Nav**: `--nav-background/-foreground/-border/-item-highlight` - **Sidebar**: `--sidebar-background/-foreground/-item-highlight/-border` - **Table**: `--table-header/-header-border/-row-border/-row-hover` - **Tab**: `--tab-list-bg/-active-bg/-active-fg/-inactive-fg` - **Footer**: `--footer-background/-foreground/-border` - **Tooltip**: `--tooltip`, `--tooltip-foreground` - **Badge**: `--badge-default`, `--badge-default-foreground` - **Calendar**: `--calendar-selected/-selected-foreground/-today/-range-middle/-outside` - **Command**: `--command-background/-group-heading/-item-selected` ## 5. Type Scale — Product | Token | Font | Size | Weight | Line-height | Usage | | ---------------- | ------------- | ---- | ------ | ----------- | --------------------------- | | `Heading/H4-400` | Geist Medium | 24px | 500 | 1.25 | FAQ 질문, 다이얼로그 타이틀 | | `Heading/H5-500` | Geist Medium | 20px | 500 | 1.25 | Accordion 헤더, 카드 타이틀 | | `Body/B1-500` | Geist Medium | 18px | 500 | 1.55 | Tab active, 본문 강조 | | `Body/B1-400` | Geist Regular | 18px | 400 | 1.55 | Tab inactive, 일반 본문 | | `Body/B2-500` | Geist Medium | 16px | 500 | 1.55 | Button label, Banner text | | `caption/C1-500` | Geist Medium | 14px | 500 | 1.45 | Select value, Input | ### Typography utility classes `.h1` `.h2` `.h3` `.h4` `.large` `.lead` `.p` `.p-ui` `.p-ui-medium` `.list` `.body` `.body-medium` `.subtle` `.subtle-medium` `.subtle-semibold` `.small` `.detail` `.blockquote` `.inline-code` `.table-head` `.table-item`. > 새 텍스트 스타일이 필요하면 위 class 중 가장 가까운 걸 먼저 검토. 임의 Tailwind 조합 = drift 1순위. ## 6. Spacing / Radius / Layout ### Spacing Scale `space-1` 4px → `space-2` 8px → `space-3` 12px → `space-4` 16px → `space-5` 20px → `space-6` 24px → `space-7` 28px → `space-8` 32px → `space-9` 36px → `space-10` 40px → `space-11` 44px. 64px 이상은 Tailwind class 직접 사용. ### Radius (Product UI) - `sm` 4px — Tags, badges - `md` 6px — Input fields, small buttons - `lg` 8px (`--radius`) — Buttons, icons - `xl` 16px (`--radius-lg`) — Cards, modals, hero ### Layout max-width `--max-w-content` 1200px, `--max-w-header` 1000px, `--max-w-card` 384px. ## 7. Product Forbidden (요약) | 금지 | 대안 | | --------------------------------------------------------------------- | -------------------------------------------------------------------- | | `--ups-purple` 호출 | `--accent-purple-bg/default/fg` Categorical 3단계 세트 사용 | | `--key-palette`, `--key-palette-hover` | `hsl(var(--primary))` | | Marketing의 `--highlight` | Product는 같은 이름의 Product 의미 토큰을 사용하며, 맥락별 값은 혼용하지 않음 | | `--ink`, `--ink-*` | `hsl(var(--foreground))` / `hsl(var(--muted-foreground))` | | `--surface-light`, `--surface-purple`, `--hero-bg`, `--dark-surface*` | `hsl(var(--background))`, `hsl(var(--subtle))`, `hsl(var(--accent))` | | `--marketing-card-*`, `--marketing-btn-*`, `--marketing-input-*` | Product semantic 토큰만 | | Raw hex (`#5B52FF`, `#0D0D12` 등) | `hsl(var(--*))` / `var(--*)` | | Fallback hex (`var(--primary, #5B52FF)`) | `var(--primary)` 단독 | | Magic z-index (`z-index: 999999`) | `var(--z-sticky / --z-popover / --z-modal / --z-toast)` | | CSS 텍스트 그라데이션 | 단색 토큰만 | 전체 규칙은 `rules/forbidden-rules.json` 참조. ## 8. Brand 적용 규칙 (Product 관점) - **B-3 Featured card rule**: card grid에서 1개만 Featured (1.5px accent border만 사용, 별도 상단 색 띠는 쓰지 않음). Product에서는 사용 빈도 낮음 — pricing/comparison 한정. - **B-5 CTA = one primary action**: 한 면에 시각적으로 동등한 복수 CTA 금지. 보조 CTA는 ghost/outline. - **B-7 Semantic over Primitive**: primitive 토큰 직접 참조 금지. 반드시 semantic을 통해. - **B-8 Categorical 3단계 세트**: `--accent-{name}-bg/default/fg` semantic 세트 사용. default 단독 금지. ## 9. Hybrid 처리 — Product 컴포넌트가 Marketing 면에 들어갈 때 상호작용성이 있으면 **항상 Product variant**: - 입력·키보드 조작·disabled·loading이 있으면 Product 표준 사용 (ARIA / focus / keyboard / disabled state) - Marketing landing 내 in-page chat widget → Product semantic - Marketing landing 내 lead form → `.input-underline` (marketing) + Product ARIA/focus 자세한 결정 트리는 `DESIGN_v2.md` §1.5 Hybrid 미니 결정 트리 참조. ## 10. 상태 표현 호버, 선택, 키보드 포커스, 비활성, 처리 중, 색의 의미, 탭 두 종류, 호버 전용 동작, 레이어 순서는 [DESIGN.product-states.md](DESIGN.product-states.md)에 있다. 메뉴, 탭, 목록, 칩, 토글의 상태를 정하거나 고칠 때 읽는다. ## 11. Self-check (Product) agent는 결과 마지막에 다음을 포함한다. ```md ## Design Self-Check (Product) - Context: Product ✓ - 사용한 token intents: action.primary, surface.default, text.secondary ... - Marketing token 사용: 없음 - Raw hex 사용: 없음 - Fallback hex 사용: 없음 - Magic z-index 사용: 없음 - 텍스트 그라데이션: 없음 - @upstageai/ui 컴포넌트 영향: ... ``` JSON 형식은 `schema/self-check.schema.json` 참조. ### Product 표면 강조 규칙 · 1.9.4-rc.2 Toast·Banner·알림·카드·인용문의 한쪽 면을 굵게 칠하는 장식 강조선을 사용하지 않는다. 방향별 border, inset shadow, 가상 요소, 별도 색 띠로 같은 스타일을 재현하지 않는다. Toast는 기존 8px radius와 네 면이 같은 1px 중립 외곽선을 유지한다. 상태는 아이콘 색·모양과 명확한 문구로 표현한다. Banner의 균일한 1px 상태색 외곽선은 유지한다. 인용문은 한쪽 선과 선 전용 들여쓰기를 제거한다. 표/레이아웃 구분선, 입력 underline, 포커스 링, 로딩 spinner 및 차트의 데이터 표시는 이 장식 강조선 규칙의 대상이 아니다. ============================================================================== # FILE: kit/context/DESIGN.marketing.md ============================================================================== # DESIGN.marketing.md 작성일: 2026-05-21 상태: `DESIGN_v2.md` Marketing fragment 대상: 플라이어, 브로셔, 슬라이드, 소셜 에셋, 캠페인 랜딩 ### 1.1 Format-specific Context Marketing 작업이 특정 산출물 포맷에 해당하면 아래 기준을 함께 읽는다. | Format | Context | | ------ | ------- | | 카드뉴스 / carousel | `context/marketing/card-news.md` | | 발표자료 / PPT / 영업 제안 덱 / 기존 덱 브랜드 적용 | [Deck 프로파일](marketing/decks.md) — 3테마·전용 치수·제작 kit. 아래 일반 Marketing 스케일과 분리 | | 강연 카드 / Upstage TALKS / webinar card | `context/marketing/lecture-card.md` | | 고객 사례 / usecase interview / blog thumbnail | `context/marketing/customer-story.md` | | 기하·옵아트·궤도·스트라이프 패턴 배경 | `context/marketing/background-graphics.md`, `context/marketing/pattern-studio.md` | | 영상·모션 그래픽 / 브랜드 인트로 | 이 문서 §11 영상·모션 사전 체크 | 출력 채널이 실제 인쇄일 때만 [인쇄 출력](DESIGN.print.md)과 [인쇄 규격](../rules/print-specs.json)을 추가로 읽는다. 원페이저·포스터·PDF라는 이름만으로 종이 출력을 단정하지 않는다. 덱은 기존 프로파일을 유지하고 인쇄 납품에 필요한 규격만 덧붙인다. ## 0. 컨텍스트 선언 ``` 나는 Marketing 컨텍스트로 작업한다. 읽어야 할 섹션: §1.5 Intent Token Mapping + §2 공유 Primitive + §3-M Marketing Semantic + §4-M Marketing Component + §5 레이아웃 + §6 KV / Cover Graphic + §7.8 Forbidden Cross-Use Table ``` > Source of truth: `DESIGN_v2.md` (Sections 1.5, 2, 3-M, 4-M, 5, 6, 7.8) + [tokens.marketing.css](../tokens/tokens.marketing.css) (별도 파일, Product `globals.css`와 분리). ## 1. Marketing 정체성 | 항목 | 값 | | ------------- | ------------------------------------------------------------------------------------- | | 대상 표면 | Flyer (A4), brochure, sales kit, slides (PPT/Keynote), social asset, campaign landing | | 톤 | 표현력 / 전환 우선, 큰 visual emphasis | | Type baseline | 12–13px body, Hero 4.5–5.5× (70–88px), Card 1.4–1.8× | | 운영 | 별도 [tokens.marketing.css](../tokens/tokens.marketing.css) — Product `globals.css`는 이 파일을 import하지 않는다 | Marketing은 **임팩트와 전환**을 우선한다. Product token과 절대 혼용 금지. ## 2. Intent → Token 매핑 (Marketing) | Intent | Marketing 토큰 | | ----------------------------- | ----------------------------------------------------------------- | | `action.primary` (CTA) | `var(--marketing-btn-bg)` + `var(--marketing-btn-bg-hover)` | | `action.secondary` | `var(--marketing-btn-ghost-*)` | | `action.destructive` | (드물게 사용. Product semantic 사용) | | `surface.default` | `var(--surface-light)` (`#FAFBFC`) | | `surface.subtle` | `var(--surface-purple)` (`#F4F2FF`) | | `surface.brand` (Hero) | `var(--hero-bg)` (`#EAE6FF`) | | `surface.dark` (Footer / CTA) | `var(--dark-surface)` (`#0D0D12`) | | `text.primary` | `var(--ink)` (`#0D0D12`) | | `text.secondary` | `var(--ink-80)` (정보성 텍스트) | | `text.on-dark` | `var(--marketing-text-on-dark)` | | `emphasis.decorative` | `var(--ups-purple)` (`#805CFB`) — heading accent, decorative only | | `feedback.highlight` | `var(--highlight)` (`#D2FF95`) — ≤10% surface, dark bg | | `border.subtle/medium` | `var(--ink-20)` | | `focus.ring` | `var(--key-palette)` | | `state.hover` | `var(--marketing-btn-bg-hover)` (`#4840E0`) | | `state.disabled` | `opacity: 0.4` + `cursor: not-allowed` | ## 3. Marketing Colors | Token | Hex | Usage | | --------------------- | --------- | ------------------------------------------------------------------------------------------------- | | `--ups-purple` | `#805CFB` | Brand keycolor. headings emphasis, featured card borders, eyebrow text, decorative. **버튼 금지** | | `--key-palette` | `#5B52FF` | (`--color-brand-500` alias) CTA buttons, active states | | `--key-palette-hover` | `#4840E0` | CTA hover state (mkt-btn, web-nav\_\_cta 공용) | | `--highlight` | `#D2FF95` | Lime green. ≤10% surface, dark background, 1~2개 요소만 | ### Ink / Neutrals | Token | Value | Usage | | ---------- | --------------------- | ----------------------------------------------- | | `--ink` | `#0D0D12` | Primary text, dark backgrounds, footer surfaces | | `--ink-80` | `rgba(13,13,18,0.8)` | Body text, subheadings | | `--ink-50` | `rgba(13,13,18,0.5)` | Decorative / disabled only; 정보성 텍스트 금지 | | `--ink-20` | `rgba(13,13,18,0.15)` | Borders, dividers, subtle separators | | `--ink-08` | `rgba(13,13,18,0.06)` | Hover backgrounds, faint fills | ### Surfaces | Token | Hex | Usage | | -------------------- | --------- | -------------------------------------------------------- | | `--surface-light` | `#FAFBFC` | Default page background. 극연보라 변형 `#F8F7FF` 도 허용 | | `--surface-purple` | `#F4F2FF` | Alternate page background (대비 페이지) | | `--hero-bg` | `#EAE6FF` | Hero section background | | `--dark-surface` | `#0D0D12` | Footer, CTA blocks, dark-mode sections | | `--dark-surface-alt` | `#12102A` | Alternative dark navy | ### Color rules - `--ups-purple`는 시각적 주인공. 다른 색이 지배하지 않도록. - CTA 버튼은 반드시 `--key-palette` 사용. hover는 `--key-palette-hover`. `--ups-purple` 버튼 금지. - `--highlight`는 구두점 — 화면당 1~2개 요소. - 멀티 섹션은 `--surface-light` ↔ `--surface-purple` 교차. - 다크 배경에서는 흰 텍스트와 `--highlight`로 핵심 수치·혜택·배지·라벨만 강조한다. 기본 버튼 배경이나 차트 계열색으로 사용하지 않는다. ## 4. Marketing Component Tokens | Component | Token | Value | | --------------------- | ---------------------------------- | -------------------------- | | **Card** | `--marketing-card-bg` | `#FFFFFF` | | | `--marketing-card-border` | `hsl(var(--border-medium))` | | | `--marketing-card-radius` | `8px` | | | `--marketing-card-padding` | `24px` | | | `--marketing-card-padding-compact` | `16px` | | | `--marketing-card-featured-border` | `hsl(var(--border-medium))` | | **Button** | `--marketing-btn-bg` | `var(--key-palette)` | | | `--marketing-btn-bg-hover` | `var(--key-palette-hover)` | | | `--marketing-btn-fg` | `#FFFFFF` | | | `--marketing-btn-radius` | `8px` | | | `--marketing-btn-ghost-fg` | `var(--key-palette)` | | | `--marketing-btn-ghost-border` | `var(--key-palette)` | | | `--marketing-btn-ghost-bg-hover` | `rgba(91,82,255,0.06)` | | **Input (Underline)** | `--marketing-input-border` | `rgba(13,13,18,0.25)` | | | `--marketing-input-border-active` | `var(--key-palette)` | | | `--marketing-input-fg` | `var(--ink)` | | | `--marketing-input-placeholder` | `rgba(13,13,18,0.4)` | `mkt-card` / `mkt-btn` / `.input-underline` CSS는 반드시 위 토큰을 `var()`로 참조 — hex 하드코드 금지. ## 5. Type Scale — Marketing | Level | Size | Weight | Tracking | Line-height | Max-width | Usage | | --------------- | ------- | ------- | -------- | ----------- | ---------- | ------------------------------- | | Hero Title | 44–86px | 800 | -0.04em | 1.05 | 45ch | Landing hero, declaration | | Section Title | 24–32px | 700–800 | -0.03em | 1.15 | 45ch | Section headings | | Card Title | 13–20px | 700 | -0.02em | 1.25 | card width | Cards, list items | | Body | 12–13px | 400 | 0 | 1.55 | 65ch | Korean/English paragraphs | | Caption / Label | 9–11px | 500–600 | +0.04em | 1.45 | 45ch | Metadata, captions | | Eyebrow | 8–9px | 600 | +0.10em | — | — | Uppercase section labels | | KPI Number | 32–48px | 800 | -0.04em | 1.05 | — | Metrics, impact numbers | ### A4 Print 별도 스케일 | Level | Size | Weight | Tracking | Line-height | | -------- | ----- | ------ | ------------------ | ----------- | | 제목 | 20px | 800 | -0.03em | 1.15 | | 소제목 L | 14px | 800 | -0.04em | 1.25 | | 소제목 M | 11px | 700 | -0.02em | 1.30 | | 소제목 S | 9px | 700 | +0.04em | 1.40 | | 본문 | 8px | 400 | 0 | 1.60 | | 각주 | 6.5px | 600 | +0.07em, uppercase | 1.45 | | 최소값 | 6px | — | — | — | ## 6. Marketing 폰트 | Role | Font | | -------- | ---------------------------------------- | | Headline | `Geist` | | Body KO | `Noto Sans KR` | | Body EN | `Geist` | | Mono | `Geist Mono` — code·pre·kbd·samp 안에서만 (ALL-5) | > 한글이 한 글자라도 들어가면 무조건 `Noto Sans KR`로 처리. ## 7. Border Radius (Marketing) | Value | Usage | | ----- | ---------------------------------- | | 4px | Tags, badges (`--marketing-radius-tag`) | | 8px | 그 외 전부 — icons·small containers(`--marketing-radius-icon`), compact cards(`--marketing-radius-card-compact`), standard cards·buttons(`--marketing-card-radius`·`--marketing-btn-radius`), hero·CTA block(`--marketing-radius-hero`) | > 2026-08-21 정정. 이 표는 10 / 12 / 16px 를 적고 있었으나 `tokens.marketing.css` 와 > 번들 산출물(`templates/` · `ui_kits/`)이 쓰는 값은 8px 하나뿐이다(9회, 12·16px 0회). > SSOT 는 토큰이고 문서가 낡았던 것이다. ## 8. Marketing Forbidden | 금지 | 대안 | | --------------------------------------------------------------------------- | ---------------------------------------------------------------------- | | Product semantic token (`hsl(var(--primary))`, `hsl(var(--background))` 등) | `var(--key-palette)`, `var(--surface-light)` | | Product Categorical (`--color-coral-*` 등) 직접 호출 | KV/decorative 영역만 예외 | | Product `--secondary*` 호환 토큰을 버튼에 사용 | Product 호환 토큰은 Marketing에 혼용하지 않음. Marketing CTA는 `--key-palette`, 보조 CTA는 ghost/outline | | `--ups-purple` interactive button 배경 | visual anchor 전용 | | 일반 input에 `--marketing-input-*` 적용 | `.input-underline` 전용 | | CSS 텍스트 그라데이션 | 단색 토큰만 | 명시적 예외: - Marketing KV / decorative graphic의 raw hex (`.deco-block-*`의 `#C4B5FD`, `#805CFB`) — 에셋 내부 hardcode 허용 - Product onboarding 그래픽 재사용 — §6 가드레일 4건 충족 시 허용 ## 9. Brand 적용 규칙 (Marketing 관점) - **B-1 Declaration before explanation**: 큰 선언 먼저, feature list는 뒤로. - **B-2 Evidence is design**: 숫자/customer logo는 주요 시각 요소. - **B-3 Featured card rule**: card grid에서 1개만 Featured (1.5px token border만 사용, 별도 상단 색 띠는 쓰지 않음). - **B-4 Alternate surfaces across sections**: `--surface-light` ↔ `--surface-purple` 교차. - **B-5 CTA = one primary action**: 시각적으로 동등한 복수 CTA 금지. 보조 CTA는 ghost/outline. - **B-6 `--highlight` is punctuation**: dark 배경 + 1~2개 요소만. ## 10. Self-check (Marketing) ```md ## Design Self-Check (Marketing) - Context: Marketing ✓ - 사용한 token intents: action.primary, surface.brand, emphasis.decorative ... - Product semantic 사용: 없음 - Product `--secondary*` 호환 토큰 사용: 없음 - `--ups-purple` 버튼 사용: 없음 - `--highlight` 사용: dark 배경 ✓ / 화면 ≤10% ✓ - Featured card 개수: 1개 - 같은 CTA 2개 동일 무게로 배치: 없음 - Raw hex 사용 (decorative 외): 없음 - 텍스트 그라데이션: 없음 ``` ## 11. 영상·모션 사전 체크 영상은 렌더가 오래 걸려서 위반을 렌더 뒤에야 알게 된다. 2026-09 사내 챌린지 영상에서 한 번에 네 가지가 어긋났다. **전체 렌더 전에** 대표 프레임(인트로, 강조 장면, 엔드카드)을 원본 해상도로 뽑아 아래를 본다. | 항목 | 기준 | 사례에서 틀린 것 | |---|---|---| | 한국어 폰트 | `Noto Sans KR`(§6). 설치돼 있지 않으면 **다른 폰트로 대체하지 말고 멈추고 묻는다** | Noto Sans KR이 없어 Pretendard로 대체했다. KO-8(error)이 Pretendard 참조를 금지한다 | | 모서리 | 태그 4px, 카드·버튼 8px(§7). 알약 모서리를 쓰지 않는다 | 칩·태그가 알약 모양이었다 | | 강조색 | `--highlight`는 화면당 1~2개(B-6). 영상 전체에서도 같은 의미의 자리에만 | 라임이 7곳 이상. 수정본은 2곳(100 달성 숫자, 최종 기록) | | 모션 | `--ease-standard`, `--ease-decelerate`, `--duration-fast`·`--duration-normal`·`--duration-slow`(150/300/500ms). 반동은 `--ease-spring`까지 | 크게 튀는 오버슛 | - 1080px 폭 영상에서 모서리를 ×3으로 환산한 사례가 있다(태그 12px, 카드 24px). **환산 배율은 정본이 아니다(결정 필요).** 쓰면 영상 전체에 같은 배율을 쓴다. - 폰트 파일이 서브셋이면 쓰려는 글자가 모두 있는지 렌더 전에 확인한다. ### 브랜드 인트로 — 제안 "브랜드 색이 묻어나는 완전히 새로운 인트로", "너무 딱딱하다"는 요청에 쓴 아이디어다. **승인된 규칙이 아니라 제안**이다. - 보라 선 하나가 그어지고, Upstage 심볼의 바로 늘어났다가, 흩어진 바가 중심으로 모여 로고로 맺힌다. - 마지막 프레임은 **공식 SVG 파일**(`assets/brand/`)로 끝낸다. 로고를 선으로 다시 그려 대신하지 않는다(ALL-4). - 로고 변형 금지([brand-assets-index.md](brand-assets-index.md) "사용 조건")와 심볼을 쪼개 움직이는 연출이 부딪히는지는 결정 필요다. ============================================================================== # FILE: kit/context/DESIGN.website.md ============================================================================== # DESIGN.website.md 작성일: 2026-05-21 상태: `DESIGN_v2.md` Website fragment 대상: upstage.ai (Webflow), stages.ai, 문서형 웹 화면 ## 0. 컨텍스트 선언 ``` 나는 Website 컨텍스트로 작업한다. 읽어야 할 섹션: §1.5 Intent Token Mapping + §2 공유 Primitive + §3-W Website Semantic + §4-W Website Component + §5 레이아웃 + §7.8 Forbidden Cross-Use Table ``` > Source of truth: `DESIGN_v2.md` (Sections 1.5, 2, 3-W, 4-W, 5, 7.8). ## 1. 운영 원칙 — Website = Product base + shared color source + documented exceptions Website는 Product와 Marketing 사이에 걸쳐 있다. 5월 Starter Kit은 별도 CSS를 만들지 않고 Product 토큰 + `tokens/marketing.css` 공유 색으로 운영했으나, **2026-08-19부터 `tokens/website.css`가 정식 토큰 파일이다.** `tokens/website.css`는 라이브 upstage.ai 공유 스타일시트를 ground truth로 삼는다. **2026-08-21 전수 실측**(발행 정적 41 + CMS 템플릿 대표 11 = 52페이지)으로 갱신됐다. | Layer | 내용 | 개수 | |---|---|---| | 1 | Webflow ground truth `--colors--*` | 23 (+오타 별칭 1) | | 1.5 | 타입 원장 `--web-font-*` / `--web-text-*` / `--web-leading-*` / `--web-weight-*` (반응형 2단) | 33 | | 2 | 시맨틱 `--surface-*` / `--text-*` / `--action-*` / `--border-*` | 22 | | 3 | 다크 테마 `--_dark---*` · 범용 역할값 `--cc-*` | 13 + 13 | | 4 | 웹 고유 축 `--section-*` · `--gutter-web` · `--shadow-*` · `--focus-ring-web-*` | 19 | Layer 2는 **이 DS가 지어낸 이름이다. Webflow에는 없다.** 라이브에서 같은 자리를 맡는 건 `--_semantic---*`(36개)인데 Product(shadcn) 계보라 웹 어휘와 맞지 않는다. Layer 2를 유지하되 Layer 1 위에 얹는 구조라는 걸 알고 쓴다. Layer 3의 `--_dark---*`를 실제로 쓰는 페이지는 **`/mabc-2026` 하나뿐**이다(64 셀렉터·179 요소). Solar hub는 이걸 쓰지 않는다. 삼중 대시는 Webflow 변수 컬렉션 표기를 그대로 옮긴 것이니 이름을 정리하지 말 것 — 라이브와 어긋난다. `--cc-*`는 이름과 달리 customer story 전용이 아니다. 14개 페이지에서 `.lang-btn` · `.text-lead-hero` · `.button-secondary` · `.article-kicker`가 참조하는 **범용 역할값 세트**이고, 정작 `/customers`에는 없다. **공통 층은 [website-style-guide.md](website-style-guide.md)가 정본이다** — 헤딩·본문 크기·굵기· 버튼·색·간격 11단·컨테이너 max-width. 라이브 Client-First 스타일 가이드 페이지를 렌더 실측한 것이고, 여기 있는 클래스는 페이지마다 크게 바꿔 쓰지 않는다. 새로 만들기 전에 여기 있는지 먼저 본다. 히어로는 **페이지가 아니라 유형으로 고른다** — [website-hero-types.md](website-hero-types.md)에 실렌더 측정으로 갈라낸 4종(T1 텍스트형 · T2 표지형 · T3 분할형 · T4 배경 미디어형)과 선택 기준이 있다. 1차 축은 **비주얼이 어디 있나**다. 라이브에는 섹션급 히어로 클래스가 **18종** 있고, 그중 14종을 재서 4종으로 모았다. 나머지 4종은 미측정이라 다섯 번째 골격이 나올 수 있다. 앱 주소의 첫 화면(Studio 홈처럼 로그인 전·후가 있는 화면)은 Website 껍질 + Product 내부인 Hybrid다 — [app-first-screen.md](app-first-screen.md)에 로그인 전·후 뼈대, 다크 히어로 품질, 탐색 시안 허용 범위, Product 면 그래픽 기준이 있다. 섹션 단위 구성은 [website-section-patterns.md](website-section-patterns.md)를 본다 — 52페이지에서 반복 관측된 패턴 8종(Hero · 클로징 CTA · 카드 그리드 · 관련 콘텐츠 · 로고 신뢰 밴드 · 통계 강조 · 리드폼 · 다크 밴드)과 패턴별 토큰 매핑, 그리고 프로덕션에 공존하는 다크 4갈래의 선택 기준이 있다. **편입하지 않은 것.** 라이브에는 `--_sub---*` 37개가 더 있다. `untitled-ui--*` · `spark-library--*` · `elements-webflow-library--*` — 구매 Webflow 템플릿의 변수 컬렉션이다. 51개 페이지에 걸쳐 598개 요소가 여전히 참조하고 있지만 Upstage 브랜드 값이 아니다. 새 작업에서 호출하지 말 것. 정리 대상이다. **Webflow 오타 주의.** 라이브에는 정타 `--colors--purple-200`이 없고 오타 `--colors--puple-200`만 있다. 이 파일은 정타를 정본으로 두고 오타를 별칭으로 건다. Webflow에서 고쳐지면 별칭을 뺀다. 로드 순서는 Product 토큰 → `tokens/website.css` 다. Website는 Product를 기반으로 하고 표면·CTA·nav 색과 섹션 리듬만 덮어쓴다. **⚠ `--space-*`를 웹 섹션 간격으로 재정의하지 말 것.** Product의 `--space-5`는 20px, `--space-7`은 28px다. 이름은 같고 값이 다른 상태가 실제로 발생했었다(Solutions 프로토타입). 웹 섹션 리듬은 **선언값과 실효값이 다르다.** 래퍼 컨벤션이 Padding Global > Container라 섹션은 항상 `.padding-global.padding-section-*` 콤보로 걸리는데, 콤보 특이도 (0,2,0)이 미디어쿼리 안 단독 규칙 (0,1,0)을 이긴다. 실효값을 쓴다. | 클래스 | 선언 | **실효** | 사용 | |---|---|---|---| | `.padding-section-small` | 48 / ≤767 32 | 48 · ≤767 **32** | 9회 · 7페이지 | | `.padding-section-medium` | 80 / ≤991 64 / ≤767 48 | **96** · ≤479 **48** | 75회 · 36페이지 | | `.padding-section-large` | 128 / 96 / 64 | — | **0회** | medium은 단독 사용이 0건이다. 콤보가 6rem(96px)으로 덮어써서 991·767에서 꺾이지 않고 ≤479에서 한 번만 48px가 된다. large는 선언만 살아 있고 쓰는 페이지가 없으니 정본으로 삼지 않는다. `--section-2xs`(24) · `--section-xs`(32) · `--section-xl`은 레거시 별칭이다. 52페이지 어디에서도 섹션 간격으로 쓰이지 않았다. 좌우 거터는 `--gutter-web` 40px(≤767px 20px). **mono 폰트는 `code` · `pre` · `kbd` · `samp` 안에서만 쓴다** (forbidden-rules ALL-5, error). eyebrow · kicker · 날짜 · 라벨 · 수치 · 배지에 쓰지 않는다. 2026-08-21 실측에서 라이브 mono 규칙 22개 중 21개가 코드 블록이 아니었다. 강조는 크기·굵기·letter-spacing·색으로 만들고, 숫자 열 정렬이 목적이면 `font-variant-numeric: tabular-nums`를 쓴다. Geist Mono는 한글 글리프가 없어 한국어 페이지에서 폴백이 튀는 문제도 있다. 포커스 링은 웹 전용 값을 쓴다 — `--focus-ring-web-color` `#4d65ff` · 2px · offset 2px. Product의 `--focus-ring-*`(3px, brand-500)과 다르다. 52페이지 중 50페이지가 커스텀 코드로 이 값을 얹고 있다(변형 0건). 전역 규칙은 아니고 페이지마다 복붙된 상태라, `/solar-llms`와 `/upstage-for-insurance-trusted-decisions-faster`에는 없다. 새 섹션에서 값을 지어내지 말고 이 토큰을 쓴다. 페이지 고유 룩은 토큰 파일에 올리지 않는다. Solar hub의 유리·글로우·고스트 워드마크는 `--sh-*` 페이지 스코프로 남아 있고, 그게 옳다 — 사용 토큰 75개 중 60개는 이 파일에서 오고 34개만 페이지 전용이다. 자세한 내용은 [tokens/website-token-policy.md](../tokens/website-token-policy.md) 참조. ### Fallback 규칙 1. §3-W에 있으면 → §3-W 우선 2. §3-W에 없으면 → §3-P 참조 3. Surface / CTA 색상 토큰 → **`tokens/website.css`가 정본이다.** 이 문서가 `tokens/website.css`와 어긋나면 website.css가 이긴다(실측 우선). > ⚠ 2026-08-21 정정. §2·§3은 원래 marketing.css 별칭(`--key-palette`·`--ink`·`--hero-bg`·`--ups-purple`·`--highlight`)으로 쓰여 있었다. 실제 라이브가 쓰는 건 website.css의 `--cc-*` 역할값 세트다. 아래 표는 **색을 바꾸지 않고 이름만** 실측 토큰으로 옮긴 것이다. > > website.css에는 계열이 둘이고 값이 갈리는 지점이 있으니 주의한다 — `--action-primary-hover`는 `#442ad8`이지만 라이브 CTA hover는 `--cc-key-hover` `#4840e0`이고, `--text-primary`는 `#0a0d14`이지만 라이브 본문은 `--cc-ink` `#0d0d12`다. 또 `--surface-purple`은 **이름이 겹치면서 값이 다르다**(website.css `#dde3ff` vs 이 문서의 옛 `#F4F2FF` = `--cc-surface-key-soft`). 옛 이름을 그대로 옮겨 쓰지 말 것. ## 2. Intent → Token 매핑 (Website) | Intent | Website 토큰 (`tokens/website.css`) | 값 | | ------------------------------ | ------------------------------------------------------------------------------------ | --------- | | `action.primary` (CTA) | `var(--cc-key)` + `var(--cc-key-hover)` | `#5b52ff` / `#4840e0` | | `action.secondary` | outline `var(--cc-key)` + transparent bg | `#5b52ff` | | `surface.default` | `var(--surface-canvas)` | `#ffffff` ⚠ 옛 `#FAFBFC`는 website.css에 대응 없음 | | `surface.subtle` | `var(--cc-surface-key-soft)` | `#f4f2ff` | | `surface.brand` (Hero) | ✅ **쓰지 않는다** (2026-08-21 실측 확정) — 라이브 히어로 16개 중 라이트 13개가 전부 `background-color: transparent`. `--surface-hero`(`#ced0ff`)는 사용처 0으로 `[DEPRECATED]`. 다크 히어로는 `--_dark---surface`, 배경 이미지형은 `--colors--purple-1000` | 없음 | | `surface.dark` (Footer / Nav) | `var(--cc-dark-surface)` / `var(--surface-nav)` | `#0d0d12` / `#151727` | | `text.primary` | `var(--cc-ink)` | `#0d0d12` | | `text.secondary` | `var(--cc-ink-80)` / `var(--cc-ink-50)` | `#0d0d12cc` / `#0d0d1280` | | `text.on-dark` | `var(--text-on-dark-muted)` | `rgba(255,255,255,.5)` | | `emphasis.decorative` | `var(--colors--purple-700)` — ⚠ 옛 `--ups-purple`(`#805CFB`)은 **W-5로 website 사용 금지** | `#442ad8` | | `feedback.highlight` | `var(--cc-highlight)` — dark surface 또는 announcement bar 한정 | `#d2ff95` | | `border.subtle` (announcement) | `var(--cc-ink-20)` | `#0d0d1226` | | `focus.ring` | `var(--focus-ring-web-color)` — 2px, offset 2px | `#4d65ff` | | `state.hover` | `var(--cc-key-hover)` | `#4840e0` | > 상호작용성/상태가 필요한 컴포넌트는 §3-P / §4-P Product semantic 그대로 사용 (Hybrid 결정 트리). ## 3. Website 전용 토큰 정본은 `tokens/website.css`다. 아래는 옛 이름 → 실측 토큰 대조표이며, **옛 이름은 쓰지 않는다.** | 옛 이름 (쓰지 말 것) | 실측 토큰 (`tokens/website.css`) | Value | 사용처 | | ---------------------- | -------------------------------- | -------------------------- | --------------------------------------- | | `--surface-light` | `--surface-canvas` | `#ffffff` ⚠ 옛값 `#FAFBFC` | 기본 페이지 배경 | | `--surface-purple` | `--cc-surface-key-soft` | `#f4f2ff` | 교차 섹션 배경 — ⚠ website.css의 `--surface-purple`은 **다른 색**(`#dde3ff`) | | `--hero-bg` | **없음 — 쓰지 않는다** | 옛값 `#EAE6FF` | Hero 배경색을 두지 않는다 (2026-08-21 실측: 라이트 히어로 13개 전부 `transparent`). `--surface-hero`는 `[DEPRECATED]` | | `--dark-surface` | `--cc-dark-surface` | `#0d0d12` | Footer, CTA dark block | | `--web-nav-background` | `--surface-nav` | `#151727` | Website main nav 배경 | | `--web-nav-fg` | `--colors--white` | `#ffffff` | Nav links / CTA text | | `--web-nav-fg-hover` | `--text-on-dark` | `rgba(255, 255, 255, 0.7)` | Nav dropdown hover | | `--key-palette` | `--cc-key` | `#5b52ff` | CTA 버튼 | | `--key-palette-hover` | `--cc-key-hover` | `#4840e0` ⚠ `--action-primary-hover`는 `#442ad8`로 다름 | CTA hover | | `--ups-purple` | — (website 사용 금지, W-5) | `#805CFB` | Marketing 전용. website heading accent는 `--colors--purple-700` | | `--highlight` | `--cc-highlight` | `#d2ff95` | Announcement bar / 핵심 수치 강조 | ## 4. 폰트 패밀리 (Website 예외) | 역할 | Website | | ------------------ | ------------------------------------------ | | 섹션 헤딩 (h2, h3) | `Geist` | | Hero / Display | `ESPeak` (ES Peak) | | 본문 / UI 라벨 | `Geist` | | Korean | `Noto Sans KR` | Product 헤딩은 `Geist`, Website는 `Geist` / `ESPeak` 사용. ### CTA 버튼 Website CTA 는 `.button` 콤보다 — 정본은 [website-style-guide.md](website-style-guide.md) §버튼. 구현은 `tokens/base.website.css` 에 있고 `styles.website.css` 가 싣는다. **`.mkt-btn` 을 쓰지 않는다.** 정의가 `tokens/base.marketing.css` 에만 있고 Website entry 는 그 파일을 싣지 않는다 — 클래스만 붙이면 외형이 사라진다. `.button` 은 `--font-sans`(Geist)를 이미 쓰므로 폰트 오버라이드도 필요 없다. ```html Start in Console Try the demo ``` Letter-spacing: 모든 텍스트에 `letter-spacing: -0.18px` 일괄 적용 (정적 px 값). ## 5. Typography 스케일 (Website 추가) | Webflow 클래스 | Size | Font | Weight | Line-height | 비고 | | ------------------- | ---- | ------ | ------ | ----------- | ---------------------------------------- | | `heading-style-h2` | 64px | ESPeak | 600 | 1.15 | Hero display | | `heading-style-h3` | 32px | Geist | 500 | 1.25 | Section title | | `heading-style-h5` | 20px | Geist | 500 | 1.50 | Card/Feature title (Product H5-500 동일) | | `text-size-regular` | 16px | Geist | 400 | 1.60 | Secondary body | | Body (기본) | 18px | Geist | 400 | 1.60 | Product B1-400 동일 | > 64px / 32px만 Website 추가 스텝. 나머지는 Product 스케일과 대응. ## 6. 텍스트 색상 | 역할 | Website 실측 | Product 등가 | | ---------------- | -------------------------- | ------------------------------------------- | | Primary text | `#0A0D14` | `--cc-ink: #0D0D12` | | Secondary / Body | `#70757F` | `--muted-foreground (neutral-500: #71758B)` | | On-dark text | `rgba(255, 255, 255, 0.5)` | — | ## 7. 허용되는 Website 예외 | 영역 | 기본값 | 예외 | | ------------------- | -------------------- | ----------------------------------------------------------------------- | | Navigation | Product surface/text | `website.nav.background`, `website.nav.foreground`, `website.nav.hover` | | Hero | Product text/CTA | `website.hero.background`, `website.hero.text`, `website.hero.cta` | | CTA section | Product action | Website-specific CTA hierarchy | | Marketing-like band | Product surface | 단, Marketing token 직접 사용 금지 | | Docs / content page | Product typography | Website spacing/layout 예외 가능 | 자세한 예외 목록은 [tokens/website-token-policy.md](../tokens/website-token-policy.md) 참조. ## 8. Website Forbidden | 금지 | 대안 | | ----------------------------------------------------------- | ------------------------------------------------------------------ | | Product semantic token 직접 호출 (`hsl(var(--primary))` 등) | Webflow custom code 영역에서는 `var(--cc-key)` | | Product Island 외부의 app-style card / table / form 남용 | landing은 marketing 톤. product 컴포넌트는 demo/console 영역만 | | `--highlight` light surface 남용 | dark surface 또는 Announcement Banner 외 사용 금지 | | Raw hex (`#151727`, `#5B52FF` 등) | `var(--surface-nav)`, `var(--cc-key)` 등 website.css token | | CSS 텍스트 그라데이션 | 단색 토큰만 | 명시적 예외: - Website Announcement Bar의 `--cc-highlight` light bg → upstage.ai 실측 + 의도된 시각 강조 (`.web-announcement-bar` 한정) - Hybrid 페이지의 Marketing variant button — 동작/접근성은 Product 표준 (ARIA, focus, keyboard) ## 9. AI Stages `web2` 실증 기준 대상: `/path/to/aistages-main/web2` 검증할 것: - `globals.css` 후보 patch가 Product base + shared color source + Website 예외 구조를 따른다. - `tailwind.config.ts` 후보 patch가 Tailwind 3 / React 18 환경을 깨지 않는다. - 새 section/page가 Website/Hybrid context로 설명 가능하다. - 사용한 token intent와 예외 token이 self-check에 기록된다. ## 10. Self-check (Website) ```md ## Design Self-Check (Website) - Context: Website ✓ - 사용한 token intents: action.primary, surface.brand, text.primary ... - 사용한 Website token: --cc-key, --surface-nav ... (옛 --hero-bg·--key-palette는 쓰지 않는다) - Product semantic 직접 호출: 없음 (또는 Hybrid 정당화) - Raw hex 사용: 없음 - `--cc-highlight` 사용 위치: dark surface ✓ / announcement bar ✓ - 폰트: Geist / ESPeak / Noto Sans KR - 텍스트 그라데이션: 없음 ``` ============================================================================== # FILE: kit/context/DESIGN.print.md ============================================================================== # Marketing 인쇄 출력 대상은 실제 종이로 출력하는 플라이어·원페이저·포스터·브로셔·배포용 발표자료다. 화면용 PPT, 디지털 카드뉴스, 웹, PDF 다운로드물에는 자동 적용하지 않는다. 출력 의도가 불분명하면 디자인 초안은 진행하고 납품 준비 단계에서 채널을 확인한다. [Marketing 기준](DESIGN.marketing.md)과 [인쇄 규격](../rules/print-specs.json)을 함께 읽는다. 수치와 작업별 확인 항목의 정본은 JSON이며 인쇄소와 합의한 작업 사양이 기본값보다 우선한다. 기존 그래픽·색상 토큰을 변경하는 프로파일은 아니다. ## 원본에서 도련을 만든다 기본 도련은 사방 3mm, 글자·로고의 안전 여백은 재단선 안쪽 5mm다. 배경·사진은 도련 끝까지 실제로 연장한다. 흰 여백만 추가하는 방식은 흰 배경이 의도된 경우에만 적합하다. 전체 확대는 대체 방법이며 내용 잘림·안전 여백·최종 글자 크기를 다시 확인한다. A4·A3·A1 치수 예시는 JSON을 따른다. 방향이나 도련값 변경 시 다시 계산한다. 도련 포함 입력인지 판단할 때는 페이지 크기와 함께 기존 박스, 최종 재단 의도를 확인한다. ## 페이지 박스와 납품 규격 TrimBox는 재단 영역, BleedBox는 실제 도련 영역, MediaBox는 시트 전체다. 크기와 좌표를 함께 검사한다. 재단선은 인쇄소가 요구할 때 추가하고 그림 영역에 겹치지 않게 둔다. 재단선이 없으면 불필요한 외곽 패딩도 넣지 않는다. ArtBox를 무조건 추가하지 않는다. 특히 PDF/X-1a·PDF/X-3는 TrimBox와 ArtBox를 동시에 설정하지 않는다. 납품 표준에 맞는 프리플라이트로 확인하며 일반 PDF 박스 검사만으로 PDF/X 적합성을 주장하지 않는다. ## 색상과 글자 작업 색상은 기존 Marketing RGB 토큰을 유지한다. 납품은 인쇄소의 RGB 수락 여부, 변환 담당, ICC 프로파일, PDF 표준을 작업별로 정한다. PDF/X이면 해당 출력 조건/output intent도 확인한다. RGB 검정을 100K라고 간주하지 않으며 CMYK 납품의 본문·큰 검정 면은 JSON의 구분을 따른다. 글자는 최종 출력 크기의 pt로 판단한다. CSS 8px는 100% 출력에서 6pt이며 보편적인 인쇄 하한이 아니다. 역할·서체·관람 거리·출력 배율에 맞춰 읽을 수 있는 크기를 정한다. 한국어 줄바꿈 지침을 유지하되 최종 크기로 확인한다. ## 외부 도구와 대체 경로 재단선 웹 도구와 그 코어·CLI는 사내 도구(공개판 미제공)이며 이 번들에 포함되어 있지 않다. 외부 경로·미확정 버전·제보된 제한은 JSON의 `tools`에 기록했다. 코어를 확보하지 않고 실행 가능하다고 안내하지 않는다. 제공자의 브라우저 내부 처리 설명은 이번 번들에서 검증하지 않았다. 외부 저장소 URL·커밋·설치 방법을 확인한 후 기존 코어를 사용하거나, 원본 편집 도구에서 도련과 PDF를 출력한다. 회전 페이지를 지원하지 않는 도구는 정규화 후 박스를 재검증하거나 처리를 중단한다. 경고만 있는 결과를 인쇄 준비 완료로 표시하지 않는다. ## 확인 범위 JSON의 `beforeSending`을 실제 결과에 적용한다. 배포 게이트는 기존 React·덱·다이어그램 회귀 검사이며 인쇄 PDF 프리플라이트나 실물 교정을 대신하지 않는다. 외부 코어를 연결할 때 재단 크기 입력·도련 포함 입력·90°/270° 회전 입력을 별도로 확인한다. 출처: 커뮤니케이션 팀 제공 print-specs 0.5.0을 검토해 0.5.1로 정리했다. 기술 근거는 [Adobe 도련 설명](https://helpx.adobe.com/illustrator/using/printers-marks-bleeds.html), [W3C 절대 단위](https://www.w3.org/TR/css-values-3/#absolute-lengths), [PDF/X FAQ](https://idealliance.org/files/IPA_pdfxq_a4.pdf), [PDF Association](https://pdfa.org/pdfx-the-key-facts/)를 참고했다. ============================================================================== # FILE: kit/rules/forbidden-rules.json ============================================================================== { "$schema": "https://upstage.ai/design-system/schemas/forbidden-rules/0.1.0", "version": "0.6.1", "createdAt": "2026-05-21", "source": "DESIGN_v2.md §7.8 Forbidden Cross-Use Table", "scope": "구현 코드의 fallback / raw literal 한정. §2.1 Primitive · §3-M Marketing Colors · §3-P Component Tokens 등 토큰 정의 표의 hex/HSL/rgba 원값은 source of truth로 예외.", "stage": "Stage 1.5 — 사람 / Agent self-check가 유일한 방어선. 6월 Task 2에서 lint/schema hardening 초안을 만들고, 빌드 lint 강제는 Stage 2~3 안착 후 적용.", "rules": [ { "id": "P-1", "context": "product", "forbidden": "var(--ups-purple) 호출", "reason": "A5 결정 — marketing 전용", "alternative": "보라 필요 시 var(--accent-purple-bg), var(--accent-purple-default), var(--accent-purple-fg) Categorical 3단계 세트 사용", "severity": "error" }, { "id": "P-2", "context": "product", "forbidden": "var(--key-palette), var(--key-palette-hover) 직접 호출", "reason": "Product 표준 토큰이 따로 있음", "alternative": "hsl(var(--primary)) 사용", "severity": "error" }, { "id": "P-3", "context": "product", "forbidden": "Marketing Highlight 값 #D2FF95의 Product 혼용", "reason": "Product와 Marketing은 Highlight 역할을 공유하되 맥락별 원장과 값은 구분", "alternative": "Product의 hsl(var(--highlight))를 목적이 분명한 정보 강조에 사용. 보조 동작과 차트 기본색에서는 제외", "severity": "error" }, { "id": "P-4", "context": "product", "forbidden": "var(--ink), var(--ink-*) 직접 호출", "reason": "Product 표준 토큰이 따로 있음", "alternative": "hsl(var(--foreground)) 또는 hsl(var(--muted-foreground)) 사용", "severity": "error" }, { "id": "P-5", "context": "product", "forbidden": "var(--surface-light), var(--surface-purple), var(--hero-bg), var(--dark-surface*) 호출", "reason": "marketing/website surface 토큰", "alternative": "hsl(var(--background)), hsl(var(--subtle)), hsl(var(--accent)) 사용", "severity": "error" }, { "id": "P-6", "context": "product", "forbidden": "var(--marketing-card-*), var(--marketing-btn-*), var(--marketing-input-*) 호출", "reason": "Product 컴포넌트는 Product semantic 토큰만", "alternative": "Product semantic 토큰만 사용", "severity": "error" }, { "id": "P-7", "context": "product", "forbidden": "Raw hex 사용 (예: #5B52FF, #0D0D12)", "reason": "drift 원천. 모든 토큰은 semantic 경유", "alternative": "hsl(var(--*)) 또는 var(--*) 형식", "severity": "error", "detectPattern": "#[0-9a-fA-F]{3,8}\\b", "exceptionBasis": "location", "allowedLocations": [ { "id": "token-definition-block", "description": "여는 선택자가 :root 또는 .dark인 블록의 내부 전체. 이 안의 hex는 토큰 원본 값이므로 예외다.", "appliesTo": "css", "openPattern": "^\\s*(:root|\\.dark)(\\s*,\\s*(:root|\\.dark))*\\s*\\{", "closePattern": "^\\s*\\}" }, { "id": "custom-property-declaration", "description": "--* 커스텀 프로퍼티 선언 줄의 우변. 정의 지점은 한 곳뿐이므로 drift가 생기지 않는다. 블록 밖에 있어도(예: 인라인 style의 --x: #hex) 예외.", "appliesTo": "css", "linePattern": "^\\s*--[a-z0-9-]+\\s*:" }, { "id": "documentation-text", "description": "HTML 텍스트 노드·문서 산문 안의 hex. 스타일 값이 아니라 사람이 읽는 표기이며, 아직 토큰이 없는 제안 값을 논의할 때 필요하다. 스펙 카드·결정 문서에 한한다.", "appliesTo": "html", "note": "style 속성·CSS 선언에는 적용되지 않는다. 그쪽은 위 두 항목으로만 예외가 된다." }, { "id": "comment", "description": "주석 안의 hex. 계산된 값을 사람이 읽기 쉽게 병기한 것이다.", "appliesTo": "any", "linePattern": "(/\\*|\\*|//|