कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

pencil-to-code

jcwen द्वारा

Web & Frontend Development
867clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Export .pen design to React/Tailwind code.

विवरण

यह स्किल क्या करती है

Converts Pencil (.pen) design files to React components with Tailwind CSS. Takes a frame ID or file path as input and outputs typed TypeScript components plus a Tailwind theme configuration derived from .pen design variables. Handles the full property translation: layout, spacing, typography, colors, and border radius.

Covers the complete .pen-to-Tailwind translation table automatically, removing the need to manually look up class equivalents for every layout, color, and typography property.

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

  • Exporting a finalized Pencil frame as a ready-to-use React component
  • Generating a Tailwind @theme config from .pen design variable definitions
  • Handing off UI designs from Pencil to a React/TypeScript codebase
  • Converting Pencil layout and spacing values to Tailwind utility classes
  • Validating generated code visually against the original .pen frame screenshot

उदाहरण वर्कफ़्लो

इनपुट

User asks: Export the 'hero-section' frame from dashboard.pen as a React component

एजेंट
  1. 1

    Read the frame tree from dashboard.pen at the specified frame ID with full depth and resolved instances

  2. 2

    Extract design variables from the .pen file and map them to Tailwind @theme CSS custom properties

  3. 3

    Classify each node by type and map it to the appropriate React element or component

  4. 4

    Generate a typed TypeScript component file with Tailwind utility classes reflecting the design properties

  5. 5

    Screenshot the original .pen frame for optional side-by-side visual validation

आउटपुट

HeroSection.tsx with Tailwind classes and a globals.css snippet containing the extracted theme tokens

आवश्यकताएँ

  • Pencil design application installed

इंस्टॉलेशन

clawhub install jcwen/pencil-to-code

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक