design-to-component-translator

design-to-component-translator is a skill for Claude Code, Codex from patricio0312rev/skillset. It costs 75 tokens per session (3,794 once invoked), scanned A, a copy of design-to-component-translator, MIT.

A tool that turns design specifications from Figma or similar sources into React UI components. It maps spacing, colors, typography, responsive behavior, and interaction states into code.

In plain words
What is it for?
Use it to translate Figma designs into React components styled with Tailwind or shadcn, including responsive layouts and accessibility details.
Why use it?
It reduces the manual work of matching a coded interface to its design. It also helps keep visual states such as hover, focus, disabled, and active consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to translate Figma designs into React components styled with Tailwind or shadcn, including responsive layouts and accessibility details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/patricio0312rev/skillset/design-to-component-translator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add patricio0312rev/skillset --skill design-to-component-translator
Clone the repo
git clone --depth 1 https://github.com/patricio0312rev/skillset

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-to-component-translator

README.md
[![agentmods](https://agentmods.dev/badge/skills/patricio0312rev/skillset/design-to-component-translator/github.svg)](https://agentmods.dev/skills/patricio0312rev/skillset/design-to-component-translator)
Your own site
<a href="https://agentmods.dev/skills/patricio0312rev/skillset/design-to-component-translator"><img src="https://agentmods.dev/badge/skills/patricio0312rev/skillset/design-to-component-translator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-to-component-translator

Your own site · 80×15
<a href="https://agentmods.dev/skills/patricio0312rev/skillset/design-to-component-translator"><img src="https://agentmods.dev/badge/skills/patricio0312rev/skillset/design-to-component-translator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,794 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.03794
Opus 5.5 $0.00030 $0.01518
Sonnet 5.5 $0.00015 $0.00759
Haiku 4.5 $0.00007 $0.00379

Measured 2mo ago against content hash 33fffc6b1226, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-to-component-translator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to design-to-component-translator — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

templates/frontend/design-to-component-translator/SKILL.md · 548 lines

How it starts

The opening of the file, as written. The whole thing — 548 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Design-to-Component Translator

Convert design specifications into pixel-perfect, production-ready React components.

Core Workflow

  1. Analyze design specs: Extract spacing, colors, typography, dimensions
  2. Map to tokens: Convert design values to design system tokens
  3. Generate structure: Create semantic HTML structure
  4. Apply styles: Implement Tailwind/CSS with exact measurements
  5. Add states: Include hover, focus, active, disabled states
  6. Handle responsive: Implement breakpoint-specific rules
  7. Ensure accessibility: Add ARIA labels, keyboard navigation
  8. Document variants: List all visual states and props

Design Spec Analysis

Extract from Figma/Design

Spacing & Layout:

  • Padding: p-4 (16px), px-6 (24px horizontal)
  • Margin: m-2 (8px), mt-4 (16px top)
  • Gap: gap-3 (12px between flex items)
  • Width/Height: w-64 (256px), h-10 (40px)

Typography:

  • Font family: font-sans, font-mono
  • Font size: text-sm (14px), text-base (16px), text-lg (18px)
  • Font weight: font-normal (400), font-medium (500), font-semibold (600)
  • Line height: leading-tight, leading-normal, leading-relaxed
  • Letter spacing: tracking-tight, tracking-normal, tracking-wide

Colors:

  • Background: bg-blue-500, bg-gray-100
  • Text: text-gray-900, text-white
  • Border: border-gray-300, border-blue-600
  • Opacity: bg-opacity-50, text-opacity-75

Borders & Radius:

  • Border width: border, border-2, border-t-4
  • Border radius: rounded (4px), rounded-md (6px), rounded-lg (8px), rounded-full

Shadows:

  • shadow-sm, shadow, shadow-md, shadow-lg, shadow-xl

Design Token Mapping

Create Token System

// tokens.ts
export const tokens = {
  colors: {
    primary: {
      50: "#eff6ff",
      100: "#dbeafe",
      500: "#3b82f6",
      600: "#2563eb",
      700: "#1d4ed8",
    },
    gray: {
      100: "#f3f4f6",
      300: "#d1d5db",
      500: "#6b7280",
      700: "#374151",
      900: "#111827",
    },
  },
  spacing: {
    xs: "0.25rem", // 4px
    sm: "0.5rem", // 8px
    md: "1rem", // 16px
    lg: "1.5rem", // 24px
    xl: "2rem", // 32px
  },
  fontSize: {
    xs: ["0.75rem", { lineHeight: "1rem" }],
    sm: ["0.875rem", { lineHeight: "1.25rem" }],
    base: ["1rem", { lineHeight: "1.5rem" }],
    lg: ["1.125rem", { lineHeight: "1.75rem" }],
    xl: ["1.25rem", { lineHeight: "1.75rem" }],
  },
  borderRadius: {
    sm: "0.25rem", // 4px
    md: "0.375rem", // 6px
    lg: "0.5rem", // 8px
    full: "9999px",
  },
  shadows: {
    sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
    md: "0 4px 6px -1px rgb(0 0 0 / 0.1)",
    lg: "0 10px 15px -3px rgb(0 0 0 / 0.1)",
  },
};

Read the full file on GitHub · 548 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 548 lines · 75 tokens per session scan A 33fffc6b1226

Subscribe to this mod's changes

design-to-component-translator is a skill published in the GitHub repository patricio0312rev/skillset (7 stars, last pushed 10mo ago), licensed MIT. It adds 75 tokens to every session and 3,794 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to design-to-component-translator, differing in 0 lines, and is treated as a copy.

Related

design-to-component-translator compared with skills from other repositories

design-to-component-translator next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-to-component-translatorpatricio0312rev/skillsetSkill710mo agoMITA75Claude Code, Codex
chakra-ui-builderchakra-ui/chakra-uiSkill41kyesterdayMITA214Claude Code, Codex
antigravity-design-expertsickn33/agentic-awesome-skillsSkill51kyesterdayMITA39Claude Code
tamagui-v6-configtamagui/tamaguiSkill14ktodayMITA76Claude Code, Codex
tamagui-theme-generatortamagui/tamaguiSkill14ktodayMITA48Claude Code, Codex
liquid-metal-borderMengTo/SkillsSkill8.8k2d agoMITA97Codex
frontend-ui-dark-tsmicrosoft/skillsSkill3.3kyesterdayMITA48Claude Code