Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Export .pen design to React/Tailwind code. Does ONE thing well. Input: .pen frame ID or file path Output: React component code + Tailwind config Use when: design-exploration or user needs implementation code from a finalized Pencil design.
Export .pen design to React/Tailwind code. Does ONE thing well. Input: .pen frame ID or file path Output: React component code + Tailwind config Use when: design-exploration or user needs implementation code from a finalized Pencil design.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Export Pencil .pen designs to production React/Tailwind code.
Input: Frame ID to export (or entire document) Target framework: React (default), Vue, HTML Optional: Component name, output path Output: React component(s) with Tailwind classes Tailwind theme configuration (from .pen variables) Optional: Screenshot comparison for validation
// Get full frame tree mcp__pencil__batch_get({ filePath: "<path>.pen", nodeIds: ["frameId"], readDepth: 10, resolveInstances: true, resolveVariables: true }) // Get design variables/theme mcp__pencil__get_variables({ filePath: "<path>.pen" })
Transform .pen variables โ Tailwind theme: /* From .pen variables */ @theme { --color-primary: [from variables.colors.primary]; --color-background: [from variables.colors.background]; --font-sans: [from variables.fonts.body]; /* ... */ } Reference: references/token-extraction.md
.pen Node TypeReact Outputframe with layout<div className="flex ...">frame with childrenComponent with childrentext<p>, <h1-6>, or <span>ref (instance)Reusable componentrectangle<div> with fillellipse<div className="rounded-full">image<img> or fill: url() Reference: references/node-mapping.md
Component structure: // components/[ComponentName].tsx import { cn } from "@/lib/utils" interface [ComponentName]Props { className?: string // Extracted props from design } export function [ComponentName]({ className, ...props }: [ComponentName]Props) { return ( <div className={cn("[tailwind classes]", className)}> {/* Nested structure */} </div> ) } Tailwind mapping: .pen property โ Tailwind class -------------------------------- fill: #000 โ bg-black layout: horizontal โ flex flex-row gap: 16 โ gap-4 padding: [16,24,16,24] โ py-4 px-6 fontSize: 24 โ text-2xl fontWeight: 700 โ font-bold cornerRadius: [8,8,8,8] โ rounded-lg
// Screenshot the .pen frame mcp__pencil__get_screenshot({ nodeId: "frameId" }) // Compare visually with rendered React // (Manual step or browser automation)
.pen Tailwind -------------------------------------- layout: "vertical" โ flex flex-col layout: "horizontal" โ flex flex-row layout: "grid" โ grid alignItems: "center" โ items-center justifyContent: "center" โ justify-center gap: 8 โ gap-2 gap: 16 โ gap-4 gap: 24 โ gap-6 width: "fill_container" โ w-full height: "fill_container" โ h-full
.pen padding Tailwind ---------------------------------------- [8,8,8,8] โ p-2 [16,16,16,16] โ p-4 [16,24,16,24] โ py-4 px-6 [24,32,24,32] โ py-6 px-8
.pen Tailwind ---------------------------------------- fontSize: 12 โ text-xs fontSize: 14 โ text-sm fontSize: 16 โ text-base fontSize: 20 โ text-xl fontSize: 24 โ text-2xl fontSize: 32 โ text-3xl fontSize: 48 โ text-5xl fontWeight: 400 โ font-normal fontWeight: 500 โ font-medium fontWeight: 600 โ font-semibold fontWeight: 700 โ font-bold
.pen Tailwind ---------------------------------------- fill: "#FFFFFF" โ bg-white fill: "#000000" โ bg-black fill: variable โ bg-[var(--color-name)] textColor: "#6B7280" โ text-gray-500 stroke: "#E5E5E5" โ border-gray-200
.pen cornerRadius Tailwind ---------------------------------------- [0,0,0,0] โ rounded-none [4,4,4,4] โ rounded [8,8,8,8] โ rounded-lg [16,16,16,16] โ rounded-2xl [9999,9999,9999,9999] โ rounded-full
Single concern: Export โ code. No design modifications. Tailwind 4 @theme: CSS-first token system React + TypeScript: Default output target Semantic HTML: Choose appropriate elements Accessibility: Include aria attributes where detectable
references/node-mapping.md โ Complete node โ component mapping references/token-extraction.md โ Variable โ theme extraction design-tokens/ โ Token system conventions
Called by: design-exploration orchestrator (after direction selection) Direct user invocation Composes: design-tokens (for theme structure)
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.