Skip to content

gabelul/stitch-kit / skills/stitch-react-components

stitch-react-components

Verified

Converts a Stitch screen, a local HTML file, or a URL into modular Vite + React components — TypeScript, theme-mapped Tailwind, dark mode via CSS variables, and clean component architecture. Use this for Vite/React apps without App Router. For Next.js 15 App Router, use stitch-nextjs-components instead. Only the Stitch route needs an API key.

resources/component-template.tsx

View on GitHub
import React from 'react';

/**
 * Template for Stitch-converted React components.
 * Replace `StitchComponent` with the actual component name.
 * Replace `StitchComponentProps` with domain-specific props.
 *
 * @see resources/architecture-checklist.md before shipping
 * @see references/tailwind-to-react.md for class mapping patterns
 */

interface StitchComponentProps {
  /** Content to render inside the component */
  readonly children?: React.ReactNode;
  /** Additional Tailwind classes to merge in */
  readonly className?: string;
}

/**
 * Base Stitch component wrapper.
 * Demonstrates: typed props, className passthrough, dark mode readiness.
 */
export const StitchComponent: React.FC<StitchComponentProps> = ({
  children,
  className = '',
}) => {
  return (
    // Use theme-mapped tokens (bg-background, text-foreground) — never hardcoded hex
    <div className={`relative bg-background text-foreground ${className}`}>
      {children}
    </div>
  );
};

export default StitchComponent;
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 197kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 197kUpdated Claude CodeCodexVerifiedInstall