मुख्य सामग्री पर जाएँ
Skillpedia
इंटरफ़ेस (UI/UX)101k · #981

design-extract

यह क्या करती है

यह टूल कोड फ़ाइलों या इमेज में बिखरी डिज़ाइन की जानकारी, जैसे रंग, टाइपोग्राफ़ी और स्पेसिंग, इकट्ठा करता है, और उसे दूसरे प्रोग्राम के इस्तेमाल के लिए एक जगह व्यवस्थित करता है।

कब इस्तेमाल करें

  • ✓जब आपके प्रोजेक्ट में अलग-अलग जगह डिज़ाइन के हिस्से फैले हों।
  • ✓जब किसी डिज़ाइन को एक प्रोग्राम से दूसरे में ले जाना हो।
  • ✓किसी वेबसाइट या ऐप की विज़ुअल स्टाइल को व्यवस्थित करने के लिए।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/design-extract/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे कोड और इमेज से डिज़ाइन के एलिमेंट निकालकर उन्हें एक फ़ाइल में व्यवस्थित करो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

टूल अलग-अलग तरह की कोड फ़ाइलों (जैसे CSS या JavaScript) और इमेज में रंग, फ़ॉन्ट और स्पेसिंग की परिभाषाएँ ढूँढता है। यह जानकारी इकट्ठा करके एक मानक (standard) फ़ॉर्मैट में सेव करता है।

तकनीकी सामग्री (मूल 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.

अक्सर पूछे जाने वाले सवाल

'design tokens' क्या होते हैं?

ये किसी प्रोजेक्ट की दृश्य बनावट के बुनियादी हिस्से होते हैं, जैसे इस्तेमाल हुए सटीक रंग, फ़ॉन्ट के प्रकार और एलिमेंट्स के बीच की जगह।

इन 'tokens' को व्यवस्थित करना क्यों ज़रूरी है?

व्यवस्थित tokens से पूरे प्रोजेक्ट में डिज़ाइन को संभालना और एकरूप रखना आसान होता है, और दूसरे टूल भी इस जानकारी का बेहतर इस्तेमाल कर सकते हैं।

क्या टूल किसी भी तरह की फ़ाइल से डिज़ाइन निकाल सकता है?

यह आम कोड फ़ाइलों (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
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills