ba-html-to-react-ds-code-gen

Convert HTML prototypes into React/TypeScript components styled with Tailwind.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Yukine5377/common --skill ba-html-to-react-ds-code-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ba-html-to-react-ds-code-gen
Source: https://github.com/Yukine5377/common/tree/main/.cursor/skills/ba-html-to-react-ds-code-gen
Command: npx skills add https://github.com/Yukine5377/common --skill ba-html-to-react-ds-code-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

HTML prototypes are often a one-off artifact; converting them into production-ready React/TypeScript components with Tailwind, aligned with Design Tokens and a Design System, reduces time-to-delivery and ensures UI consistency.

Core Features & Use Cases

  • HTML-to-React conversion: generate components and pages from pasted HTML input.
  • Token-driven styling: derive Tailwind classes from design tokens and the Design System constraints.
  • Incremental/refactor support: produce components, pages, and tokens with a cohesive DS.

Quick Start

Paste the HTML you want converted and specify whether you want a React page, a standalone component, or a DS-aligned refactor.

Frequently Asked Questions about ba-html-to-react-ds-code-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert HTML prototypes to React components with Tailwind?

To convert HTML prototypes to React components with Tailwind, paste your HTML and specify whether you need a full React page, a standalone component, or a DS-aligned refactor. The tool generates production-ready React and TypeScript code styled with Tailwind, aligned with your Design System.

How does token-driven styling work when generating React from HTML?

Token-driven styling derives Tailwind classes from predefined design tokens and Design System constraints. This mechanism replaces hard-coded values with structured token references, ensuring UI consistency and maintainability across generated React and TypeScript components.

Can I refactor existing HTML into a component-driven React architecture?

Yes, you can refactor existing HTML into a component-driven React architecture. By pasting your HTML and selecting a DS-aligned refactor, the tool produces reusable components, pages, and tokens with a cohesive Design System structure and strict TypeScript usage.

Does this HTML to React conversion tool support strict TypeScript?

Yes, strict TypeScript usage is imposed during the HTML to React conversion. The generated components and pages feature strict TypeScript typing, token-based styling, and structured mock data organization, ensuring type safety and Design System alignment.

What is the best way to avoid hard-coded values when converting HTML to React?

The best way to avoid hard-coded values when converting HTML to React is through token-based styling. The tool derives Tailwind classes from design tokens and Design System constraints, replacing hard-coded values with structured token references for consistent component styling.

Does the generated React component include mock data?

Yes, the generated React component includes structured mock data. Alongside strict TypeScript and token-based styling, the tool produces organization guidelines and mock data structures to support a cohesive, component-driven architecture.