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

design-extract

하는 일

코드 파일이나 이미지에 흩어진 색, 타이포그래피, 간격 같은 디자인 정보를 모아, 다른 프로그램이 쓸 수 있도록 한 곳에 정리합니다.

사용하는 경우

  • ✓여러 곳에 흩어진 디자인 요소가 있는 프로젝트를 할 때.
  • ✓디자인을 한 프로그램에서 다른 프로그램으로 옮길 때.
  • ✓웹사이트나 앱의 시각 스타일을 정리할 때.

스킬 링크

https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/design-extract/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 코드와 이미지에 있는 디자인 요소를 하나의 파일로 정리해 주세요.”

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

작동 방식

도구는 CSS나 JavaScript 같은 여러 코드 파일과 이미지에서 색, 글꼴, 간격 정의를 찾습니다. 이 정보를 모아 표준화된 형식으로 저장합니다.

기술 내용 (원본 SKILL.md)

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

Design extract

Spec §10 / §21.3.2: tokens scattered across a repo's CSS / theme files / Tailwind config / styled-components helpers / SCSS partials need to be lifted into one bag before token-map can crosswalk them onto the active OD design system. This atom does the lifting; the input shape is intentionally generic so the same atom serves both code-migration and figma-migration when fed different sources.

Inputs

  • code/index.json from code-import (code-migration), OR
  • figma/tree.json from figma-extract (figma-migration), OR
  • A folder of screenshot images (tune-collab quick-tune flows).

Output

project-cwd/
└── code/
    └── tokens.json     # { colors[], typography[], spacing[], radius[], shadow[] }

Each token entry carries:

{
  "kind":     "color",
  "name":     "primary-500",     // optional source name
  "value":    "#5b8def",          // canonical value
  "sources": ["styles/global.css:42", "tailwind.config.js:24"],
  "usage":   ["Header.tsx", "Footer.tsx"]
}

sources[] and usage[] are the audit trail token-map.unmatched.json references when a target token can't be found.

Convergence

The atom completes when code/tokens.json exists. Empty token bags emit a warning event but do not abort — token-map handles the empty case by skipping its mapping pass.

Anti-patterns the prompt fragment forbids

  • Hard-coded hex values inside JSX literals (color: '#fff') are tokens for this atom's purposes; record them with kind:'color' and a synthetic name so they don't disappear into the noise.
  • Tailwind utility scans must dedupe palette references against the active theme — never list bg-blue-500 and bg-blue-600 as one token.

Status

Implemented by the daemon runner in apps/daemon/src/plugins/atoms/design-extract.ts. It scans the indexed source files, extracts CSS, Tailwind, and JavaScript token evidence, and writes code/tokens.json.

자주 묻는 질문

'디자인 토큰'은 무엇인가요?

사용된 정확한 색, 글꼴 종류, 요소 사이의 간격처럼 프로젝트의 시각적 모습을 이루는 기본 구성 요소입니다.

토큰을 정리하는 것이 왜 중요한가요?

토큰을 정리하면 프로젝트 전체에서 디자인을 관리하고 일관성을 맞추기 쉬워지며, 다른 도구도 이 정보를 더 효율적으로 쓸 수 있습니다.

모든 파일 형식에서 디자인을 추출할 수 있나요?

일반적인 코드 파일(CSS, JavaScript, Tailwind 등)과 이미지에서 작동하도록 설계되었습니다. Figma에서 만든 것처럼 더 복잡한 디자인에는 추가 단계가 필요할 수 있습니다.

상세 정보

작성자의 원본 설명

Extract design tokens (color / typography / spacing) from imported source code, screenshots, or Figma exports into the canonical token bag token-map consumes.

repo: nexu-io/open-design

인기도

GitHub 스타
101k
순위
#981
라이선스
Apache-2.0
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬