[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M770YQ6YNACHZ6SS0WG9YPNA":3,"skill-same:01M770YQ6YNACHZ6SS0WG9YPNA":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M770YQ6YNACHZ6SS0WG9YPNA","loopwind",null,"Generate images and videos from React + Tailwind CSS templates using the loopwind CLI.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftomtev\u002Floopwind\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: loopwind\ndescription: Generate images and videos from React + Tailwind CSS templates using the loopwind CLI.\nmetadata:\n  version: \"0.25.11\"\n---\n\n# loopwind\n\nA CLI tool for generating images and videos from JSX templates using Tailwind CSS and Satori. Templates live in a `.loopwind\u002F` directory alongside your codebase.\n\n## Quick Start\n\nLoopwind is a CLI tool for generating images and videos with React and Tailwind CSS. It's designed to be used with AI Agents and Cursor.\n\n### Installation\n\n```bash\ncurl -fsSL https:\u002F\u002Floopwind.dev\u002Finstall.sh | bash\n```\n\nThis installs loopwind to `~\u002F.loopwind\u002F` and adds the `loopwind` command to your PATH. Requires Node.js 18+.\n\n### Initialize in Your Project\n\nNavigate to any project folder and run:\n\n```bash\nloopwind init\n```\n\nThis creates `.loopwind\u002Floopwind.json` — a configuration file with your project's theme colors.\n\n### Install AI Skill\n\nGive your AI agent expertise in loopwind:\n\n```bash\nnpx skills add https:\u002F\u002Floopwind.dev\u002Fskill.md\n```\n\nThis installs a skill that teaches Claude Code (or other AI agents) how to create templates, use animation classes, and render images\u002Fvideos.\n\n### Use with Claude Code\n\nWith the loopwind skill installed, Claude has deep knowledge of template structure, animation classes, and Tailwind CSS patterns for Satori. Just ask:\n\n```\nCreate an OG image for my blog post about TypeScript tips\n```\n\n```\nCreate an animated intro video for my YouTube channel\n```\n\nClaude will create optimized templates and render the final output automatically.\n\n### Install a Template\n\n#### 1. Official Templates\n\n```bash\nloopwind add image-template\nloopwind add video-template\n```\n\nTemplates are installed to: `.loopwind\u002F\u003Ctemplate>\u002F`\n\n**Benefits:**\n- Templates are local to your project\n- Version controlled with your project\n- Easy to share within your team\n\n### Render a Template\n\n```bash\nloopwind render template-name '{\"title\":\"Hello World\",\"subtitle\":\"Built with loopwind\"}'\n```\nor use a local props file:\n\n```bash\nloopwind render template-name props.json\n```\n## Commands\n\n### `loopwind add \u003Csource>`\n\nInstall a template from various sources:\n\n```bash\n# Official templates\nloopwind add image-template\nloopwind add video-template\n```\nThese will be downloaded to `.loopwind\u002F\u003Ctemplate>\u002F`\n\n### `loopwind list`\n\nList all installed templates:\n\n```bash\nloopwind list\n```\n\n### `loopwind render \u003Ctemplate> \u003Cprops> [options]`\n\nRender an image or video:\n\n```bash\n# Image with inline props\nloopwind render banner-hero '{\"title\":\"Hello World\"}'\n\n# Video with inline props\nloopwind render video-intro '{\"title\":\"Welcome\"}'\n\n# Using a props file\nloopwind render banner-hero props.json\n\n# Custom output\nloopwind render banner-hero '{\"title\":\"Hello\"}' --out custom-name.png\n\n# Different format\nloopwind render banner-hero '{\"title\":\"Hello\"}' --format jpeg\n```\n\nOptions:\n- `--out, -o` - Output filename (default: `\u003Ctemplate>.\u003Cext>` in current directory)\n- `--format` - Output format: `png`, `jpeg`, `svg` (images only)\n- `--quality` - JPEG quality 1-100 (default: 92)\n\n### `loopwind validate \u003Ctemplate>`\n\nValidate a template:\n\n```bash\nloopwind validate banner-hero\n```\n\nChecks:\n- Template file exists and is valid React\n- `export const meta` exists and is valid\n- Required props are defined\n- Fonts exist (if specified)\n\n### `loopwind init`\n\nInitialize loopwind in a project:\n\n```bash\nloopwind init\n```\n\nCreates `.loopwind\u002Floopwind.json` configuration file with your project's design tokens.\n\n## Animation Classes (Video Only)\n\nUse Tailwind-style animation classes - no manual calculations needed:\n\n```tsx\n\u002F\u002F Fade in: starts at 0ms, lasts 500ms\n\u003Ch1 style={tw('enter-fade-in\u002F0\u002F500')}>Hello\u003C\u002Fh1>\n\n\u002F\u002F Loop: ping effect every 500ms\n\u003Cdiv style={tw('loop-ping\u002F500')} \u002F>\n\n\u002F\u002F Combined with easing\n\u003Ch1 style={tw('ease-out enter-bounce-in-up\u002F0\u002F600')}>Title\u003C\u002Fh1>\n```\n\nSee [Animation](\u002Fanimation) for the complete reference.\n\n## Next Steps\n\n- [Templates](\u002Ftemplates)\n- [Embedding Images](\u002Fimages)\n- [Animation](\u002Fanimation)\n- [Helpers (QR, Template Composition)](\u002Fhelpers)\n- [Styling with Tailwind & shadcn\u002Fui](\u002Fstyling)\n- [Custom Fonts](\u002Ffonts)\n- [AI Agent Integration](\u002Fagents)\n\n\n\n# Templates\n\nTemplates are React components that define your images and videos. They use Tailwind CSS for styling and export metadata that loopwind uses for rendering.\n\n## Installing Templates\n\n### Official Templates\n\n```bash\nloopwind add image-template\nloopwind add video-template\n```\n\nTemplates are installed to `.loopwind\u002F\u003Ctemplate-name>\u002F`.\n\n### Direct URLs\n\n```bash\nloopwind add https:\u002F\u002Fexample.com\u002Ftemplates\u002Fmy-template.json\n```\n\n### Local Filesystem\n\n```bash\nloopwind add .\u002Fmy-templates\u002Fbanner-hero\nloopwind add \u002FUsers\u002Fyou\u002Ftemplates\u002Fsocial-card\n```\n\n---\n\n## Image Templates\n\n### Basic Structure\n\n```tsx\n\u002F\u002F .loopwind\u002Fbanner-hero\u002Ftemplate.tsx\nexport const meta = {\n  name: \"banner-hero\",\n  type: \"image\",\n  description: \"Hero banner with gradient background\",\n  size: { width: 1600, height: 900 },\n  props: { title: \"string\", subtitle: \"string\" }\n};\n\nexport default function BannerHero({ title, subtitle, tw }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col justify-center items-center w-full h-full bg-gradient-to-br from-purple-600 to-blue-500 p-12')}>\n      \u003Ch1 style={tw('text-7xl font-bold text-white mb-4')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cp style={tw('text-2xl text-white\u002F80')}>\n        {subtitle}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Rendering Images\n\n```bash\n# Render with inline props\nloopwind render banner-hero '{\"title\":\"Hello World\",\"subtitle\":\"Welcome\"}'\n\n# Custom output name\nloopwind render banner-hero '{\"title\":\"Hello\"}' --out custom-name.png\n\n# Different format\nloopwind render banner-hero '{\"title\":\"Hello\"}' --format jpeg --quality 95\n\n# Use a props file\nloopwind render banner-hero props.json\n```\n\n### Output Formats\n\n| Format | Best For |\n|--------|----------|\n| **PNG** (default) | Transparency, sharp text, logos |\n| **JPEG** | Photographs, gradients, smaller files |\n| **SVG** | Vector graphics, scalable designs |\n\n---\n\n## Video Templates\n\n### Basic Structure\n\n```tsx\n\u002F\u002F .loopwind\u002Fvideo-intro\u002Ftemplate.tsx\nexport const meta = {\n  name: \"video-intro\",\n  type: \"video\",\n  description: \"Animated intro with bounce-in title\",\n  size: { width: 1920, height: 1080 },\n  video: { fps: 30, duration: 3 },\n  props: { title: \"string\" }\n};\n\nexport default function VideoIntro({ tw, title }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gradient-to-br from-blue-600 to-purple-700')}>\n      \u003Ch1 style={tw('text-8xl font-bold text-white ease-out enter-bounce-in-up\u002F0\u002F600')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Rendering Videos\n\n```bash\n# Render with inline props\nloopwind render video-intro '{\"title\":\"Welcome!\"}' --out intro.mp4\n\n# Faster encoding with FFmpeg\nloopwind render video-intro '{\"title\":\"Welcome!\"}' --ffmpeg\n\n# Higher quality (lower CRF = better)\nloopwind render video-intro '{\"title\":\"Welcome!\"}' --crf 18\n```\n\n### FPS and Duration\n\n```tsx\nvideo: { fps: 30, duration: 3 }  \u002F\u002F 90 frames total\n```\n\n| FPS | Use Case |\n|-----|----------|\n| **24** | Cinematic look, smaller files |\n| **30** | Standard web video |\n| **60** | Smooth animations |\n\n### Video-Specific Props\n\nTemplates receive these additional props:\n\n- **`frame`** - Current frame number (0 to totalFrames - 1)\n- **`progress`** - Animation progress from 0 to 1\n\n```tsx\nexport default function MyVideo({ frame, progress }) {\n  \u002F\u002F frame: 0, 1, 2, ... 89 (for 3s @ 30fps)\n  \u002F\u002F progress: 0.0 at start, 0.5 at middle, 1.0 at end\n}\n```\n\n### Encoding Options\n\n| Encoder | Command | Use Case |\n|---------|---------|----------|\n| **WASM** (default) | `loopwind render ...` | CI\u002FCD, no dependencies |\n| **FFmpeg** | `loopwind render ... --ffmpeg` | Faster, smaller files |\n\nInstall FFmpeg: `brew install ffmpeg` (macOS)\n\n---\n\n## Animation Classes\n\nUse Tailwind-style animation classes for videos:\n\n```tsx\n\u002F\u002F Enter animations: enter-{type}\u002F{delay}\u002F{duration}\n\u003Ch1 style={tw('enter-fade-in\u002F0\u002F500')}>Fade in at start\u003C\u002Fh1>\n\u003Ch1 style={tw('enter-bounce-in-up\u002F300\u002F400')}>Bounce in after 300ms\u003C\u002Fh1>\n\n\u002F\u002F Exit animations: exit-{type}\u002F{start}\u002F{duration}\n\u003Cdiv style={tw('exit-fade-out\u002F2500\u002F500')}>Fade out at 2.5s\u003C\u002Fdiv>\n\n\u002F\u002F Loop animations: loop-{type}\u002F{duration}\n\u003Cdiv style={tw('loop-float\u002F1000')}>Continuous floating\u003C\u002Fdiv>\n\u003Cdiv style={tw('loop-spin\u002F1000')}>Spinning\u003C\u002Fdiv>\n\n\u002F\u002F Easing\n\u003Ch1 style={tw('ease-out enter-slide-left\u002F0\u002F500')}>Smooth slide\u003C\u002Fh1>\n```\n\nSee the full [Animation documentation](\u002Fanimation) for all classes.\n\n---\n\n## Common Sizes\n\n### Social Media\n- **Twitter\u002FX Card**: 1200x675\n- **Facebook\u002FOG**: 1200x630\n- **Instagram Post**: 1080x1080\n- **LinkedIn Post**: 1200x627\n\n### Web Graphics\n- **Hero Banner**: 1920x1080\n- **Blog Header**: 1600x900\n- **Thumbnail**: 640x360\n\n---\n\n## Example Templates\n\n### Open Graph Image\n\n```tsx\nexport const meta = {\n  name: \"og-image\",\n  type: \"image\",\n  size: { width: 1200, height: 630 },\n  props: { title: \"string\", description: \"string\" }\n};\n\nexport default function OGImage({ tw, image, title, description }) {\n  return (\n    \u003Cdiv style={tw('flex w-full h-full bg-white')}>\n      \u003Cdiv style={tw('flex-1 flex flex-col justify-between p-12')}>\n        \u003Cimg src={image('logo.svg')} style={tw('h-12 w-auto')} \u002F>\n        \u003Cdiv>\n          \u003Ch1 style={tw('text-5xl font-bold text-gray-900 mb-4')}>{title}\u003C\u002Fh1>\n          \u003Cp style={tw('text-xl text-gray-600')}>{description}\u003C\u002Fp>\n        \u003C\u002Fdiv>\n        \u003Cp style={tw('text-gray-400')}>yoursite.com\u003C\u002Fp>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Animated Intro\n\n```tsx\nexport const meta = {\n  name: \"animated-intro\",\n  type: \"video\",\n  size: { width: 1920, height: 1080 },\n  video: { fps: 60, duration: 3 },\n  props: { title: \"string\", subtitle: \"string\" }\n};\n\nexport default function AnimatedIntro({ tw, title, subtitle }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col items-center justify-center w-full h-full bg-background')}>\n      \u003Ch1 style={tw('text-8xl font-bold text-foreground ease-out enter-bounce-in-up\u002F0\u002F400')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cp style={tw('text-2xl text-muted-foreground mt-4 ease-out enter-fade-in-up\u002F300\u002F400')}>\n        {subtitle}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n---\n\n## Next Steps\n\n- [Layouts](\u002Flayouts) - Wrap templates with reusable layouts\n- [Embedding Images](\u002Fimages) - Using the `image()` helper\n- [Animation](\u002Fanimation) - Full animation reference\n- [Styling](\u002Fstyling) - Tailwind & shadcn\u002Fui integration\n- [Fonts](\u002Ffonts) - Custom fonts\n\n\n# Layouts\n\nLayouts let you wrap templates with consistent headers, footers, and styling. A child template specifies a layout in its meta, and the layout receives the child content as a `children` prop.\n\n## Basic Usage\n\n### Layout Template\n\nCreate a layout template that receives `children`:\n\n```tsx\n\u002F\u002F .loopwind\u002Fbase-layout\u002Ftemplate.tsx\nexport const meta = {\n  name: 'base-layout',\n  type: 'image',\n  size: { width: 1200, height: 630 },\n  props: {},\n};\n\nexport default function BaseLayout({ tw, children }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col w-full h-full bg-background')}>\n      {\u002F* Header *\u002F}\n      \u003Cdiv style={tw('flex items-center px-8 py-4 border-b border-border')}>\n        \u003Cspan style={tw('text-2xl font-bold text-primary')}>loopwind\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n\n      {\u002F* Content slot *\u002F}\n      \u003Cdiv style={tw('flex flex-1')}>\n        {children}\n      \u003C\u002Fdiv>\n\n      {\u002F* Footer *\u002F}\n      \u003Cdiv style={tw('flex items-center justify-between px-8 py-4 border-t border-border')}>\n        \u003Cspan style={tw('text-muted-foreground')}>loopwind.dev\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Usage in Templates\n\nReference the layout using a relative path:\n\n```tsx\n\u002F\u002F .loopwind\u002Fblog-post\u002Ftemplate.tsx\nexport const meta = {\n  name: 'blog-post',\n  type: 'image',\n  layout: '..\u002Fbase-layout', \u002F\u002F Layout controls size\n  props: {\n    title: 'string',\n    excerpt: 'string',\n  },\n};\n\nexport default function BlogPost({ tw, title, excerpt }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col justify-center p-12')}>\n      \u003Ch1 style={tw('text-5xl font-bold text-foreground mb-4 text-balance')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cp style={tw('text-xl text-muted-foreground leading-relaxed')}>\n        {excerpt}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Render\n\n```bash\nloopwind render blog-post '{\"title\":\"Hello World\",\"excerpt\":\"My first post\"}'\n```\n\nThe output uses the layout's size (1200x630) with the child content inside.\n\n---\n\n## Key Concepts\n\n### Size\n\nWhen using a layout, the **layout's size** controls the final output dimensions. The child template doesn't need a `size` property.\n\n### Path Resolution\n\nUse relative paths to reference layouts:\n\n```tsx\nlayout: '..\u002Fbase-layout'      \u002F\u002F Sibling directory\nlayout: '.\u002Fshared\u002Flayout'     \u002F\u002F Subdirectory\nlayout: '..\u002F..\u002Flayouts\u002Fmain'  \u002F\u002F Parent's sibling\n```\n\n### Props Flow\n\nThe layout receives:\n- All standard helpers (`tw`, `image`, `qr`, `template`, etc.)\n- `children` prop containing the rendered child content\n- Animation context (`frame`, `progress`) for video layouts\n\n```tsx\nexport default function Layout({ tw, children, frame, progress }) {\n  \u002F\u002F tw, image, qr, template, path, textPath all available\n  return (\n    \u003Cdiv style={tw('flex w-full h-full')}>\n      {children}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n---\n\n## Video Layouts\n\nLayouts work with video templates. Both the layout and child can use animations:\n\n```tsx\n\u002F\u002F .loopwind\u002Fvideo-layout\u002Ftemplate.tsx\nexport const meta = {\n  name: 'video-layout',\n  type: 'video',\n  size: { width: 1920, height: 1080 },\n  video: { fps: 60, duration: 4 },\n  props: {},\n};\n\nexport default function VideoLayout({ tw, children }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col w-full h-full bg-background')}>\n      {\u002F* Animated header *\u002F}\n      \u003Cdiv style={tw('flex items-center px-12 py-6 ease-out enter-slide-down\u002F0\u002F500')}>\n        \u003Cspan style={tw('text-3xl font-bold text-primary')}>loopwind\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n\n      {\u002F* Content *\u002F}\n      \u003Cdiv style={tw('flex flex-1')}>\n        {children}\n      \u003C\u002Fdiv>\n\n      {\u002F* Animated footer *\u002F}\n      \u003Cdiv style={tw('flex px-12 py-6 ease-out enter-fade-in\u002F500\u002F400')}>\n        \u003Cspan style={tw('text-muted-foreground')}>loopwind.dev\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n---\n\n## Example: Consistent OG Images\n\nCreate a layout for all your OG images:\n\n```tsx\n\u002F\u002F .loopwind\u002Fog-layout\u002Ftemplate.tsx\nexport const meta = {\n  name: 'og-layout',\n  type: 'image',\n  size: { width: 1200, height: 630 },\n  props: {},\n};\n\nexport default function OGLayout({ tw, image, children }) {\n  return (\n    \u003Cdiv style={tw('flex w-full h-full bg-background')}>\n      {\u002F* Content area *\u002F}\n      \u003Cdiv style={tw('flex flex-col flex-1 p-12')}>\n        {\u002F* Logo *\u002F}\n        \u003Cdiv style={tw('flex items-center gap-3 mb-auto')}>\n          \u003Cimg src={image('logo.svg')} style={tw('h-10 w-auto')} \u002F>\n          \u003Cspan style={tw('text-2xl font-bold')}>MyBrand\u003C\u002Fspan>\n        \u003C\u002Fdiv>\n\n        {\u002F* Slot for page-specific content *\u002F}\n        \u003Cdiv style={tw('flex flex-1 items-center')}>\n          {children}\n        \u003C\u002Fdiv>\n\n        {\u002F* Domain *\u002F}\n        \u003Cspan style={tw('text-muted-foreground mt-auto')}>mybrand.com\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nThen create page-specific templates:\n\n```tsx\n\u002F\u002F .loopwind\u002Fog-blog\u002Ftemplate.tsx\nexport const meta = {\n  name: 'og-blog',\n  type: 'image',\n  layout: '..\u002Fog-layout',\n  props: {\n    title: 'string',\n    author: 'string',\n  },\n};\n\nexport default function OGBlog({ tw, title, author }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col')}>\n      \u003Cspan style={tw('text-sm text-muted-foreground uppercase tracking-wider mb-2')}>\n        Blog Post\n      \u003C\u002Fspan>\n      \u003Ch1 style={tw('text-4xl font-bold text-foreground mb-4 text-balance')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cspan style={tw('text-muted-foreground')}>By {author}\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n---\n\n## Next Steps\n\n- [Templates](\u002Ftemplates) - Template structure and metadata\n- [Animation](\u002Fanimation) - Animation classes for video layouts\n- [Helpers](\u002Fhelpers) - Using image(), qr(), and template()\n\n\n# Embedding Images\n\nUse the `image()` helper to embed images in your templates. It supports loading from props, template directories, and URLs.\n\n## Prop-based Images\n\nPass the prop name to load an image path from props:\n\n```tsx\nexport const meta = {\n  name: \"product-card\",\n  type: \"image\",\n  size: { width: 1200, height: 630 },\n  props: {\n    title: \"string\",\n    background: \"string?\"\n  }\n};\n\nexport default function ProductCard({ tw, image, title, background }) {\n  \u002F\u002F Use fallback if no background prop provided\n  const bgSrc = background\n    ? image('background')\n    : 'https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1557682250-33bd709cbe85?w=1200';\n\n  return (\n    \u003Cdiv style={tw('relative w-full h-full')}>\n      \u003Cimg\n        src={bgSrc}\n        style={tw('absolute inset-0 w-full h-full object-cover')}\n      \u002F>\n      \u003Cdiv style={tw('relative z-10 p-12')}>\n        \u003Ch1 style={tw('text-6xl font-bold text-white')}>{title}\u003C\u002Fh1>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nThe `image('background')` helper loads from the `background` prop value (file path or URL).\n\n## Direct File Images\n\nLoad images directly from your template directory by including the file extension:\n\n```tsx\nexport default function ChangelogItem({ tw, image, text }) {\n  return (\n    \u003Cdiv style={tw('flex items-center gap-4')}>\n      {\u002F* Load check.svg from template directory *\u002F}\n      \u003Cimg\n        src={image('check.svg')}\n        style={tw('w-6 h-6')}\n      \u002F>\n      \u003Cspan style={tw('text-lg')}>{text}\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nYou can also use subdirectories:\n\n```tsx\n\u003Cimg src={image('assets\u002Ficons\u002Fstar.svg')} \u002F>\n\u003Cimg src={image('shared\u002Flogo.png')} \u002F>\n```\n\n**Template directory structure:**\n```\n.loopwind\u002Fmy-template\u002F\n├── template.tsx\n├── check.svg           ← image('check.svg')\n└── assets\u002F\n    └── icons\u002F\n        └── star.svg    ← image('assets\u002Ficons\u002Fstar.svg')\n```\n\n## URLs\n\nThe `image()` helper also supports loading images from URLs:\n\n```json\n{\n  \"background\": \"https:\u002F\u002Fexample.com\u002Fimage.jpg\"\n}\n```\n\n## Supported Formats\n\n- **JPEG** (`.jpg`, `.jpeg`)\n- **PNG** (`.png`)\n- **GIF** (`.gif`)\n- **WebP** (`.webp`)\n- **SVG** (`.svg`)\n\n## Image Positioning\n\nUse Tailwind's object-fit utilities:\n\n```tsx\nexport default function ImageGrid({ tw, image, img1, img2, img3 }) {\n  return (\n    \u003Cdiv style={tw('flex gap-4 w-full h-full p-8 bg-gray-100')}>\n      {\u002F* Cover - fills entire area, may crop *\u002F}\n      \u003Cimg\n        src={image('img1')}\n        style={tw('w-full h-full object-cover rounded-lg')}\n      \u002F>\n\n      {\u002F* Contain - fits within area, may letterbox *\u002F}\n      \u003Cimg\n        src={image('img2')}\n        style={tw('w-full h-full object-contain')}\n      \u002F>\n\n      {\u002F* Fill - stretches to fill *\u002F}\n      \u003Cimg\n        src={image('img3')}\n        style={tw('w-full h-full object-fill')}\n      \u002F>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Troubleshooting\n\n### Images Not Loading\n\nCheck file paths are relative to the props file:\n\n```json\n{\n  \"background\": \".\u002Fimages\u002Fbg.jpg\"\n}\n```\n\nAbsolute paths won't work.\n\n### Optimize Image Sizes\n\nUse appropriately sized images before embedding:\n\n```bash\nconvert large-image.jpg -resize 1600x900 optimized.jpg\n```\n\n---\n\n## Next Steps\n\n- [Templates](\u002Ftemplates) - Creating image and video templates\n- [Animation](\u002Fanimation) - Animation classes for videos\n- [Styling](\u002Fstyling) - Tailwind & shadcn\u002Fui integration\n\n\n# Animation\n\nloopwind provides **Tailwind-style animation classes** that work with time to create smooth video animations without writing custom code.\n\n> **Note:** Animation classes only work with **video templates** and **GIFs**. For static images, animations will have no effect since there's no time context.\n\n## Quick Start\n\n```tsx\nexport default function MyVideo({ tw, title, subtitle }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col items-center justify-center w-full h-full bg-black')}>\n      {\u002F* Bounce in from below: starts at 0, lasts 400ms *\u002F}\n      \u003Ch1 style={tw('text-8xl font-bold text-white ease-out enter-bounce-in-up\u002F0\u002F400')}>\n        {title}\n      \u003C\u002Fh1>\n\n      {\u002F* Fade in with upward motion: starts at 300ms, lasts 400ms *\u002F}\n      \u003Cp style={tw('text-2xl text-white\u002F80 mt-4 ease-out enter-fade-in-up\u002F300\u002F400')}>\n        {subtitle}\n      \u003C\u002Fp>\n\n      {\u002F* Continuous floating animation: repeats every 1s (1000ms) *\u002F}\n      \u003Cdiv style={tw('mt-8 text-4xl loop-float\u002F1000')}>\n        ⬇️\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Animation Format\n\nloopwind uses three types of animations with **millisecond timing**:\n\n| Type | Format | Description |\n|------|--------|-------------|\n| Enter | `enter-{type}\u002F{start}\u002F{duration}` | Animations that play when entering |\n| Exit | `exit-{type}\u002F{start}\u002F{duration}` | Animations that play when exiting |\n| Loop | `loop-{type}\u002F{duration}` | Continuous looping animations |\n\nAll timing values are in **milliseconds** (1000ms = 1 second).\n\n## Utility-Based Animations\n\nIn addition to predefined animations, loopwind supports **Tailwind utility-based animations** that let you animate any transform or opacity property directly:\n\n```tsx\n\u002F\u002F Slide in 20px from the left\n\u003Cdiv style={tw('enter-translate-x-5\u002F0\u002F1000')}>Content\u003C\u002Fdiv>\n\n\u002F\u002F Rotate 90 degrees on entrance\n\u003Cdiv style={tw('enter-rotate-90\u002F0\u002F500')}>Spinning\u003C\u002Fdiv>\n\n\u002F\u002F Fade to 50% opacity in a loop\n\u003Cdiv style={tw('loop-opacity-50\u002F1000')}>Pulsing\u003C\u002Fdiv>\n\n\u002F\u002F Scale down with negative value\n\u003Cdiv style={tw('enter--scale-50\u002F0\u002F800')}>Shrinking\u003C\u002Fdiv>\n```\n\n### Supported Utilities\n\n| Utility | Format | Description | Example |\n|---------|--------|-------------|---------|\n| **translate-x** | `enter-translate-x-{value}` | Translate horizontally | `enter-translate-x-5` = 20px\u003Cbr\u002F>`enter-translate-x-full` = 100%\u003Cbr\u002F>`enter-translate-x-[20px]` = 20px |\n| **translate-y** | `enter-translate-y-{value}` | Translate vertically | `loop-translate-y-10` = 40px\u003Cbr\u002F>`enter-translate-y-1\u002F2` = 50%\u003Cbr\u002F>`enter-translate-y-[5rem]` = 80px |\n| **opacity** | `enter-opacity-{n}` | Set opacity (0-100) | `enter-opacity-50` = 50% |\n| **scale** | `enter-scale-{n}` | Scale element (0-200) | `enter-scale-100` = 1.0x |\n| **rotate** | `enter-rotate-{n}` | Rotate in degrees | `enter-rotate-45` = 45° |\n| **skew-x** | `enter-skew-x-{n}` | Skew on X axis in degrees | `enter-skew-x-12` = 12° |\n| **skew-y** | `enter-skew-y-{n}` | Skew on Y axis in degrees | `exit-skew-y-6` = 6° |\n\n**Translate value formats:**\n- **Numeric**: `5` = 20px (Tailwind spacing scale: 1 unit = 4px)\n- **Keywords**: `full` = 100%\n- **Fractions**: `1\u002F2` = 50%, `1\u002F3` = 33.333%, `2\u002F3` = 66.666%, etc.\n- **Arbitrary values**: `[20px]`, `[5rem]`, `[10%]` (rem converts to px: 1rem = 16px)\n\nAll utilities work with:\n- **All prefixes**: `enter-`, `exit-`, `loop-`, `animate-`\n- **Negative values**: Prefix with `-` (e.g., `-translate-x-5`, `-rotate-45`)\n- **Timing syntax**: Add `\u002Fstart\u002Fduration` (e.g., `enter-translate-x-5\u002F0\u002F800`)\n\n### Translate Animations\n\n```tsx\n\u002F\u002F Numeric (Tailwind spacing): 20px (5 * 4px)\n\u003Cdiv style={tw('enter-translate-x-5\u002F0\u002F500')}>Content\u003C\u002Fdiv>\n\n\u002F\u002F Keyword: Full width (100%)\n\u003Cdiv style={tw('enter-translate-y-full\u002F0\u002F800')}>Dropping full height\u003C\u002Fdiv>\n\n\u002F\u002F Fraction: Half width (50%)\n\u003Cdiv style={tw('enter-translate-x-1\u002F2\u002F0\u002F600')}>Slide in halfway\u003C\u002Fdiv>\n\n\u002F\u002F Arbitrary values: Exact px or rem\n\u003Cdiv style={tw('enter-translate-y-[20px]\u002F0\u002F500')}>Slide 20px\u003C\u002Fdiv>\n\u003Cdiv style={tw('enter-translate-x-[5rem]\u002F0\u002F800')}>Slide 5rem (80px)\u003C\u002Fdiv>\n\n\u002F\u002F Loop with fractions\n\u003Cdiv style={tw('loop-translate-y-1\u002F4\u002F1000')}>Oscillate 25%\u003C\u002Fdiv>\n\n\u002F\u002F Negative values\n\u003Cdiv style={tw('exit--translate-y-8\u002F2000\u002F500')}>Rising\u003C\u002Fdiv>\n```\n\n### Opacity Animations\n\n```tsx\n\u002F\u002F Fade to 100% opacity\n\u003Cdiv style={tw('enter-opacity-100\u002F0\u002F500')}>Fading In\u003C\u002Fdiv>\n\n\u002F\u002F Fade to 50% opacity\n\u003Cdiv style={tw('enter-opacity-50\u002F0\u002F800')}>Half Opacity\u003C\u002Fdiv>\n\n\u002F\u002F Pulse between 50% and 100%\n\u003Cdiv style={tw('loop-opacity-50\u002F1000')}>Pulsing\u003C\u002Fdiv>\n\n\u002F\u002F Fade out to 0%\n\u003Cdiv style={tw('exit-opacity-0\u002F2500\u002F500')}>Vanishing\u003C\u002Fdiv>\n```\n\n### Scale Animations\n\n```tsx\n\u002F\u002F Scale from 0 to 100% (1.0x)\n\u003Cdiv style={tw('enter-scale-100\u002F0\u002F500')}>Growing\u003C\u002Fdiv>\n\n\u002F\u002F Scale to 150% (1.5x)\n\u003Cdiv style={tw('enter-scale-150\u002F0\u002F800')}>Enlarging\u003C\u002Fdiv>\n\n\u002F\u002F Pulse scale in a loop\n\u003Cdiv style={tw('loop-scale-110\u002F1000')}>Breathing\u003C\u002Fdiv>\n\n\u002F\u002F Scale down to 50%\n\u003Cdiv style={tw('exit-scale-50\u002F2000\u002F500')}>Shrinking\u003C\u002Fdiv>\n```\n\n### Rotate Animations\n\n```tsx\n\u002F\u002F Rotate 90 degrees\n\u003Cdiv style={tw('enter-rotate-90\u002F0\u002F500')}>Quarter Turn\u003C\u002Fdiv>\n\n\u002F\u002F Rotate 180 degrees\n\u003Cdiv style={tw('enter-rotate-180\u002F0\u002F1000')}>Half Turn\u003C\u002Fdiv>\n\n\u002F\u002F Continuous rotation in loop (360 degrees per cycle)\n\u003Cdiv style={tw('loop-rotate-360\u002F2000')}>Spinning\u003C\u002Fdiv>\n\n\u002F\u002F Rotate backwards with negative value\n\u003Cdiv style={tw('enter--rotate-45\u002F0\u002F500')}>Counter Rotation\u003C\u002Fdiv>\n```\n\n### Skew Animations\n\n```tsx\n\u002F\u002F Skew on X axis\n\u003Cdiv style={tw('enter-skew-x-12\u002F0\u002F500')}>Slanted\u003C\u002Fdiv>\n\n\u002F\u002F Skew on Y axis\n\u003Cdiv style={tw('enter-skew-y-6\u002F0\u002F800')}>Tilted\u003C\u002Fdiv>\n\n\u002F\u002F Oscillating skew in loop\n\u003Cdiv style={tw('loop-skew-x-6\u002F1000')}>Wobbling\u003C\u002Fdiv>\n\n\u002F\u002F Negative skew\n\u003Cdiv style={tw('exit--skew-x-12\u002F2000\u002F500')}>Reverse Slant\u003C\u002Fdiv>\n```\n\n### Combining Utilities\n\nYou can combine multiple utility animations on the same element:\n\n```tsx\n\u002F\u002F Translate and rotate together\n\u003Cdiv style={tw('enter-translate-y-10\u002F0\u002F500 enter-rotate-45\u002F0\u002F500')}>\n  Flying In\n\u003C\u002Fdiv>\n\n\u002F\u002F Fade and scale\n\u003Cdiv style={tw('enter-opacity-100\u002F0\u002F800 enter-scale-100\u002F0\u002F800')}>\n  Appearing\n\u003C\u002Fdiv>\n\n\u002F\u002F Enter with translate, exit with rotation\n\u003Cdiv style={tw('enter-translate-x-5\u002F0\u002F500 exit-rotate-180\u002F2500\u002F500')}>\n  Slide and Spin\n\u003C\u002Fdiv>\n```\n\n### Bracket Notation\n\nFor more CSS-like syntax, you can use brackets with units:\n\n```tsx\n\u002F\u002F Using bracket notation with seconds\n\u003Ch1 style={tw('enter-slide-up\u002F[0.6s]\u002F[1.5s]')}>Hello\u003C\u002Fh1>\n\n\u002F\u002F Using bracket notation with milliseconds\n\u003Ch1 style={tw('enter-fade-in\u002F[300ms]\u002F[800ms]')}>World\u003C\u002Fh1>\n\n\u002F\u002F Mix and match - plain numbers are milliseconds\n\u003Ch1 style={tw('enter-bounce-in\u002F0\u002F[1.2s]')}>Mixed\u003C\u002Fh1>\n```\n\n## Enter Animations\n\nFormat: `enter-{type}\u002F{startMs}\u002F{durationMs}`\n\n- `startMs` - when the animation begins (milliseconds from start)\n- `durationMs` - how long the animation lasts\n\nWhen values are omitted (`enter-fade-in`), it uses the full video duration.\n\n### Fade Animations\n\nSimple opacity transitions with optional direction.\n\n```tsx\n\u002F\u002F Fade in from 0ms to 500ms\n\u003Ch1 style={tw('enter-fade-in\u002F0\u002F500')}>Hello\u003C\u002Fh1>\n\n\u002F\u002F Fade in with upward motion\n\u003Ch1 style={tw('enter-fade-in-up\u002F0\u002F600')}>Hello\u003C\u002Fh1>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-fade-in\u002F0\u002F500` | Fade in (opacity 0 → 1) |\n| `enter-fade-in-up\u002F0\u002F500` | Fade in + slide up (30px) |\n| `enter-fade-in-down\u002F0\u002F500` | Fade in + slide down (30px) |\n| `enter-fade-in-left\u002F0\u002F500` | Fade in + slide from left (30px) |\n| `enter-fade-in-right\u002F0\u002F500` | Fade in + slide from right (30px) |\n\n### Slide Animations\n\nLarger movement (100px) with fade.\n\n```tsx\n\u002F\u002F Slide in from left: starts at 0, lasts 500ms\n\u003Cdiv style={tw('enter-slide-left\u002F0\u002F500')}>Content\u003C\u002Fdiv>\n\n\u002F\u002F Slide up from bottom: starts at 200ms, lasts 600ms\n\u003Cdiv style={tw('enter-slide-up\u002F200\u002F600')}>Content\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-slide-left\u002F0\u002F500` | Slide in from left (100px) |\n| `enter-slide-right\u002F0\u002F500` | Slide in from right (100px) |\n| `enter-slide-up\u002F0\u002F500` | Slide in from bottom (100px) |\n| `enter-slide-down\u002F0\u002F500` | Slide in from top (100px) |\n\n### Bounce Animations\n\nPlayful entrance with overshoot effect.\n\n```tsx\n\u002F\u002F Bounce in with scale overshoot\n\u003Ch1 style={tw('enter-bounce-in\u002F0\u002F500')}>Bouncy!\u003C\u002Fh1>\n\n\u002F\u002F Bounce in from below\n\u003Cdiv style={tw('enter-bounce-in-up\u002F0\u002F600')}>Pop!\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-bounce-in\u002F0\u002F500` | Bounce in with scale overshoot |\n| `enter-bounce-in-up\u002F0\u002F500` | Bounce in from below |\n| `enter-bounce-in-down\u002F0\u002F500` | Bounce in from above |\n| `enter-bounce-in-left\u002F0\u002F500` | Bounce in from left |\n| `enter-bounce-in-right\u002F0\u002F500` | Bounce in from right |\n\n### Scale & Zoom Animations\n\nSize-based transitions.\n\n```tsx\n\u002F\u002F Scale in from 50%\n\u003Cdiv style={tw('enter-scale-in\u002F0\u002F500')}>Growing\u003C\u002Fdiv>\n\n\u002F\u002F Zoom in from 0%\n\u003Cdiv style={tw('enter-zoom-in\u002F0\u002F1000')}>Zooming\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-scale-in\u002F0\u002F500` | Scale up from 50% to 100% |\n| `enter-zoom-in\u002F0\u002F500` | Zoom in from 0% to 100% |\n\n### Rotate & Flip Animations\n\nRotation-based transitions.\n\n```tsx\n\u002F\u002F Rotate in 180 degrees\n\u003Cdiv style={tw('enter-rotate-in\u002F0\u002F500')}>Spinning\u003C\u002Fdiv>\n\n\u002F\u002F 3D flip on X axis\n\u003Cdiv style={tw('enter-flip-in-x\u002F0\u002F500')}>Flipping\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-rotate-in\u002F0\u002F500` | Rotate in from -180° |\n| `enter-flip-in-x\u002F0\u002F500` | 3D flip on horizontal axis |\n| `enter-flip-in-y\u002F0\u002F500` | 3D flip on vertical axis |\n\n## Exit Animations\n\nFormat: `exit-{type}\u002F{startMs}\u002F{durationMs}`\n\n- `startMs` - when the exit animation begins\n- `durationMs` - how long the exit animation lasts\n\nExit animations use the same timing system but animate elements out.\n\n```tsx\n\u002F\u002F Fade out starting at 2500ms, lasting 500ms (ends at 3000ms)\n\u003Ch1 style={tw('exit-fade-out\u002F2500\u002F500')}>Goodbye\u003C\u002Fh1>\n\n\u002F\u002F Combined enter and exit on same element\n\u003Ch1 style={tw('enter-fade-in\u002F0\u002F500 exit-fade-out\u002F2500\u002F500')}>\n  Hello and Goodbye\n\u003C\u002Fh1>\n```\n\n| Class | Description |\n|-------|-------------|\n| `exit-fade-out\u002F2500\u002F500` | Fade out (opacity 1 → 0) |\n| `exit-fade-out-up\u002F2500\u002F500` | Fade out + slide up |\n| `exit-fade-out-down\u002F2500\u002F500` | Fade out + slide down |\n| `exit-fade-out-left\u002F2500\u002F500` | Fade out + slide left |\n| `exit-fade-out-right\u002F2500\u002F500` | Fade out + slide right |\n| `exit-slide-up\u002F2500\u002F500` | Slide out upward (100px) |\n| `exit-slide-down\u002F2500\u002F500` | Slide out downward (100px) |\n| `exit-slide-left\u002F2500\u002F500` | Slide out to left (100px) |\n| `exit-slide-right\u002F2500\u002F500` | Slide out to right (100px) |\n| `exit-scale-out\u002F2500\u002F500` | Scale out to 150% |\n| `exit-zoom-out\u002F2500\u002F500` | Zoom out to 200% |\n| `exit-rotate-out\u002F2500\u002F500` | Rotate out to 180° |\n| `exit-bounce-out\u002F2500\u002F500` | Bounce out with scale |\n| `exit-bounce-out-up\u002F2500\u002F500` | Bounce out upward |\n| `exit-bounce-out-down\u002F2500\u002F500` | Bounce out downward |\n| `exit-bounce-out-left\u002F2500\u002F500` | Bounce out to left |\n| `exit-bounce-out-right\u002F2500\u002F500` | Bounce out to right |\n\n## Loop Animations\n\nFormat: `loop-{type}\u002F{durationMs}`\n\nLoop animations repeat every `{durationMs}` milliseconds:\n- `\u002F1000` = 1 second loop\n- `\u002F500` = 0.5 second loop\n- `\u002F2000` = 2 second loop\n\nWhen duration is omitted (`loop-bounce`), it defaults to 1000ms (1 second).\n\n```tsx\n\u002F\u002F Pulse opacity every 500ms\n\u003Cdiv style={tw('loop-fade\u002F500')}>Pulsing\u003C\u002Fdiv>\n\n\u002F\u002F Bounce every 800ms\n\u003Cdiv style={tw('loop-bounce\u002F800')}>Bouncing\u003C\u002Fdiv>\n\n\u002F\u002F Full rotation every 2000ms\n\u003Cdiv style={tw('loop-spin\u002F2000')}>Spinning\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `loop-fade\u002F{ms}` | Opacity pulse (0.5 → 1 → 0.5) |\n| `loop-bounce\u002F{ms}` | Bounce up and down |\n| `loop-spin\u002F{ms}` | Full 360° rotation |\n| `loop-ping\u002F{ms}` | Scale up + fade out (radar effect) |\n| `loop-wiggle\u002F{ms}` | Side to side wiggle |\n| `loop-float\u002F{ms}` | Gentle up and down floating |\n| `loop-pulse\u002F{ms}` | Scale pulse (1.0 → 1.05 → 1.0) |\n| `loop-shake\u002F{ms}` | Shake side to side |\n\n## Easing Functions\n\nAdd an easing class **before** the animation class to control the timing curve.\n\n```tsx\n\u002F\u002F Ease in (accelerate)\n\u003Ch1 style={tw('ease-in enter-fade-in\u002F0\u002F1000')}>Accelerating\u003C\u002Fh1>\n\n\u002F\u002F Ease out (decelerate) - default\n\u003Ch1 style={tw('ease-out enter-fade-in\u002F0\u002F1000')}>Decelerating\u003C\u002Fh1>\n\n\u002F\u002F Ease in-out (smooth)\n\u003Ch1 style={tw('ease-in-out enter-fade-in\u002F0\u002F1000')}>Smooth\u003C\u002Fh1>\n\n\u002F\u002F Strong cubic easing\n\u003Ch1 style={tw('ease-out-cubic enter-bounce-in\u002F0\u002F500')}>Dramatic\u003C\u002Fh1>\n```\n\n| Class | Description | Best For |\n|-------|-------------|----------|\n| `linear` | Constant speed | Mechanical motion |\n| `ease-in` | Slow start, fast end | Exit animations |\n| `ease-out` | Fast start, slow end (default) | Enter animations |\n| `ease-in-out` | Slow start and end | Subtle transitions |\n| `ease-in-cubic` | Strong slow start | Dramatic exits |\n| `ease-out-cubic` | Strong fast start | Impactful entrances |\n| `ease-in-out-cubic` | Strong both ends | Emphasis animations |\n| `ease-in-quart` | Very strong slow start | Powerful exits |\n| `ease-out-quart` | Very strong fast start | Punchy entrances |\n| `ease-in-out-quart` | Very strong both ends | Maximum drama |\n\n### Per-Animation-Type Easing\n\nYou can apply **different easing functions** to enter, exit, and loop animations on the same element using `enter-ease-*`, `exit-ease-*`, and `loop-ease-*` classes.\n\n```tsx\n\u002F\u002F Different easing for enter and exit\n\u003Ch1 style={tw('enter-ease-out-cubic enter-fade-in\u002F0\u002F500 exit-ease-in exit-fade-out\u002F2500\u002F500')}>\n  Smooth entrance, sharp exit\n\u003C\u002Fh1>\n\n\u002F\u002F Loop with linear easing, enter with bounce\n\u003Cdiv style={tw('enter-ease-out enter-bounce-in\u002F0\u002F400 loop-ease-linear loop-fade\u002F1000')}>\n  Bouncy entrance, linear loop\n\u003C\u002Fdiv>\n\n\u002F\u002F Default easing still works (applies to all animations)\n\u003Cdiv style={tw('ease-in-out enter-fade-in\u002F0\u002F500 exit-fade-out\u002F2500\u002F500')}>\n  Same easing for both\n\u003C\u002Fdiv>\n\n\u002F\u002F Mix default with specific overrides\n\u003Cdiv style={tw('ease-out enter-fade-in\u002F0\u002F500 exit-ease-in-cubic exit-fade-out\u002F2500\u002F500')}>\n  Default ease-out for enter, cubic-in for exit\n\u003C\u002Fdiv>\n```\n\n**How it works:**\n\n1. **Default easing** (`ease-*`) applies to ALL animations if no specific override is set\n2. **Specific easing** (`enter-ease-*`, `exit-ease-*`, `loop-ease-*`) overrides the default for that animation type\n3. If both are present, specific easing takes priority for its animation type\n\n**Available easing classes:**\n\n| Default (all animations) | Enter only | Exit only | Loop only |\n|--------------------------|------------|-----------|-----------|\n| `ease-in` | `enter-ease-in` | `exit-ease-in` | `loop-ease-in` |\n| `ease-out` | `enter-ease-out` | `exit-ease-out` | `loop-ease-out` |\n| `ease-in-out` | `enter-ease-in-out` | `exit-ease-in-out` | `loop-ease-in-out` |\n| `ease-in-cubic` | `enter-ease-in-cubic` | `exit-ease-in-cubic` | `loop-ease-in-cubic` |\n| `ease-out-cubic` | `enter-ease-out-cubic` | `exit-ease-out-cubic` | `loop-ease-out-cubic` |\n| `ease-in-out-cubic` | `enter-ease-in-out-cubic` | `exit-ease-in-out-cubic` | `loop-ease-in-out-cubic` |\n| `ease-in-quart` | `enter-ease-in-quart` | `exit-ease-in-quart` | `loop-ease-in-quart` |\n| `ease-out-quart` | `enter-ease-out-quart` | `exit-ease-out-quart` | `loop-ease-out-quart` |\n| `ease-in-out-quart` | `enter-ease-in-out-quart` | `exit-ease-in-out-quart` | `loop-ease-in-out-quart` |\n| `linear` | `enter-ease-linear` | `exit-ease-linear` | `loop-ease-linear` |\n| `ease-spring` | `enter-ease-spring` | `exit-ease-spring` | `loop-ease-spring` |\n\n### Spring Easing\n\nSpring easing creates natural, physics-based bouncy animations. Use the built-in `ease-spring` easing or create custom springs with configurable parameters.\n\n```tsx\n\u002F\u002F Default spring easing\n\u003Ch1 style={tw('ease-spring enter-bounce-in\u002F0\u002F500')}>Bouncy spring!\u003C\u002Fh1>\n\n\u002F\u002F Per-animation-type spring\n\u003Cdiv style={tw('enter-ease-spring enter-fade-in\u002F0\u002F500 exit-ease-out exit-fade-out\u002F2500\u002F500')}>\n  Spring entrance, smooth exit\n\u003C\u002Fdiv>\n\n\u002F\u002F Custom spring with parameters: ease-spring\u002Fmass\u002Fstiffness\u002Fdamping\n\u003Ch1 style={tw('ease-spring\u002F1\u002F100\u002F10 enter-scale-in\u002F0\u002F800')}>\n  Custom spring (mass=1, stiffness=100, damping=10)\n\u003C\u002Fh1>\n\n\u002F\u002F More bouncy spring (lower damping)\n\u003Cdiv style={tw('ease-spring\u002F1\u002F170\u002F8 enter-bounce-in-up\u002F0\u002F600')}>\n  Extra bouncy!\n\u003C\u002Fdiv>\n\n\u002F\u002F Stiffer spring (higher stiffness, faster)\n\u003Cdiv style={tw('ease-spring\u002F1\u002F200\u002F12 enter-fade-in-up\u002F0\u002F400')}>\n  Snappy spring\n\u003C\u002Fdiv>\n\n\u002F\u002F Per-animation-type custom springs\n\u003Cdiv style={tw('enter-ease-spring\u002F1\u002F150\u002F10 enter-fade-in\u002F0\u002F500 exit-ease-spring\u002F1\u002F100\u002F15 exit-fade-out\u002F2500\u002F500')}>\n  Different springs for enter and exit\n\u003C\u002Fdiv>\n```\n\n**Spring parameters:**\n\n| Parameter | Description | Effect when increased | Default |\n|-----------|-------------|----------------------|---------|\n| **mass** | Mass of the spring | Slower, more inertia | 1 |\n| **stiffness** | Spring stiffness | Faster, snappier | 100 |\n| **damping** | Damping coefficient | Less bounce, smoother | 10 |\n\n**Common spring presets:**\n\n```tsx\n\u002F\u002F Gentle bounce (default)\nease-spring\u002F1\u002F100\u002F10\n\n\u002F\u002F Extra bouncy\nease-spring\u002F1\u002F170\u002F8\n\n\u002F\u002F Snappy (no bounce)\nease-spring\u002F1\u002F200\u002F15\n\n\u002F\u002F Slow and bouncy\nease-spring\u002F2\u002F100\u002F8\n\n\u002F\u002F Fast and tight\nease-spring\u002F0.5\u002F300\u002F20\n```\n\n**How spring works:**\n\n1. **Default `ease-spring`** - Uses a pre-calculated spring curve optimized for most use cases\n2. **Custom `ease-spring\u002Fmass\u002Fstiffness\u002Fdamping`** - Generates a physics-based spring curve using the [damped harmonic oscillator](https:\u002F\u002Fwww.kvin.me\u002Fcss-springs) formula\n3. The spring automatically calculates its ideal duration to reach the final state\n4. Works with all animation types: `ease-spring`, `enter-ease-spring`, `exit-ease-spring`, `loop-ease-spring`\n\n## Combining Enter and Exit\n\nYou can use both enter and exit animations on the same element:\n\n```tsx\nexport default function EnterExit({ tw, title }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-black')}>\n      {\u002F* Fade in during first 500ms, fade out during last 500ms (assuming 3s video) *\u002F}\n      \u003Ch1 style={tw('text-8xl font-bold text-white enter-fade-in\u002F0\u002F500 exit-fade-out\u002F2500\u002F500')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nThe opacities from multiple animations are **multiplied together**, so you get smooth transitions that combine properly.\n\n## Staggered Animations\n\nCreate sequenced animations by offsetting start times:\n\n```tsx\nexport default function StaggeredList({ tw, items }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col gap-4')}>\n      {\u002F* First item: starts at 0ms, lasts 300ms *\u002F}\n      \u003Cdiv style={tw('ease-out enter-fade-in-left\u002F0\u002F300')}>\n        {items[0]}\n      \u003C\u002Fdiv>\n\n      {\u002F* Second item: starts at 100ms, lasts 300ms *\u002F}\n      \u003Cdiv style={tw('ease-out enter-fade-in-left\u002F100\u002F300')}>\n        {items[1]}\n      \u003C\u002Fdiv>\n\n      {\u002F* Third item: starts at 200ms, lasts 300ms *\u002F}\n      \u003Cdiv style={tw('ease-out enter-fade-in-left\u002F200\u002F300')}>\n        {items[2]}\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Dynamic Staggering\n\nFor dynamic lists, calculate the timing programmatically:\n\n```tsx\nexport default function DynamicStagger({ tw, items }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col gap-4')}>\n      {items.map((item, i) => {\n        const start = i * 100;      \u002F\u002F Each item starts 100ms later\n        const duration = 300;       \u002F\u002F Each animation lasts 300ms\n\n        return (\n          \u003Cdiv\n            key={i}\n            style={tw(`ease-out enter-fade-in-up\u002F${start}\u002F${duration}`)}\n          >\n            {item}\n          \u003C\u002Fdiv>\n        );\n      })}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Common Patterns\n\n### Intro Sequence\n\n```tsx\nexport default function IntroVideo({ tw, title, subtitle, logo }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col items-center justify-center w-full h-full bg-gradient-to-br from-blue-600 to-purple-700')}>\n      {\u002F* Logo appears first *\u002F}\n      \u003Cimg\n        src={logo}\n        style={tw('h-20 mb-8 ease-out enter-scale-in\u002F0\u002F300')}\n      \u002F>\n\n      {\u002F* Title bounces in *\u002F}\n      \u003Ch1 style={tw('text-7xl font-bold text-white ease-out enter-bounce-in-up\u002F200\u002F500')}>\n        {title}\n      \u003C\u002Fh1>\n\n      {\u002F* Subtitle fades in last *\u002F}\n      \u003Cp style={tw('text-2xl text-white\u002F80 mt-4 ease-out enter-fade-in-up\u002F400\u002F700')}>\n        {subtitle}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Text Reveal\n\n```tsx\nexport default function TextReveal({ tw, words }) {\n  return (\n    \u003Cdiv style={tw('flex flex-wrap gap-2 justify-center')}>\n      {words.split(' ').map((word, i) => (\n        \u003Cspan\n          key={i}\n          style={tw(`text-4xl font-bold ease-out enter-fade-in-up\u002F${i * 100}\u002F200`)}\n        >\n          {word}\n        \u003C\u002Fspan>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Looping Background Element\n\n```tsx\nexport default function AnimatedBackground({ tw, children }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full')}>\n      {\u002F* Floating background circles *\u002F}\n      \u003Cdiv style={tw('absolute top-10 left-10 w-20 h-20 rounded-full bg-white\u002F10 loop-float\u002F2000')} \u002F>\n      \u003Cdiv style={tw('absolute bottom-20 right-20 w-32 h-32 rounded-full bg-white\u002F10 loop-fade\u002F1500')} \u002F>\n\n      {\u002F* Main content *\u002F}\n      \u003Cdiv style={tw('relative z-10')}>\n        {children}\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Full Enter\u002FExit Animation\n\n```tsx\nexport default function FullAnimation({ tw, title }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-black')}>\n      {\u002F* Enter: starts at 0, lasts 400ms. Exit: starts at 2600ms, lasts 400ms *\u002F}\n      \u003Ch1 style={tw('text-8xl font-bold text-white ease-out enter-bounce-in-up\u002F0\u002F400 exit-fade-out-up\u002F2600\u002F400')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Programmatic Animations\n\nFor complete control beyond animation classes, use `progress` and `frame` directly.\n\n### Available Props\n\n| Prop | Type | Description |\n|------|------|-------------|\n| `progress` | `number` | 0 to 1 through the video (0% to 100%) |\n| `frame` | `number` | Current frame number (0, 1, 2, ... totalFrames-1) |\n\nThese are **only available in video templates**. Use them when animation classes aren't flexible enough.\n\n### Using `frame`\n\n```tsx\nexport default function FrameAnimation({ tw, frame, title }) {\n  \u002F\u002F Color cycling using frame number\n  const hue = (frame * 5) % 360; \u002F\u002F Cycle through colors\n\n  \u002F\u002F Pulsing based on frame\n  const fps = 30;\n  const pulse = Math.sin(frame \u002F fps * Math.PI * 2) * 0.2 + 0.8; \u002F\u002F 0.6 to 1.0\n\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-black')}>\n      \u003Ch1 style={{\n        ...tw('text-8xl font-bold'),\n        color: `hsl(${hue}, 70%, 60%)`,\n        transform: `scale(${pulse})`\n      }}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Using `progress`\n\n```tsx\nexport default function ProgressAnimation({ tw, progress, title }) {\n  \u002F\u002F Custom fade based on progress\n  const opacity = progress \u003C 0.3 ? progress \u002F 0.3 : 1;\n\n  \u002F\u002F Custom scale based on progress\n  const scale = 0.8 + progress * 0.2; \u002F\u002F 0.8 to 1.0\n\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gray-900')}>\n      \u003Ch1 style={{\n        ...tw('text-8xl font-bold text-white'),\n        opacity,\n        transform: `scale(${scale})`\n      }}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Custom Easing\n\n```tsx\nexport default function CustomEasing({ tw, progress, title }) {\n  \u002F\u002F Smoothstep easing\n  const eased = progress * progress * (3 - 2 * progress);\n\n  \u002F\u002F Elastic easing\n  const elastic = Math.pow(2, -10 * progress) * Math.sin((progress - 0.075) * (2 * Math.PI) \u002F 0.3) + 1;\n\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full')}>\n      \u003Ch1 style={{\n        ...tw('text-8xl font-bold'),\n        opacity: eased,\n        transform: `translateY(${(1 - elastic) * 100}px)`\n      }}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### When to Use Programmatic Animations\n\nUse `progress`\u002F`frame` instead of animation classes when you need:\n- **Custom easing functions** (elastic, bounce with specific curves beyond built-in ease-spring)\n- **Color cycling or gradients** based on time\n- **Mathematical animations** (sine waves, spirals, etc.)\n- **Complex multi-property animations** that need precise coordination\n- **Conditional logic** based on specific frame numbers\n\nFor everything else, prefer animation classes - they're simpler and more maintainable.\n\n### Animating Along Paths\n\nAnimate elements along SVG paths with proper rotation using built-in **path helpers**:\n\n```tsx\nexport default function PathFollowing({ tw, progress, path }) {\n  \u002F\u002F Follow a quadratic Bezier curve - one line!\n  const rocket = path.followQuadratic(\n    { x: 200, y: 400 },   \u002F\u002F Start point\n    { x: 960, y: 150 },   \u002F\u002F Control point\n    { x: 1720, y: 400 },  \u002F\u002F End point\n    progress\n  );\n\n  return (\n    \u003Cdiv style={{ display: 'flex', ...tw('relative w-full h-full bg-gray-900') }}>\n      {\u002F* Draw the path (optional) *\u002F}\n      \u003Csvg width=\"1920\" height=\"1080\" style={{ position: 'absolute' }}>\n        \u003Cpath\n          d=\"M 200 400 Q 960 150 1720 400\"\n          stroke=\"rgba(255,255,255,0.2)\"\n          strokeWidth={2}\n          fill=\"none\"\n        \u002F>\n      \u003C\u002Fsvg>\n\n      {\u002F* Element following the path *\u002F}\n      \u003Cdiv\n        style={{\n          position: \"absolute\",\n          left: rocket.x,\n          top: rocket.y,\n          transform: `translate(-50%, -50%) rotate(${rocket.angle}deg)`,\n          fontSize: '48px'\n        }}\n      >\n        🚀\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Text Path Animations\n\nCombine `textPath` helpers with animation classes to create animated text along curves:\n\n**Rotating text around a circle:**\n```tsx\nexport default function RotatingCircleText({ tw, textPath, progress }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-black')}>\n      {\u002F* Text rotates around circle using progress *\u002F}\n      {textPath.onCircle(\n        \"SPINNING TEXT • AROUND • \",\n        960,      \u002F\u002F center x\n        540,      \u002F\u002F center y\n        400,      \u002F\u002F radius\n        progress, \u002F\u002F rotation offset (0-1 animates full rotation)\n        {\n          fontSize: \"3xl\",\n          fontWeight: \"bold\",\n          color: \"yellow-300\"\n        }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Animated text reveal along a path:**\n```tsx\nexport default function PathTextReveal({ tw, textPath, progress }) {\n  \u002F\u002F Create custom path follower that animates position\n  const pathFollower = (t) => {\n    \u002F\u002F Only show characters up to current progress\n    const visibleProgress = progress * 1.5; \u002F\u002F Extend range for smooth reveal\n    const opacity = t \u003C visibleProgress ? 1 : 0;\n\n    \u002F\u002F Follow quadratic curve\n    const pos = {\n      x: (1 - t) * (1 - t) * 200 + 2 * (1 - t) * t * 960 + t * t * 1720,\n      y: (1 - t) * (1 - t) * 400 + 2 * (1 - t) * t * 150 + t * t * 400,\n      angle: 0\n    };\n\n    return { ...pos, opacity };\n  };\n\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-gray-900')}>\n      {textPath.onPath(\n        \"REVEALING TEXT\",\n        pathFollower,\n        {\n          fontSize: \"4xl\",\n          fontWeight: \"bold\",\n          color: \"blue-300\"\n        }\n      ).map((char, i) => (\n        \u003Cdiv key={i} style={{ ...char.props.style, opacity: char.props.style.opacity || 1 }}>\n          {char}\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Staggered character entrance:**\n```tsx\nexport default function StaggeredCircleText({ tw, textPath }) {\n  const text = \"HELLO WORLD\";\n\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-slate-900')}>\n      {textPath.onCircle(\n        text,\n        960, 540, 400, 0,\n        { fontSize: \"4xl\", fontWeight: \"bold\", color: \"white\" }\n      ).map((char, i) => {\n        \u002F\u002F Stagger fade-in: each character starts 50ms later\n        const staggerDelay = i * 50;\n        return (\n          \u003Cdiv\n            key={i}\n            style={{\n              ...char.props.style,\n              ...tw(`enter-fade-in\u002F${staggerDelay}\u002F300 enter-scale-100\u002F${staggerDelay}\u002F300`)\n            }}\n          >\n            {char.props.children}\n          \u003C\u002Fdiv>\n        );\n      })}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Text with bounce entrance along arc:**\n```tsx\nexport default function BouncyArcText({ tw, textPath }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-gradient-to-br from-purple-600 to-blue-500')}>\n      {\u002F* Draw the arc path *\u002F}\n      \u003Csvg width=\"1920\" height=\"1080\" style={{ position: 'absolute' }}>\n        \u003Cpath\n          d=\"M 300 900 A 600 600 0 0 1 1620 900\"\n          stroke=\"rgba(255,255,255,0.2)\"\n          strokeWidth={2}\n          fill=\"none\"\n          strokeDasharray=\"5 5\"\n        \u002F>\n      \u003C\u002Fsvg>\n\n      {\u002F* Text follows arc with staggered bounce *\u002F}\n      {textPath.onArc(\n        \"BOUNCING ON ARC\",\n        960,  \u002F\u002F cx\n        300,  \u002F\u002F cy\n        600,  \u002F\u002F radius\n        180,  \u002F\u002F start angle\n        360,  \u002F\u002F end angle\n        { fontSize: \"3xl\", fontWeight: \"bold\", color: \"white\" }\n      ).map((char, i) => (\n        \u003Cdiv\n          key={i}\n          style={{\n            ...char.props.style,\n            ...tw(`ease-out enter-bounce-in-up\u002F${i * 80}\u002F500`)\n          }}\n        >\n          {char.props.children}\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Loop animation with text on curve:**\n```tsx\nexport default function LoopingCurveText({ tw, textPath, frame }) {\n  \u002F\u002F Calculate wave effect using frame\n  const waveOffset = Math.sin(frame \u002F 30 * Math.PI * 2) * 0.1;\n\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-black')}>\n      {textPath.onQuadratic(\n        \"WAVY TEXT\",\n        { x: 200, y: 400 },\n        { x: 960, y: 150 },\n        { x: 1720, y: 400 },\n        { fontSize: \"4xl\", fontWeight: \"bold\", color: \"pink-300\" }\n      ).map((char, i) => (\n        \u003Cdiv\n          key={i}\n          style={{\n            ...char.props.style,\n            transform: `${char.props.style.transform} translateY(${Math.sin((i + frame) \u002F 5) * 10}px)`\n          }}\n        >\n          {char.props.children}\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Tips for animating text paths:**\n1. **Use `progress` for smooth rotation** on circles and arcs\n2. **Map over returned characters** to apply individual animations\n3. **Combine with animation classes** like `enter-fade-in`, `enter-bounce-in`, etc.\n4. **Stagger character animations** by calculating delays: `i * delayMs`\n5. **Use `frame` for continuous effects** like waves or pulsing\n6. **Preserve the original transform** when adding animations: `transform: '${char.props.style.transform} ...'`\n\n**Common path types:**\n\n**Quadratic Bezier** (Q command):\n```tsx\n\u002F\u002F Position: (1-t)²·P0 + 2(1-t)t·P1 + t²·P2\nfunction pointOnQuadraticBezier(p0, p1, p2, t) {\n  const x = (1 - t) * (1 - t) * p0.x + 2 * (1 - t) * t * p1.x + t * t * p2.x;\n  const y = (1 - t) * (1 - t) * p0.y + 2 * (1 - t) * t * p1.y + t * t * p2.y;\n  return { x, y };\n}\n\n\u002F\u002F Tangent angle\nfunction angleOnQuadraticBezier(p0, p1, p2, t) {\n  const dx = 2 * (1 - t) * (p1.x - p0.x) + 2 * t * (p2.x - p1.x);\n  const dy = 2 * (1 - t) * (p1.y - p0.y) + 2 * t * (p2.y - p1.y);\n  return Math.atan2(dy, dx) * (180 \u002F Math.PI);\n}\n```\n\n**Cubic Bezier** (C command):\n```tsx\n\u002F\u002F Position: (1-t)³·P0 + 3(1-t)²t·P1 + 3(1-t)t²·P2 + t³·P3\nfunction pointOnCubicBezier(p0, p1, p2, p3, t) {\n  const mt = 1 - t;\n  const mt2 = mt * mt;\n  const mt3 = mt2 * mt;\n  const t2 = t * t;\n  const t3 = t2 * t;\n  const x = mt3 * p0.x + 3 * mt2 * t * p1.x + 3 * mt * t2 * p2.x + t3 * p3.x;\n  const y = mt3 * p0.y + 3 * mt2 * t * p1.y + 3 * mt * t2 * p2.y + t3 * p3.y;\n  return { x, y };\n}\n\n\u002F\u002F Tangent angle\nfunction angleOnCubicBezier(p0, p1, p2, p3, t) {\n  const mt = 1 - t;\n  const mt2 = mt * mt;\n  const t2 = t * t;\n  const dx = -3 * mt2 * p0.x + 3 * mt2 * p1.x - 6 * mt * t * p1.x - 3 * t2 * p2.x + 6 * mt * t * p2.x + 3 * t2 * p3.x;\n  const dy = -3 * mt2 * p0.y + 3 * mt2 * p1.y - 6 * mt * t * p1.y - 3 * t2 * p2.y + 6 * mt * t * p2.y + 3 * t2 * p3.y;\n  return Math.atan2(dy, dx) * (180 \u002F Math.PI);\n}\n```\n\n**Circle**:\n```tsx\nfunction pointOnCircle(cx, cy, radius, angleRadians) {\n  return {\n    x: cx + radius * Math.cos(angleRadians),\n    y: cy + radius * Math.sin(angleRadians)\n  };\n}\n\n\u002F\u002F Usage\nconst angleRadians = progress * Math.PI * 2;\nconst pos = pointOnCircle(300, 300, 100, angleRadians);\nconst tangentAngle = (angleRadians * 180 \u002F Math.PI) + 90; \u002F\u002F Tangent is perpendicular\n```\n\n**Tips:**\n- Use `progress` (0-1) for smooth animation\n- The `translate(-50%, -50%)` centers the element on the path\n- Combine rotation with the translate: `translate(-50%, -50%) rotate(${angle}deg)`\n- For text following a path, you can animate individual characters at different progress values\n\n## SVG Stroke Animations\n\nAnimate SVG path strokes with the **stroke-dash** classes, perfect for drawing or erasing line art, icons, and illustrations.\n\n### How It Works\n\nSVG stroke animations use `strokeDasharray` and `strokeDashoffset` CSS properties to create drawing effects:\n\n1. **Enter animations** - Draw the stroke from start to finish\n2. **Exit animations** - Erase the stroke from finish to start\n3. **Loop animations** - Continuously draw and erase\n\n### Format\n\nAll stroke-dash animations require the **path length** in brackets:\n\n```tsx\nenter-stroke-dash-[length]\u002Fstart\u002Fduration\nexit-stroke-dash-[length]\u002Fstart\u002Fduration\nloop-stroke-dash-[length]\u002Fduration\n```\n\n### Basic Examples\n\n```tsx\nexport default function SVGAnimation({ tw }) {\n  return (\n    \u003Csvg width=\"400\" height=\"200\" viewBox=\"0 0 400 200\">\n      {\u002F* Draw a curve over 1 second *\u002F}\n      \u003Cpath\n        d=\"M10 150 Q 95 10 180 150\"\n        stroke=\"black\"\n        strokeWidth={4}\n        fill=\"none\"\n        style={tw('enter-stroke-dash-[300]\u002F0\u002F1000')}\n      \u002F>\n    \u003C\u002Fsvg>\n  );\n}\n```\n\n### Enter Animations (Drawing)\n\nDraw strokes from 0% to 100%:\n\n```tsx\n\u002F\u002F Draw a 300px path over 1 second\n\u003Cpath style={tw('enter-stroke-dash-[300]\u002F0\u002F1000')} \u002F>\n\n\u002F\u002F Draw with spring easing\n\u003Cpath style={tw('ease-spring enter-stroke-dash-[500]\u002F0\u002F1500')} \u002F>\n\n\u002F\u002F Stagger multiple paths\n\u003Cpath style={tw('enter-stroke-dash-[200]\u002F0\u002F600')} \u002F>\n\u003Cpath style={tw('enter-stroke-dash-[200]\u002F200\u002F600')} \u002F>\n\u003Cpath style={tw('enter-stroke-dash-[200]\u002F400\u002F600')} \u002F>\n```\n\n### Exit Animations (Erasing)\n\nErase strokes from 100% to 0%:\n\n```tsx\n\u002F\u002F Erase starting at 2000ms, lasting 500ms\n\u003Cpath style={tw('exit-stroke-dash-[300]\u002F2000\u002F500')} \u002F>\n\n\u002F\u002F Draw then erase the same path\n\u003Cpath style={tw('enter-stroke-dash-[400]\u002F0\u002F800 exit-stroke-dash-[400]\u002F2200\u002F800')} \u002F>\n```\n\n### Loop Animations\n\nContinuously draw and erase:\n\n```tsx\n\u002F\u002F Loop every 2 seconds (draws in first half, erases in second half)\n\u003Cpath style={tw('loop-stroke-dash-[300]\u002F2000')} \u002F>\n\n\u002F\u002F Faster loop\n\u003Cpath style={tw('loop-stroke-dash-[200]\u002F1000')} \u002F>\n```\n\n### Getting Path Length\n\nTo find the path length for your SVG:\n\n```tsx\n\u002F\u002F In browser console or component:\nconst path = document.querySelector('path');\nconst length = path.getTotalLength();\nconsole.log(length); \u002F\u002F e.g., 347.89\n```\n\nThen use that value:\n\n```tsx\n\u003Cpath style={tw('enter-stroke-dash-[347.89]\u002F0\u002F1000')} \u002F>\n```\n\n### Complete Example\n\n```tsx\nexport default function DrawingEffect({ tw }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gray-900')}>\n      \u003Csvg width=\"600\" height=\"400\" viewBox=\"0 0 600 400\">\n        {\u002F* Checkmark icon drawn in sequence *\u002F}\n        \u003Cpath\n          d=\"M100 200 L 200 300 L 400 100\"\n          stroke=\"#10b981\"\n          strokeWidth={8}\n          fill=\"none\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          style={tw('ease-out enter-stroke-dash-[600]\u002F0\u002F1200')}\n        \u002F>\n\n        {\u002F* Circle drawn after checkmark *\u002F}\n        \u003Ccircle\n          cx=\"250\"\n          cy=\"200\"\n          r=\"150\"\n          stroke=\"#10b981\"\n          strokeWidth={6}\n          fill=\"none\"\n          style={tw('ease-out enter-stroke-dash-[942]\u002F1000\u002F1000')}\n        \u002F>\n      \u003C\u002Fsvg>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Combining with Other Animations\n\nStroke animations work alongside other animation classes:\n\n```tsx\n\u002F\u002F Fade in while drawing\n\u003Cpath style={tw('enter-stroke-dash-[300]\u002F0\u002F1000 enter-fade-in\u002F0\u002F1000')} \u002F>\n\n\u002F\u002F Draw with pulsing color\n\u003Csvg>\n  \u003Cpath\n    stroke=\"url(#gradient)\"\n    style={tw('enter-stroke-dash-[500]\u002F0\u002F1500')}\n  \u002F>\n  \u003Cdefs>\n    \u003ClinearGradient id=\"gradient\">\n      \u003Cstop offset=\"0%\" stopColor=\"#8b5cf6\" \u002F>\n      \u003Cstop offset=\"100%\" stopColor=\"#ec4899\" \u002F>\n    \u003C\u002FlinearGradient>\n  \u003C\u002Fdefs>\n\u003C\u002Fsvg>\n```\n\n### Animated Dashed Strokes (Marching Ants)\n\nFor **marching ants** or **animated dashed patterns**, use `frame` or `progress` directly instead of animation classes:\n\n```tsx\nexport default function MarchingAnts({ tw, frame }) {\n  \u002F\u002F Calculate animated offset (loops every 30 frames)\n  const dashOffset = -(frame % 30) * 2;\n\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gray-900')}>\n      \u003Csvg width=\"600\" height=\"400\" viewBox=\"0 0 600 400\">\n        {\u002F* Marching ants border *\u002F}\n        \u003Crect\n          x=\"50\"\n          y=\"50\"\n          width=\"500\"\n          height=\"300\"\n          fill=\"none\"\n          stroke=\"#3b82f6\"\n          strokeWidth={3}\n          strokeDasharray=\"10 5\"\n          strokeDashoffset={dashOffset}\n        \u002F>\n\n        {\u002F* Animated circle with different speed *\u002F}\n        \u003Ccircle\n          cx=\"300\"\n          cy=\"200\"\n          r=\"80\"\n          fill=\"none\"\n          stroke=\"#10b981\"\n          strokeWidth={4}\n          strokeDasharray=\"15 8\"\n          strokeDashoffset={dashOffset * 1.5}\n        \u002F>\n      \u003C\u002Fsvg>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Tips:**\n- `strokeDasharray=\"10 5\"` - 10px dash, 5px gap\n- `strokeDashoffset={dashOffset}` - animates the pattern position\n- Negative offset moves forward, positive moves backward\n- Different speeds: multiply by different values (e.g., `dashOffset * 2`)\n\nThis technique is different from `stroke-dash` classes:\n- **`stroke-dash` classes** - Draw\u002Ferase the stroke (reveal animation)\n- **Marching ants** - Move a dashed pattern along the stroke\n\n## Performance Tips\n\n1. **Use Tailwind classes** when possible - they're optimized for the renderer\n2. **Avoid too many nested animations** - each adds computation per frame\n3. **Use loop animations sparingly** - they're computed every frame\n4. **Prefer opacity and transform** - they're the most performant properties\n\n## Next Steps\n\n- [Templates](\u002Ftemplates) - Creating image and video templates\n- [Helpers](\u002Fhelpers) - QR codes, images, and more\n\n\n# Template Helpers\n\nAdditional helpers for creating powerful, composable templates.\n\n## Overview\n\nBeyond the basics, loopwind provides:\n- `template()` - Compose templates together\n- `qr()` - Generate QR codes on the fly\n- `config` - Access user configuration\n\nFor image embedding, see the [Images](\u002Fimages) page.\n\n## Template Composition\n\nCompose multiple templates together to create complex designs.\n\n### Usage\n\n```tsx\nexport default function CompositeCard({ tw, template, title, author, avatar }) {\n  return (\n    \u003Cdiv style={tw('w-full h-full bg-gradient-to-br from-purple-600 to-blue-500 p-12')}>\n      \u003Cdiv style={tw('bg-white rounded-2xl p-8 shadow-xl')}>\n        \u003Ch1 style={tw('text-4xl font-bold text-gray-900 mb-6')}>{title}\u003C\u002Fh1>\n        \n        {\u002F* Embed another template *\u002F}\n        \u003Cdiv style={tw('mb-6')}>\n          {template('user-badge', {\n            name: author,\n            avatar: avatar\n          })}\n        \u003C\u002Fdiv>\n        \n        \u003Cp style={tw('text-gray-600')}>Published by {author}\u003C\u002Fp>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**How it works:**\n1. `template(name, props)` renders another installed template\n2. The embedded template is rendered at its specified size\n3. You can embed multiple templates in one design\n4. Templates can be nested (template within a template)\n\n### Use Cases\n\n**1. Reusable components:**\n```tsx\n\u002F\u002F Create a logo template once, use it everywhere\n\u003Cdiv>{template('company-logo', { variant: 'dark' })}\u003C\u002Fdiv>\n```\n\n**2. Complex layouts:**\n```tsx\n\u002F\u002F Combine multiple templates into one design\n\u003Cdiv style={tw('grid grid-cols-2 gap-4')}>\n  {template('product-card', { product: product1 })}\n  {template('product-card', { product: product2 })}\n\u003C\u002Fdiv>\n```\n\n**3. Dynamic content:**\n```tsx\n\u002F\u002F Render templates based on data\n{users.map(user => \n  template('user-avatar', { name: user.name, image: user.avatar })\n)}\n```\n\n### Best Practices\n\n1. **Keep templates focused** - Each template should do one thing well\n2. **Pass minimal props** - Only pass what the embedded template needs\n3. **Document dependencies** - Note which templates are required in your README\n4. **Avoid deep nesting** - Too many nested templates can be hard to debug\n\n## QR Codes\n\nGenerate QR codes dynamically in your templates.\n\n### Usage\n\n```tsx\nexport default function QRCard({ tw, qr, title, url }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col items-center justify-center w-full h-full bg-white p-10')}>\n      \u003Ch1 style={tw('text-4xl font-bold text-black mb-8')}>{title}\u003C\u002Fh1>\n      \n      {\u002F* Generate QR code for the URL *\u002F}\n      \u003Cimg src={qr(url)} style={tw('w-64 h-64')} \u002F>\n      \n      \u003Cp style={tw('text-gray-600 mt-4')}>{url}\u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Props format:**\n```json\n{\n  \"title\": \"Scan Me\",\n  \"url\": \"https:\u002F\u002Fexample.com\"\n}\n```\n\n### QR Options\n\nYou can customize QR code appearance:\n\n```tsx\n\u002F\u002F Basic QR code\n\u003Cimg src={qr('https:\u002F\u002Fexample.com')} \u002F>\n\n\u002F\u002F With error correction level\n\u003Cimg src={qr('https:\u002F\u002Fexample.com', { errorCorrectionLevel: 'H' })} \u002F>\n\n\u002F\u002F With custom size\n\u003Cimg src={qr('https:\u002F\u002Fexample.com', { width: 512 })} \u002F>\n```\n\n**Error correction levels:**\n- `L` - Low (~7% correction)\n- `M` - Medium (~15% correction) - default\n- `Q` - Quartile (~25% correction)\n- `H` - High (~30% correction)\n\n## User Configuration\n\nAccess user settings from `.loopwind\u002Floopwind.json` using the `config` prop:\n\n```tsx\nexport default function BrandedTemplate({ tw, config, title }) {\n  \u002F\u002F Access custom colors from loopwind.json\n  const primaryColor = config?.colors?.brand || '#6366f1';\n  \n  return (\n    \u003Cdiv style={tw('w-full h-full p-12')}>\n      \u003Ch1 style={{ \n        ...tw('text-6xl font-bold'),\n        color: primaryColor \n      }}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**User's `.loopwind\u002Floopwind.json`:**\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"colors\": {\n    \"brand\": \"#ff6b6b\"\n  },\n  \"fonts\": {\n    \"sans\": [\"Inter\", \"system-ui\", \"sans-serif\"]\n  }\n}\n```\n\nThis allows templates to adapt to user preferences and brand guidelines.\n\n## Text on Path\n\nRender text along curves, circles, and custom paths with automatic character positioning and rotation.\n\n### Usage\n\n```tsx\nexport default function CircleText({ tw, textPath, message }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-slate-900')}>\n      {textPath.onCircle(\n        message,\n        960,  \u002F\u002F center x\n        540,  \u002F\u002F center y\n        400,  \u002F\u002F radius\n        0,    \u002F\u002F rotation offset (0-1)\n        {\n          fontSize: \"4xl\",\n          fontWeight: \"bold\",\n          color: \"white\",\n          letterSpacing: 0.05\n        }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Available Functions\n\nAll `textPath` functions return an array of positioned character elements:\n\n**`textPath.onCircle(text, cx, cy, radius, offset, options?)`**\n```tsx\n\u002F\u002F Text around a circle\ntextPath.onCircle(\"HELLO WORLD\", 960, 540, 400, 0, {\n  fontSize: \"4xl\",\n  color: \"white\"\n})\n```\n\n**`textPath.onPath(text, pathFollower, options?)`**\n```tsx\n\u002F\u002F Text along any custom path\ntextPath.onPath(\"CUSTOM PATH\", (t) => ({\n  x: 100 + t * 800,\n  y: 200 + Math.sin(t * Math.PI) * 100,\n  angle: Math.cos(t * Math.PI) * 20\n}), {\n  fontSize: \"2xl\",\n  fontWeight: \"semibold\"\n})\n```\n\n**`textPath.onQuadratic(text, p0, p1, p2, options?)`**\n```tsx\n\u002F\u002F Text along a quadratic Bezier curve\ntextPath.onQuadratic(\n  \"CURVED TEXT\",\n  { x: 200, y: 400 },   \u002F\u002F start\n  { x: 960, y: 100 },   \u002F\u002F control point\n  { x: 1720, y: 400 },  \u002F\u002F end\n  { fontSize: \"3xl\", color: \"blue-300\" }\n)\n```\n\n**`textPath.onCubic(text, p0, p1, p2, p3, options?)`**\n```tsx\n\u002F\u002F Text along a cubic Bezier curve\ntextPath.onCubic(\n  \"S-CURVE\",\n  { x: 200, y: 600 },   \u002F\u002F start\n  { x: 600, y: 400 },   \u002F\u002F control 1\n  { x: 1320, y: 800 },  \u002F\u002F control 2\n  { x: 1720, y: 600 },  \u002F\u002F end\n  { fontSize: \"3xl\", color: \"purple-300\" }\n)\n```\n\n**`textPath.onArc(text, cx, cy, radius, startAngle, endAngle, options?)`**\n```tsx\n\u002F\u002F Text along a circular arc\ntextPath.onArc(\n  \"ARC TEXT\",\n  960,   \u002F\u002F center x\n  540,   \u002F\u002F center y\n  400,   \u002F\u002F radius\n  0,     \u002F\u002F start angle (degrees)\n  180,   \u002F\u002F end angle (degrees)\n  { fontSize: \"2xl\", color: \"pink-300\" }\n)\n```\n\n### Options\n\nAll `textPath` functions accept an optional `options` object:\n\n```typescript\n{\n  fontSize?: string;      \u002F\u002F Tailwind size: \"xl\", \"2xl\", \"4xl\", etc.\n  fontWeight?: string;    \u002F\u002F Tailwind weight: \"bold\", \"semibold\", etc.\n  color?: string;         \u002F\u002F Tailwind color: \"white\", \"blue-500\", etc.\n  letterSpacing?: number; \u002F\u002F Space between characters (0-1, default: 0)\n  style?: any;           \u002F\u002F Additional inline styles\n}\n```\n\n### Examples\n\n**Animated rotating text:**\n```tsx\nexport default function RotatingText({ tw, textPath, progress }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-black')}>\n      {textPath.onCircle(\n        \"SPINNING • TEXT • \",\n        960, 540, 400,\n        progress,  \u002F\u002F Rotate based on video progress\n        { fontSize: \"3xl\", color: \"yellow-300\" }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Multiple text paths:**\n```tsx\nexport default function MultiPath({ tw, textPath }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-gradient-to-br from-slate-900 to-slate-700')}>\n      {\u002F* Text on outer circle *\u002F}\n      {textPath.onCircle(\n        \"OUTER RING\",\n        960, 540, 500, 0,\n        { fontSize: \"5xl\", fontWeight: \"bold\", color: \"white\" }\n      )}\n\n      {\u002F* Text on inner circle *\u002F}\n      {textPath.onCircle(\n        \"inner ring\",\n        960, 540, 300, 0.5,  \u002F\u002F offset by 50% for rotation\n        { fontSize: \"2xl\", color: \"white\u002F60\" }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Text following a drawn path:**\n```tsx\nexport default function PathText({ tw, textPath }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-gray-900')}>\n      {\u002F* Draw the path *\u002F}\n      \u003Csvg width=\"1920\" height=\"1080\" style={{ position: 'absolute' }}>\n        \u003Cpath\n          d=\"M 200 400 Q 960 150 1720 400\"\n          stroke=\"rgba(255,255,255,0.2)\"\n          strokeWidth={2}\n          fill=\"none\"\n        \u002F>\n      \u003C\u002Fsvg>\n\n      {\u002F* Text following the path *\u002F}\n      {textPath.onQuadratic(\n        \"FOLLOWING THE CURVE\",\n        { x: 200, y: 400 },\n        { x: 960, y: 150 },\n        { x: 1720, y: 400 },\n        { fontSize: \"3xl\", fontWeight: \"bold\", color: \"blue-300\" }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nFor animated text paths, see [Text Path Animations](\u002Fanimation#text-path-animations).\n\n## Reserved Prop Names\n\nThe following prop names are **reserved** and cannot be used in your template's `meta.props`:\n\n- `tw`, `qr`, `image`, `template` - Core helpers\n- `path`, `textPath` - Path and text helpers\n- `config`, `frame`, `progress` - System props\n\n**Why?** These names are used for loopwind's built-in helpers. Using them as prop names would cause conflicts.\n\n**Example:**\n```tsx\n\u002F\u002F ❌ BAD - 'image' is reserved\nexport const meta = {\n  props: {\n    title: \"string\",\n    image: \"string\"  \u002F\u002F Error!\n  }\n};\n\n\u002F\u002F ✅ GOOD - Use descriptive alternatives\nexport const meta = {\n  props: {\n    title: \"string\",\n    imageUrl: \"string\",    \u002F\u002F or imageSrc, photoUrl, etc.\n    logoUrl: \"string\"\n  }\n};\n```\n\nIf you try to use a reserved name, you'll get a helpful error:\n```\nTemplate uses reserved prop names: image\n\nTry renaming: \"image\" → \"imageUrl\" or \"imageSrc\"\n\nReserved names: tw, qr, image, template, path, textPath, config, frame, progress\n```\n\n## All Props Reference\n\nEvery template receives these props:\n\n```tsx\nexport default function MyTemplate({\n  \u002F\u002F Core helpers (RESERVED - cannot be used as prop names)\n  tw,        \u002F\u002F Tailwind class converter\n  qr,        \u002F\u002F QR code generator (this page)\n  template,  \u002F\u002F Template composer (this page)\n  config,    \u002F\u002F User config from loopwind.json (this page)\n  textPath,  \u002F\u002F Text on path helpers (this page)\n\n  \u002F\u002F Media helpers (RESERVED)\n  image,     \u002F\u002F Image embedder → see \u002Fimages\n  path,      \u002F\u002F Path following → see \u002Fanimation\n\n  \u002F\u002F Video-specific (RESERVED - only in video templates)\n  frame,     \u002F\u002F Current frame number → see \u002Ftemplates\n  progress,  \u002F\u002F Animation progress 0-1 → see \u002Ftemplates\n\n  \u002F\u002F Your custom props (use any names EXCEPT the reserved ones above)\n  ...props   \u002F\u002F Any props from your meta.props\n}) {\n  \u002F\u002F Your template code\n}\n```\n\n## Next Steps\n\n- [Embedding Images](\u002Fimages)\n- [Templates](\u002Ftemplates)\n- [Styling with Tailwind & shadcn\u002Fui](\u002Fstyling)\n- [Custom Fonts](\u002Ffonts)\n\n\n\n# Styling Templates\n\nStyle your templates with Tailwind utility classes and shadcn\u002Fui's beautiful design system.\n\n## Quick Start\n\n```tsx\nexport default function MyTemplate({ title, tw }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gradient-to-br from-blue-600 to-purple-700')}>\n      \u003Ch1 style={tw('text-7xl font-bold text-white')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## The `tw()` Function\n\nEvery template receives a `tw()` function that converts Tailwind classes to inline styles compatible with Satori:\n\n```tsx\n\u002F\u002F Tailwind classes\ntw('flex items-center justify-center p-8 bg-blue-500')\n\n\u002F\u002F Converts to inline styles:\n{\n  display: 'flex',\n  alignItems: 'center',\n  justifyContent: 'center',\n  padding: '2rem',\n  backgroundColor: '#3b82f6'\n}\n```\n\n### Basic Usage\n\n```tsx\nexport default function Banner({ title, subtitle, tw }) {\n  return (\n    \u003Cdiv style={tw('w-full h-full p-12 bg-gray-50')}>\n      \u003Ch1 style={tw('text-6xl font-bold text-gray-900 mb-4')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cp style={tw('text-2xl text-gray-600')}>\n        {subtitle}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Combining with Custom Styles\n\nMix Tailwind classes with custom styles using the spread operator:\n\n```tsx\nexport default function CustomGradient({ title, tw }) {\n  return (\n    \u003Cdiv\n      style={{\n        ...tw('flex flex-col items-center justify-center w-full h-full p-20'),\n        background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',\n      }}\n    >\n      \u003Ch1 style={tw('text-8xl font-bold text-white')}>{title}\u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## shadcn\u002Fui Design System\n\nloopwind uses **shadcn\u002Fui's design system** by default, providing semantic color tokens for beautiful, consistent designs.\n\n### Default Color Palette\n\nAll templates automatically have access to these semantic colors defined in `.loopwind\u002Floopwind.json`:\n\n```typescript\ncolors: {\n  \u002F\u002F Primary colors\n  primary: '#18181b',           \u002F\u002F Main brand color\n  'primary-foreground': '#fafafa',\n\n  \u002F\u002F Secondary colors\n  secondary: '#f4f4f5',         \u002F\u002F Subtle accents\n  'secondary-foreground': '#18181b',\n\n  \u002F\u002F Background\n  background: '#ffffff',        \u002F\u002F Page background\n  foreground: '#09090b',        \u002F\u002F Main text color\n\n  \u002F\u002F Muted\n  muted: '#f4f4f5',            \u002F\u002F Subtle backgrounds\n  'muted-foreground': '#71717a', \u002F\u002F Muted text\n\n  \u002F\u002F Accent\n  accent: '#f4f4f5',           \u002F\u002F Highlight color\n  'accent-foreground': '#18181b',\n\n  \u002F\u002F Destructive\n  destructive: '#ef4444',       \u002F\u002F Error\u002Fdanger states\n  'destructive-foreground': '#fafafa',\n\n  \u002F\u002F UI Elements\n  border: '#e4e4e7',           \u002F\u002F Border color\n  input: '#e4e4e7',            \u002F\u002F Input borders\n  ring: '#18181b',             \u002F\u002F Focus rings\n  card: '#ffffff',             \u002F\u002F Card background\n  'card-foreground': '#09090b',\n}\n```\n\n### Using Semantic Colors\n\n```tsx\nexport default function SemanticCard({ title, description, price, tw }) {\n  return (\n    \u003Cdiv style={tw('bg-card border border-border rounded-lg p-6')}>\n      \u003Ch2 style={tw('text-card-foreground text-2xl font-bold mb-2')}>\n        {title}\n      \u003C\u002Fh2>\n      \u003Cp style={tw('text-muted-foreground mb-4')}>\n        {description}\n      \u003C\u002Fp>\n      \u003Cdiv style={tw('text-primary text-3xl font-bold')}>\n        ${price}\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Opacity Modifiers\n\nUse Tailwind's slash syntax for opacity with any color:\n\n```tsx\nexport default function OpacityExample({ tw }) {\n  return (\n    \u003Cdiv style={tw('bg-primary\u002F50')}>          {\u002F* 50% opacity *\u002F}\n      \u003Cp style={tw('text-muted-foreground\u002F75')}> {\u002F* 75% opacity *\u002F}\n        Subtle text\n      \u003C\u002Fp>\n      \u003Cdiv style={tw('border border-border\u002F30')}> {\u002F* 30% opacity *\u002F}\n        Faint border\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Supported syntax:**\n- `bg-{color}\u002F{opacity}` - Background with opacity\n- `text-{color}\u002F{opacity}` - Text with opacity  \n- `border-{color}\u002F{opacity}` - Border with opacity\n\n### Text Hierarchy\n\n```tsx\n\u002F\u002F Primary text\ntw('text-foreground')\n\n\u002F\u002F Secondary\u002Fmuted text\ntw('text-muted-foreground')\n\n\u002F\u002F Accent\u002Fbrand text\ntw('text-primary')\n\n\u002F\u002F Destructive\u002Ferror text\ntw('text-destructive')\n```\n\n### Backgrounds\n\n```tsx\n\u002F\u002F Page background\ntw('bg-background')\n\n\u002F\u002F Card\u002Felevated surfaces\ntw('bg-card')\n\n\u002F\u002F Subtle backgrounds\ntw('bg-muted')\n\n\u002F\u002F Accent backgrounds\ntw('bg-accent')\n```\n\n## Supported Tailwind Classes\n\n### Layout\n\n- **Display**: `flex`, `inline-flex`, `block`, `inline-block`, `hidden`\n- **Flex Direction**: `flex-row`, `flex-col`, `flex-row-reverse`, `flex-col-reverse`\n- **Justify**: `justify-start`, `justify-end`, `justify-center`, `justify-between`, `justify-around`\n- **Align**: `items-start`, `items-end`, `items-center`, `items-baseline`, `items-stretch`\n\n### Spacing\n\n- **Padding**: `p-{n}`, `px-{n}`, `py-{n}`, `pt-{n}`, `pb-{n}`, `pl-{n}`, `pr-{n}`\n- **Margin**: `m-{n}`, `mx-{n}`, `my-{n}`, `mt-{n}`, `mb-{n}`, `ml-{n}`, `mr-{n}`\n- **Gap**: `gap-{n}`, `gap-x-{n}`, `gap-y-{n}`\n- **Sizes**: 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64\n\nExamples:\n```tsx\ntw('p-4')      \u002F\u002F padding: 1rem\ntw('px-8')     \u002F\u002F paddingLeft: 2rem, paddingRight: 2rem\ntw('m-6')      \u002F\u002F margin: 1.5rem\ntw('gap-4')    \u002F\u002F gap: 1rem\n```\n\n### Sizing\n\n- **Width**: `w-{n}`, `w-full`, `w-screen`, `w-1\u002F2`, `w-1\u002F3`, `w-2\u002F3`\n- **Height**: `h-{n}`, `h-full`, `h-screen`\n\nExamples:\n```tsx\ntw('w-full')   \u002F\u002F width: 100%\ntw('h-64')     \u002F\u002F height: 16rem\ntw('w-1\u002F2')    \u002F\u002F width: 50%\n```\n\n### Typography\n\n- **Font Size**: `text-xs`, `text-sm`, `text-base`, `text-lg`, `text-xl`, `text-2xl`, `text-3xl`, `text-4xl`, `text-5xl`, `text-6xl`, `text-7xl`, `text-8xl`, `text-9xl`\n- **Font Weight**: `font-thin`, `font-light`, `font-normal`, `font-medium`, `font-semibold`, `font-bold`, `font-extrabold`, `font-black`\n- **Text Align**: `text-left`, `text-center`, `text-right`\n- **Line Height**: `leading-none`, `leading-tight`, `leading-normal`, `leading-relaxed`, `leading-loose`\n\n### Colors\n\nAll standard Tailwind colors plus shadcn semantic colors:\n\n**Standard colors:**\n- `text-{color}-{shade}`, `bg-{color}-{shade}`, `border-{color}-{shade}`\n- Colors: `red`, `blue`, `green`, `yellow`, `purple`, `pink`, `gray`, `indigo`, `teal`, `orange`\n- Shades: `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`\n\n**shadcn semantic colors:**\n- `text-foreground`, `text-primary`, `text-muted-foreground`, `text-destructive`\n- `bg-background`, `bg-card`, `bg-muted`, `bg-accent`, `bg-primary`\n- `border-border`, `border-input`\n\n```tsx\ntw('text-blue-500')        \u002F\u002F Standard Tailwind color\ntw('bg-purple-600')        \u002F\u002F Standard Tailwind color\ntw('text-primary')         \u002F\u002F shadcn semantic color\ntw('bg-card')              \u002F\u002F shadcn semantic color\n```\n\n### Position & Layout\n\n- **Position**: `relative`, `absolute`, `fixed`, `sticky`\n- **Inset**: `inset-0`, `top-0`, `bottom-0`, `left-0`, `right-0`\n- **Z-Index**: `z-0`, `z-10`, `z-20`, `z-30`, `z-40`, `z-50`\n\n### Borders\n\n- **Border Width**: `border`, `border-{n}`, `border-t`, `border-b`, `border-l`, `border-r`\n- **Border Radius**: `rounded`, `rounded-sm`, `rounded-md`, `rounded-lg`, `rounded-xl`, `rounded-2xl`, `rounded-3xl`, `rounded-full`\n- **Border Color**: `border-{color}-{shade}`, `border-border`, `border-input`\n\n### Effects\n\n- **Shadow**: `shadow-sm`, `shadow`, `shadow-md`, `shadow-lg`, `shadow-xl`, `shadow-2xl`\n- **Opacity**: `opacity-0`, `opacity-25`, `opacity-50`, `opacity-75`, `opacity-100`\n\n### Filters\n\n- **Blur**: `blur-none`, `blur-sm`, `blur`, `blur-md`, `blur-lg`, `blur-xl`\n- **Brightness**: `brightness-0`, `brightness-50`, `brightness-100`, `brightness-150`, `brightness-200`\n- **Contrast**: `contrast-0`, `contrast-50`, `contrast-100`, `contrast-150`, `contrast-200`\n\n## Gradients\n\n### Linear Gradients\n\n```tsx\n\u002F\u002F Gradient direction\ntw('bg-gradient-to-r')      \u002F\u002F left to right\ntw('bg-gradient-to-br')     \u002F\u002F top-left to bottom-right\ntw('bg-gradient-to-t')      \u002F\u002F bottom to top\n\n\u002F\u002F Gradient colors\ntw('from-blue-500')         \u002F\u002F Start color\ntw('via-purple-500')        \u002F\u002F Middle color\ntw('to-pink-500')           \u002F\u002F End color\n\n\u002F\u002F Complete gradient\ntw('bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500')\n```\n\n### Gradient Examples\n\n```tsx\nexport default function GradientCard({ title, tw }) {\n  return (\n    \u003Cdiv style={tw('w-full h-full bg-gradient-to-br from-cyan-500 to-blue-600 p-12')}>\n      \u003Ch1 style={tw('text-white text-6xl font-bold')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Custom Theme Colors\n\nYou can override the default shadcn colors or add your own custom colors in `.loopwind\u002Floopwind.json`:\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#3b82f6\",\n      \"primary-foreground\": \"#ffffff\",\n      \"accent\": \"#10b981\",\n      \"brand\": \"#ff6b6b\"\n    }\n  }\n}\n```\n\nThen use these custom colors in your templates:\n\n```tsx\ntw('text-brand')    \u002F\u002F Uses your custom brand color\ntw('bg-primary')    \u002F\u002F Uses your custom primary color\ntw('bg-accent')     \u002F\u002F Uses your custom accent color\n```\n\n## Auto-Detection from tailwind.config.js\n\nloopwind automatically detects and loads your project's Tailwind configuration:\n\n```\nyour-project\u002F\n├── tailwind.config.js  ← Automatically detected\n└── .loopwind\u002F\n    ├── loopwind.json\n    └── templates\u002F\n```\n\nThis includes:\n- Custom colors\n- Custom spacing values\n- Custom fonts\n- Theme extensions\n- Custom utilities\n\n## Complete Example\n\n```tsx\nexport default function ModernCard({ \n  tw, \n  image,\n  title, \n  description, \n  category,\n  author,\n  avatar \n}) {\n  return (\n    \u003Cdiv style={tw('w-full h-full bg-card')}>\n      {\u002F* Hero image *\u002F}\n      \u003Cdiv style={tw('relative h-2\u002F3')}>\n        \u003Cimg \n          src={image(hero)} \n          style={tw('w-full h-full object-cover')}\n        \u002F>\n        {\u002F* Category badge *\u002F}\n        \u003Cdiv style={tw('absolute top-4 left-4 bg-primary\u002F90 backdrop-blur px-4 py-2 rounded-full')}>\n          \u003Cspan style={tw('text-sm font-semibold text-primary-foreground')}>\n            {category}\n          \u003C\u002Fspan>\n        \u003C\u002Fdiv>\n      \u003C\u002Fdiv>\n      \n      {\u002F* Content *\u002F}\n      \u003Cdiv style={tw('h-1\u002F3 p-8 flex flex-col justify-between')}>\n        \u003Cdiv>\n          \u003Ch2 style={tw('text-3xl font-bold text-foreground mb-2')}>\n            {title}\n          \u003C\u002Fh2>\n          \u003Cp style={tw('text-muted-foreground line-clamp-2')}>\n            {description}\n          \u003C\u002Fp>\n        \u003C\u002Fdiv>\n        \n        {\u002F* Author *\u002F}\n        \u003Cdiv style={tw('flex items-center gap-3')}>\n          \u003Cimg \n            src={image(avatar)} \n            style={tw('w-10 h-10 rounded-full border-2 border-border')}\n          \u002F>\n          \u003Cspan style={tw('text-sm text-muted-foreground')}>\n            {author}\n          \u003C\u002Fspan>\n        \u003C\u002Fdiv>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Why This Approach?\n\n- **Semantic naming**: `text-primary` instead of `text-blue-600`\n- **Consistency**: All templates use the same design language\n- **Flexibility**: Easy to customize entire theme\n- **Accessibility**: Pre-tested color contrasts\n- **Modern**: Same system as shadcn\u002Fui components\n- **Familiar**: Standard Tailwind syntax\n\n## Next Steps\n\n- [Custom Fonts](\u002Ffonts)\n- [Built-in Helpers](\u002Fhelpers)\n- [Templates](\u002Ftemplates)\n- [Embedding Images](\u002Fimages)\n\n\n\n# Font Handling in loopwind\n\nThe recommended way to use fonts is through `loopwind.json` - configure fonts once, use everywhere.\n\n## Using Fonts from loopwind.json (Recommended)\n\nConfigure fonts in your `.loopwind\u002Floopwind.json` and use Tailwind classes in templates.\n\n### Simple Setup\n\nDefine font families in `.loopwind\u002Floopwind.json` without loading custom fonts (uses system fonts):\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": [\"Inter\", \"system-ui\", \"-apple-system\", \"sans-serif\"],\n    \"serif\": [\"Georgia\", \"serif\"],\n    \"mono\": [\"Courier New\", \"monospace\"]\n  }\n}\n```\n\n**Template usage:**\n```tsx\nexport default function({ title, tw }) {\n  return (\n    \u003Cdiv style={tw('w-full h-full')}>\n      {\u002F* Uses fonts.sans from loopwind.json *\u002F}\n      \u003Ch1 style={tw('font-sans text-6xl font-bold')}>\n        {title}\n      \u003C\u002Fh1>\n\n      {\u002F* Uses fonts.mono from loopwind.json *\u002F}\n      \u003Ccode style={tw('font-mono text-sm')}>\n        {code}\n      \u003C\u002Fcode>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Result:** Uses system fonts, falls back to Inter for rendering.\n\n### Complete Setup (With Font Files)\n\nLoad custom font files for brand-specific typography in `.loopwind\u002Floopwind.json`:\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"system-ui\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FInter-Bold.woff\", \"weight\": 700 }\n      ]\n    },\n    \"mono\": {\n      \"family\": [\"JetBrains Mono\", \"monospace\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FJetBrainsMono-Regular.woff\", \"weight\": 400 }\n      ]\n    }\n  }\n}\n```\n\n**Project structure:**\n```\nyour-project\u002F\n├── .loopwind\u002F\n│   ├── loopwind.json\n│   └── templates\u002F\n└── fonts\u002F\n    ├── Inter-Regular.woff\n    ├── Inter-Bold.woff\n    └── JetBrainsMono-Regular.woff\n```\n\n**Template usage (same as before):**\n```tsx\n\u003Ch1 style={tw('font-sans font-bold')}>\n  {\u002F* Uses Inter Bold from loopwind.json *\u002F}\n  {title}\n\u003C\u002Fh1>\n```\n\n**Available classes:**\n- `font-sans` - Uses `fonts.sans` from loopwind.json\n- `font-serif` - Uses `fonts.serif` from loopwind.json\n- `font-mono` - Uses `fonts.mono` from loopwind.json\n\n**Supported formats:**\n- ✅ **WOFF** (`.woff`) - Recommended for best compatibility\n- ✅ **TTF** (`.ttf`) - Also supported\n- ✅ **OTF** (`.otf`) - Also supported\n- ❌ **WOFF2** (`.woff2`) - Not supported by renderer\n\n## Font Loading Priority\n\nloopwind loads fonts in this order:\n\n1. **loopwind.json fonts** (if configured with `files`)\n2. **Bundled Inter fonts** (included with CLI)\n\nThis ensures fonts work out of the box with no configuration.\n\n## Default Fonts\n\nIf no fonts are configured, loopwind uses **Inter** (Regular 400, Bold 700) which is bundled with the CLI. This means fonts work offline with no configuration required.\n\n## Best Practices\n\n1. ✅ **Use loopwind.json for project-wide fonts** - Configure once, use everywhere\n2. ✅ **Use font classes** - `tw('font-sans')` instead of `fontFamily: 'Inter'`\n3. ✅ **Include fallbacks** - Always add system fonts: `[\"Inter\", \"system-ui\", \"sans-serif\"]`\n4. ✅ **Match names** - First font in `family` array is used as the loaded font name\n5. ✅ **Relative paths** - Font paths are relative to `loopwind.json` location\n\n## Examples\n\n### Minimal Setup (System Fonts)\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": [\"Inter\", \"-apple-system\", \"sans-serif\"]\n  }\n}\n```\nUses system Inter if available, falls back to Noto Sans for rendering.\n\n### Brand Fonts Setup\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Montserrat\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FMontserrat-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FMontserrat-Bold.woff\", \"weight\": 700 }\n      ]\n    }\n  }\n}\n```\nLoads and uses Montserrat for all templates.\n\n### Multi-Font Setup\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FInter-Bold.woff\", \"weight\": 700 }\n      ]\n    },\n    \"serif\": {\n      \"family\": [\"Playfair Display\", \"serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FPlayfair-Regular.woff\", \"weight\": 400 }\n      ]\n    },\n    \"mono\": {\n      \"family\": [\"Fira Code\", \"monospace\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FFiraCode-Regular.woff\", \"weight\": 400 }\n      ]\n    }\n  }\n}\n```\nLoads different fonts for each style class.\n\n### External Font URLs\nLoad fonts directly from CDNs without downloading files:\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        {\n          \"path\": \"https:\u002F\u002Funpkg.com\u002F@fontsource\u002Finter@5.0.18\u002Ffiles\u002Finter-latin-400-normal.woff\",\n          \"weight\": 400\n        },\n        {\n          \"path\": \"https:\u002F\u002Funpkg.com\u002F@fontsource\u002Finter@5.0.18\u002Ffiles\u002Finter-latin-700-normal.woff\",\n          \"weight\": 700\n        }\n      ]\n    }\n  }\n}\n```\n\nYou can also mix local and external fonts:\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        {\n          \"path\": \"https:\u002F\u002Funpkg.com\u002F@fontsource\u002Finter@5.0.18\u002Ffiles\u002Finter-latin-700-normal.woff\",\n          \"weight\": 700\n        }\n      ]\n    }\n  }\n}\n```\n\n**Note:** Use WOFF format (`.woff`) for best compatibility. WOFF2 is not supported by the underlying renderer.\n\n## Performance\n\n- ✅ **Font caching** - Fonts load once and are cached for all renders\n- ✅ **Video optimization** - 90-frame video loads fonts once, not 90 times\n- ✅ **No CDN delays** - Local fonts load instantly\n\n## Next Steps\n\n- [Styling with Tailwind & shadcn\u002Fui](\u002Fstyling)\n- [Built-in Helpers](\u002Fhelpers)\n- [Templates](\u002Ftemplates)\n- [Embedding Images](\u002Fimages)\n\n\n# loopwind.json\n\nConfigure colors and fonts for all your templates in `.loopwind\u002Floopwind.json`.\n\n## File Location\n\n```\nyour-project\u002F\n├── .loopwind\u002F\n│   ├── loopwind.json     ← Configuration file\n│   └── templates\u002F\n```\n\n## Minimal Example\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#3b82f6\",\n      \"background\": \"#ffffff\"\n    }\n  }\n}\n```\n\n## Theme Colors\n\n### Default shadcn\u002Fui Palette\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#18181b\",\n      \"primary-foreground\": \"#fafafa\",\n      \n      \"secondary\": \"#f4f4f5\",\n      \"secondary-foreground\": \"#18181b\",\n      \n      \"background\": \"#ffffff\",\n      \"foreground\": \"#09090b\",\n      \n      \"muted\": \"#f4f4f5\",\n      \"muted-foreground\": \"#71717a\",\n      \n      \"accent\": \"#f4f4f5\",\n      \"accent-foreground\": \"#18181b\",\n      \n      \"destructive\": \"#ef4444\",\n      \"destructive-foreground\": \"#fafafa\",\n      \n      \"border\": \"#e4e4e7\",\n      \"input\": \"#e4e4e7\",\n      \"ring\": \"#18181b\",\n      \n      \"card\": \"#ffffff\",\n      \"card-foreground\": \"#09090b\"\n    }\n  }\n}\n```\n\n### Custom Colors\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#3b82f6\",\n      \"brand\": \"#ff6b6b\",\n      \"success\": \"#22c55e\",\n      \"warning\": \"#f59e0b\"\n    }\n  }\n}\n```\n\n**Use in templates:**\n\n```tsx\ntw('text-brand')      \u002F\u002F #ff6b6b\ntw('bg-success')      \u002F\u002F #22c55e\ntw('border-warning')  \u002F\u002F #f59e0b\n```\n\n## Fonts\n\n### Simple (System Fonts)\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": [\"Inter\", \"system-ui\", \"sans-serif\"],\n    \"serif\": [\"Georgia\", \"serif\"],\n    \"mono\": [\"Courier New\", \"monospace\"]\n  }\n}\n```\n\n### With Font Files\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"system-ui\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FInter-Bold.woff\", \"weight\": 700 }\n      ]\n    }\n  }\n}\n```\n\nPaths are relative to `loopwind.json`.\n\n**Supported formats:**\n- ✅ WOFF (`.woff`)\n- ✅ TTF (`.ttf`)\n- ✅ OTF (`.otf`)\n- ❌ WOFF2 (`.woff2`)\n\n### External URLs\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        {\n          \"path\": \"https:\u002F\u002Funpkg.com\u002F@fontsource\u002Finter@5.0.18\u002Ffiles\u002Finter-latin-400-normal.woff\",\n          \"weight\": 400\n        }\n      ]\n    }\n  }\n}\n```\n\n## Complete Example\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#6366f1\",\n      \"primary-foreground\": \"#ffffff\",\n      \"background\": \"#ffffff\",\n      \"foreground\": \"#0f172a\",\n      \"muted\": \"#f1f5f9\",\n      \"muted-foreground\": \"#64748b\",\n      \"border\": \"#e2e8f0\",\n      \"card\": \"#ffffff\",\n      \"brand\": \"#8b5cf6\"\n    }\n  },\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FInter-Bold.woff\", \"weight\": 700 }\n      ]\n    },\n    \"serif\": {\n      \"family\": [\"Playfair Display\", \"serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FPlayfair-Regular.woff\", \"weight\": 400 }\n      ]\n    }\n  }\n}\n```\n\n## Schema\n\n```typescript\n{\n  \"theme\"?: {\n    \"colors\"?: {\n      [name: string]: string;  \u002F\u002F Hex color\n    }\n  },\n  \"fonts\"?: {\n    [class: string]: string[] | {\n      family: string[];\n      files: Array\u003C{\n        path: string;    \u002F\u002F Local or URL\n        weight: number;  \u002F\u002F 100-900\n      }>;\n    }\n  }\n}\n```\n\n## Auto-Detection\n\nIf no `loopwind.json` exists, loopwind auto-detects `tailwind.config.js`:\n\n```\nyour-project\u002F\n├── tailwind.config.js  ← Auto-detected\n└── .loopwind\u002F\n    └── templates\u002F\n```\n\n**Priority:**\n1. `.loopwind\u002Floopwind.json`\n2. `tailwind.config.js`\n3. Built-in defaults\n\n## Next Steps\n\n- [Styling](\u002Fstyling) - Use colors in templates\n- [Fonts](\u002Ffonts) - Font configuration details\n- [Getting Started](\u002Fgetting-started) - Setup guide\n\n\n\n\n","# loopwind\n\nA CLI tool for generating images and videos from JSX templates using Tailwind CSS and Satori. Templates live in a `.loopwind\u002F` directory alongside your codebase.\n\n## Quick Start\n\nLoopwind is a CLI tool for generating images and videos with React and Tailwind CSS. It's designed to be used with AI Agents and Cursor.\n\n### Installation\n\n```bash\ncurl -fsSL https:\u002F\u002Floopwind.dev\u002Finstall.sh | bash\n```\n\nThis installs loopwind to `~\u002F.loopwind\u002F` and adds the `loopwind` command to your PATH. Requires Node.js 18+.\n\n### Initialize in Your Project\n\nNavigate to any project folder and run:\n\n```bash\nloopwind init\n```\n\nThis creates `.loopwind\u002Floopwind.json` — a configuration file with your project's theme colors.\n\n### Install AI Skill\n\nGive your AI agent expertise in loopwind:\n\n```bash\nnpx skills add https:\u002F\u002Floopwind.dev\u002Fskill.md\n```\n\nThis installs a skill that teaches Claude Code (or other AI agents) how to create templates, use animation classes, and render images\u002Fvideos.\n\n### Use with Claude Code\n\nWith the loopwind skill installed, Claude has deep knowledge of template structure, animation classes, and Tailwind CSS patterns for Satori. Just ask:\n\n```\nCreate an OG image for my blog post about TypeScript tips\n```\n\n```\nCreate an animated intro video for my YouTube channel\n```\n\nClaude will create optimized templates and render the final output automatically.\n\n### Install a Template\n\n#### 1. Official Templates\n\n```bash\nloopwind add image-template\nloopwind add video-template\n```\n\nTemplates are installed to: `.loopwind\u002F\u003Ctemplate>\u002F`\n\n**Benefits:**\n- Templates are local to your project\n- Version controlled with your project\n- Easy to share within your team\n\n### Render a Template\n\n```bash\nloopwind render template-name '{\"title\":\"Hello World\",\"subtitle\":\"Built with loopwind\"}'\n```\nor use a local props file:\n\n```bash\nloopwind render template-name props.json\n```\n## Commands\n\n### `loopwind add \u003Csource>`\n\nInstall a template from various sources:\n\n```bash\n# Official templates\nloopwind add image-template\nloopwind add video-template\n```\nThese will be downloaded to `.loopwind\u002F\u003Ctemplate>\u002F`\n\n### `loopwind list`\n\nList all installed templates:\n\n```bash\nloopwind list\n```\n\n### `loopwind render \u003Ctemplate> \u003Cprops> [options]`\n\nRender an image or video:\n\n```bash\n# Image with inline props\nloopwind render banner-hero '{\"title\":\"Hello World\"}'\n\n# Video with inline props\nloopwind render video-intro '{\"title\":\"Welcome\"}'\n\n# Using a props file\nloopwind render banner-hero props.json\n\n# Custom output\nloopwind render banner-hero '{\"title\":\"Hello\"}' --out custom-name.png\n\n# Different format\nloopwind render banner-hero '{\"title\":\"Hello\"}' --format jpeg\n```\n\nOptions:\n- `--out, -o` - Output filename (default: `\u003Ctemplate>.\u003Cext>` in current directory)\n- `--format` - Output format: `png`, `jpeg`, `svg` (images only)\n- `--quality` - JPEG quality 1-100 (default: 92)\n\n### `loopwind validate \u003Ctemplate>`\n\nValidate a template:\n\n```bash\nloopwind validate banner-hero\n```\n\nChecks:\n- Template file exists and is valid React\n- `export const meta` exists and is valid\n- Required props are defined\n- Fonts exist (if specified)\n\n### `loopwind init`\n\nInitialize loopwind in a project:\n\n```bash\nloopwind init\n```\n\nCreates `.loopwind\u002Floopwind.json` configuration file with your project's design tokens.\n\n## Animation Classes (Video Only)\n\nUse Tailwind-style animation classes - no manual calculations needed:\n\n```tsx\n\u002F\u002F Fade in: starts at 0ms, lasts 500ms\n\u003Ch1 style={tw('enter-fade-in\u002F0\u002F500')}>Hello\u003C\u002Fh1>\n\n\u002F\u002F Loop: ping effect every 500ms\n\u003Cdiv style={tw('loop-ping\u002F500')} \u002F>\n\n\u002F\u002F Combined with easing\n\u003Ch1 style={tw('ease-out enter-bounce-in-up\u002F0\u002F600')}>Title\u003C\u002Fh1>\n```\n\nSee [Animation](\u002Fanimation) for the complete reference.\n\n## Next Steps\n\n- [Templates](\u002Ftemplates)\n- [Embedding Images](\u002Fimages)\n- [Animation](\u002Fanimation)\n- [Helpers (QR, Template Composition)](\u002Fhelpers)\n- [Styling with Tailwind & shadcn\u002Fui](\u002Fstyling)\n- [Custom Fonts](\u002Ffonts)\n- [AI Agent Integration](\u002Fagents)\n\n\n\n# Templates\n\nTemplates are React components that define your images and videos. They use Tailwind CSS for styling and export metadata that loopwind uses for rendering.\n\n## Installing Templates\n\n### Official Templates\n\n```bash\nloopwind add image-template\nloopwind add video-template\n```\n\nTemplates are installed to `.loopwind\u002F\u003Ctemplate-name>\u002F`.\n\n### Direct URLs\n\n```bash\nloopwind add https:\u002F\u002Fexample.com\u002Ftemplates\u002Fmy-template.json\n```\n\n### Local Filesystem\n\n```bash\nloopwind add .\u002Fmy-templates\u002Fbanner-hero\nloopwind add \u002FUsers\u002Fyou\u002Ftemplates\u002Fsocial-card\n```\n\n---\n\n## Image Templates\n\n### Basic Structure\n\n```tsx\n\u002F\u002F .loopwind\u002Fbanner-hero\u002Ftemplate.tsx\nexport const meta = {\n  name: \"banner-hero\",\n  type: \"image\",\n  description: \"Hero banner with gradient background\",\n  size: { width: 1600, height: 900 },\n  props: { title: \"string\", subtitle: \"string\" }\n};\n\nexport default function BannerHero({ title, subtitle, tw }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col justify-center items-center w-full h-full bg-gradient-to-br from-purple-600 to-blue-500 p-12')}>\n      \u003Ch1 style={tw('text-7xl font-bold text-white mb-4')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cp style={tw('text-2xl text-white\u002F80')}>\n        {subtitle}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Rendering Images\n\n```bash\n# Render with inline props\nloopwind render banner-hero '{\"title\":\"Hello World\",\"subtitle\":\"Welcome\"}'\n\n# Custom output name\nloopwind render banner-hero '{\"title\":\"Hello\"}' --out custom-name.png\n\n# Different format\nloopwind render banner-hero '{\"title\":\"Hello\"}' --format jpeg --quality 95\n\n# Use a props file\nloopwind render banner-hero props.json\n```\n\n### Output Formats\n\n| Format | Best For |\n|--------|----------|\n| **PNG** (default) | Transparency, sharp text, logos |\n| **JPEG** | Photographs, gradients, smaller files |\n| **SVG** | Vector graphics, scalable designs |\n\n---\n\n## Video Templates\n\n### Basic Structure\n\n```tsx\n\u002F\u002F .loopwind\u002Fvideo-intro\u002Ftemplate.tsx\nexport const meta = {\n  name: \"video-intro\",\n  type: \"video\",\n  description: \"Animated intro with bounce-in title\",\n  size: { width: 1920, height: 1080 },\n  video: { fps: 30, duration: 3 },\n  props: { title: \"string\" }\n};\n\nexport default function VideoIntro({ tw, title }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gradient-to-br from-blue-600 to-purple-700')}>\n      \u003Ch1 style={tw('text-8xl font-bold text-white ease-out enter-bounce-in-up\u002F0\u002F600')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Rendering Videos\n\n```bash\n# Render with inline props\nloopwind render video-intro '{\"title\":\"Welcome!\"}' --out intro.mp4\n\n# Faster encoding with FFmpeg\nloopwind render video-intro '{\"title\":\"Welcome!\"}' --ffmpeg\n\n# Higher quality (lower CRF = better)\nloopwind render video-intro '{\"title\":\"Welcome!\"}' --crf 18\n```\n\n### FPS and Duration\n\n```tsx\nvideo: { fps: 30, duration: 3 }  \u002F\u002F 90 frames total\n```\n\n| FPS | Use Case |\n|-----|----------|\n| **24** | Cinematic look, smaller files |\n| **30** | Standard web video |\n| **60** | Smooth animations |\n\n### Video-Specific Props\n\nTemplates receive these additional props:\n\n- **`frame`** - Current frame number (0 to totalFrames - 1)\n- **`progress`** - Animation progress from 0 to 1\n\n```tsx\nexport default function MyVideo({ frame, progress }) {\n  \u002F\u002F frame: 0, 1, 2, ... 89 (for 3s @ 30fps)\n  \u002F\u002F progress: 0.0 at start, 0.5 at middle, 1.0 at end\n}\n```\n\n### Encoding Options\n\n| Encoder | Command | Use Case |\n|---------|---------|----------|\n| **WASM** (default) | `loopwind render ...` | CI\u002FCD, no dependencies |\n| **FFmpeg** | `loopwind render ... --ffmpeg` | Faster, smaller files |\n\nInstall FFmpeg: `brew install ffmpeg` (macOS)\n\n---\n\n## Animation Classes\n\nUse Tailwind-style animation classes for videos:\n\n```tsx\n\u002F\u002F Enter animations: enter-{type}\u002F{delay}\u002F{duration}\n\u003Ch1 style={tw('enter-fade-in\u002F0\u002F500')}>Fade in at start\u003C\u002Fh1>\n\u003Ch1 style={tw('enter-bounce-in-up\u002F300\u002F400')}>Bounce in after 300ms\u003C\u002Fh1>\n\n\u002F\u002F Exit animations: exit-{type}\u002F{start}\u002F{duration}\n\u003Cdiv style={tw('exit-fade-out\u002F2500\u002F500')}>Fade out at 2.5s\u003C\u002Fdiv>\n\n\u002F\u002F Loop animations: loop-{type}\u002F{duration}\n\u003Cdiv style={tw('loop-float\u002F1000')}>Continuous floating\u003C\u002Fdiv>\n\u003Cdiv style={tw('loop-spin\u002F1000')}>Spinning\u003C\u002Fdiv>\n\n\u002F\u002F Easing\n\u003Ch1 style={tw('ease-out enter-slide-left\u002F0\u002F500')}>Smooth slide\u003C\u002Fh1>\n```\n\nSee the full [Animation documentation](\u002Fanimation) for all classes.\n\n---\n\n## Common Sizes\n\n### Social Media\n- **Twitter\u002FX Card**: 1200x675\n- **Facebook\u002FOG**: 1200x630\n- **Instagram Post**: 1080x1080\n- **LinkedIn Post**: 1200x627\n\n### Web Graphics\n- **Hero Banner**: 1920x1080\n- **Blog Header**: 1600x900\n- **Thumbnail**: 640x360\n\n---\n\n## Example Templates\n\n### Open Graph Image\n\n```tsx\nexport const meta = {\n  name: \"og-image\",\n  type: \"image\",\n  size: { width: 1200, height: 630 },\n  props: { title: \"string\", description: \"string\" }\n};\n\nexport default function OGImage({ tw, image, title, description }) {\n  return (\n    \u003Cdiv style={tw('flex w-full h-full bg-white')}>\n      \u003Cdiv style={tw('flex-1 flex flex-col justify-between p-12')}>\n        \u003Cimg src={image('logo.svg')} style={tw('h-12 w-auto')} \u002F>\n        \u003Cdiv>\n          \u003Ch1 style={tw('text-5xl font-bold text-gray-900 mb-4')}>{title}\u003C\u002Fh1>\n          \u003Cp style={tw('text-xl text-gray-600')}>{description}\u003C\u002Fp>\n        \u003C\u002Fdiv>\n        \u003Cp style={tw('text-gray-400')}>yoursite.com\u003C\u002Fp>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Animated Intro\n\n```tsx\nexport const meta = {\n  name: \"animated-intro\",\n  type: \"video\",\n  size: { width: 1920, height: 1080 },\n  video: { fps: 60, duration: 3 },\n  props: { title: \"string\", subtitle: \"string\" }\n};\n\nexport default function AnimatedIntro({ tw, title, subtitle }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col items-center justify-center w-full h-full bg-background')}>\n      \u003Ch1 style={tw('text-8xl font-bold text-foreground ease-out enter-bounce-in-up\u002F0\u002F400')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cp style={tw('text-2xl text-muted-foreground mt-4 ease-out enter-fade-in-up\u002F300\u002F400')}>\n        {subtitle}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n---\n\n## Next Steps\n\n- [Layouts](\u002Flayouts) - Wrap templates with reusable layouts\n- [Embedding Images](\u002Fimages) - Using the `image()` helper\n- [Animation](\u002Fanimation) - Full animation reference\n- [Styling](\u002Fstyling) - Tailwind & shadcn\u002Fui integration\n- [Fonts](\u002Ffonts) - Custom fonts\n\n\n# Layouts\n\nLayouts let you wrap templates with consistent headers, footers, and styling. A child template specifies a layout in its meta, and the layout receives the child content as a `children` prop.\n\n## Basic Usage\n\n### Layout Template\n\nCreate a layout template that receives `children`:\n\n```tsx\n\u002F\u002F .loopwind\u002Fbase-layout\u002Ftemplate.tsx\nexport const meta = {\n  name: 'base-layout',\n  type: 'image',\n  size: { width: 1200, height: 630 },\n  props: {},\n};\n\nexport default function BaseLayout({ tw, children }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col w-full h-full bg-background')}>\n      {\u002F* Header *\u002F}\n      \u003Cdiv style={tw('flex items-center px-8 py-4 border-b border-border')}>\n        \u003Cspan style={tw('text-2xl font-bold text-primary')}>loopwind\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n\n      {\u002F* Content slot *\u002F}\n      \u003Cdiv style={tw('flex flex-1')}>\n        {children}\n      \u003C\u002Fdiv>\n\n      {\u002F* Footer *\u002F}\n      \u003Cdiv style={tw('flex items-center justify-between px-8 py-4 border-t border-border')}>\n        \u003Cspan style={tw('text-muted-foreground')}>loopwind.dev\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Usage in Templates\n\nReference the layout using a relative path:\n\n```tsx\n\u002F\u002F .loopwind\u002Fblog-post\u002Ftemplate.tsx\nexport const meta = {\n  name: 'blog-post',\n  type: 'image',\n  layout: '..\u002Fbase-layout', \u002F\u002F Layout controls size\n  props: {\n    title: 'string',\n    excerpt: 'string',\n  },\n};\n\nexport default function BlogPost({ tw, title, excerpt }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col justify-center p-12')}>\n      \u003Ch1 style={tw('text-5xl font-bold text-foreground mb-4 text-balance')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cp style={tw('text-xl text-muted-foreground leading-relaxed')}>\n        {excerpt}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Render\n\n```bash\nloopwind render blog-post '{\"title\":\"Hello World\",\"excerpt\":\"My first post\"}'\n```\n\nThe output uses the layout's size (1200x630) with the child content inside.\n\n---\n\n## Key Concepts\n\n### Size\n\nWhen using a layout, the **layout's size** controls the final output dimensions. The child template doesn't need a `size` property.\n\n### Path Resolution\n\nUse relative paths to reference layouts:\n\n```tsx\nlayout: '..\u002Fbase-layout'      \u002F\u002F Sibling directory\nlayout: '.\u002Fshared\u002Flayout'     \u002F\u002F Subdirectory\nlayout: '..\u002F..\u002Flayouts\u002Fmain'  \u002F\u002F Parent's sibling\n```\n\n### Props Flow\n\nThe layout receives:\n- All standard helpers (`tw`, `image`, `qr`, `template`, etc.)\n- `children` prop containing the rendered child content\n- Animation context (`frame`, `progress`) for video layouts\n\n```tsx\nexport default function Layout({ tw, children, frame, progress }) {\n  \u002F\u002F tw, image, qr, template, path, textPath all available\n  return (\n    \u003Cdiv style={tw('flex w-full h-full')}>\n      {children}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n---\n\n## Video Layouts\n\nLayouts work with video templates. Both the layout and child can use animations:\n\n```tsx\n\u002F\u002F .loopwind\u002Fvideo-layout\u002Ftemplate.tsx\nexport const meta = {\n  name: 'video-layout',\n  type: 'video',\n  size: { width: 1920, height: 1080 },\n  video: { fps: 60, duration: 4 },\n  props: {},\n};\n\nexport default function VideoLayout({ tw, children }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col w-full h-full bg-background')}>\n      {\u002F* Animated header *\u002F}\n      \u003Cdiv style={tw('flex items-center px-12 py-6 ease-out enter-slide-down\u002F0\u002F500')}>\n        \u003Cspan style={tw('text-3xl font-bold text-primary')}>loopwind\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n\n      {\u002F* Content *\u002F}\n      \u003Cdiv style={tw('flex flex-1')}>\n        {children}\n      \u003C\u002Fdiv>\n\n      {\u002F* Animated footer *\u002F}\n      \u003Cdiv style={tw('flex px-12 py-6 ease-out enter-fade-in\u002F500\u002F400')}>\n        \u003Cspan style={tw('text-muted-foreground')}>loopwind.dev\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n---\n\n## Example: Consistent OG Images\n\nCreate a layout for all your OG images:\n\n```tsx\n\u002F\u002F .loopwind\u002Fog-layout\u002Ftemplate.tsx\nexport const meta = {\n  name: 'og-layout',\n  type: 'image',\n  size: { width: 1200, height: 630 },\n  props: {},\n};\n\nexport default function OGLayout({ tw, image, children }) {\n  return (\n    \u003Cdiv style={tw('flex w-full h-full bg-background')}>\n      {\u002F* Content area *\u002F}\n      \u003Cdiv style={tw('flex flex-col flex-1 p-12')}>\n        {\u002F* Logo *\u002F}\n        \u003Cdiv style={tw('flex items-center gap-3 mb-auto')}>\n          \u003Cimg src={image('logo.svg')} style={tw('h-10 w-auto')} \u002F>\n          \u003Cspan style={tw('text-2xl font-bold')}>MyBrand\u003C\u002Fspan>\n        \u003C\u002Fdiv>\n\n        {\u002F* Slot for page-specific content *\u002F}\n        \u003Cdiv style={tw('flex flex-1 items-center')}>\n          {children}\n        \u003C\u002Fdiv>\n\n        {\u002F* Domain *\u002F}\n        \u003Cspan style={tw('text-muted-foreground mt-auto')}>mybrand.com\u003C\u002Fspan>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nThen create page-specific templates:\n\n```tsx\n\u002F\u002F .loopwind\u002Fog-blog\u002Ftemplate.tsx\nexport const meta = {\n  name: 'og-blog',\n  type: 'image',\n  layout: '..\u002Fog-layout',\n  props: {\n    title: 'string',\n    author: 'string',\n  },\n};\n\nexport default function OGBlog({ tw, title, author }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col')}>\n      \u003Cspan style={tw('text-sm text-muted-foreground uppercase tracking-wider mb-2')}>\n        Blog Post\n      \u003C\u002Fspan>\n      \u003Ch1 style={tw('text-4xl font-bold text-foreground mb-4 text-balance')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cspan style={tw('text-muted-foreground')}>By {author}\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n---\n\n## Next Steps\n\n- [Templates](\u002Ftemplates) - Template structure and metadata\n- [Animation](\u002Fanimation) - Animation classes for video layouts\n- [Helpers](\u002Fhelpers) - Using image(), qr(), and template()\n\n\n# Embedding Images\n\nUse the `image()` helper to embed images in your templates. It supports loading from props, template directories, and URLs.\n\n## Prop-based Images\n\nPass the prop name to load an image path from props:\n\n```tsx\nexport const meta = {\n  name: \"product-card\",\n  type: \"image\",\n  size: { width: 1200, height: 630 },\n  props: {\n    title: \"string\",\n    background: \"string?\"\n  }\n};\n\nexport default function ProductCard({ tw, image, title, background }) {\n  \u002F\u002F Use fallback if no background prop provided\n  const bgSrc = background\n    ? image('background')\n    : 'https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1557682250-33bd709cbe85?w=1200';\n\n  return (\n    \u003Cdiv style={tw('relative w-full h-full')}>\n      \u003Cimg\n        src={bgSrc}\n        style={tw('absolute inset-0 w-full h-full object-cover')}\n      \u002F>\n      \u003Cdiv style={tw('relative z-10 p-12')}>\n        \u003Ch1 style={tw('text-6xl font-bold text-white')}>{title}\u003C\u002Fh1>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nThe `image('background')` helper loads from the `background` prop value (file path or URL).\n\n## Direct File Images\n\nLoad images directly from your template directory by including the file extension:\n\n```tsx\nexport default function ChangelogItem({ tw, image, text }) {\n  return (\n    \u003Cdiv style={tw('flex items-center gap-4')}>\n      {\u002F* Load check.svg from template directory *\u002F}\n      \u003Cimg\n        src={image('check.svg')}\n        style={tw('w-6 h-6')}\n      \u002F>\n      \u003Cspan style={tw('text-lg')}>{text}\u003C\u002Fspan>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nYou can also use subdirectories:\n\n```tsx\n\u003Cimg src={image('assets\u002Ficons\u002Fstar.svg')} \u002F>\n\u003Cimg src={image('shared\u002Flogo.png')} \u002F>\n```\n\n**Template directory structure:**\n```\n.loopwind\u002Fmy-template\u002F\n├── template.tsx\n├── check.svg           ← image('check.svg')\n└── assets\u002F\n    └── icons\u002F\n        └── star.svg    ← image('assets\u002Ficons\u002Fstar.svg')\n```\n\n## URLs\n\nThe `image()` helper also supports loading images from URLs:\n\n```json\n{\n  \"background\": \"https:\u002F\u002Fexample.com\u002Fimage.jpg\"\n}\n```\n\n## Supported Formats\n\n- **JPEG** (`.jpg`, `.jpeg`)\n- **PNG** (`.png`)\n- **GIF** (`.gif`)\n- **WebP** (`.webp`)\n- **SVG** (`.svg`)\n\n## Image Positioning\n\nUse Tailwind's object-fit utilities:\n\n```tsx\nexport default function ImageGrid({ tw, image, img1, img2, img3 }) {\n  return (\n    \u003Cdiv style={tw('flex gap-4 w-full h-full p-8 bg-gray-100')}>\n      {\u002F* Cover - fills entire area, may crop *\u002F}\n      \u003Cimg\n        src={image('img1')}\n        style={tw('w-full h-full object-cover rounded-lg')}\n      \u002F>\n\n      {\u002F* Contain - fits within area, may letterbox *\u002F}\n      \u003Cimg\n        src={image('img2')}\n        style={tw('w-full h-full object-contain')}\n      \u002F>\n\n      {\u002F* Fill - stretches to fill *\u002F}\n      \u003Cimg\n        src={image('img3')}\n        style={tw('w-full h-full object-fill')}\n      \u002F>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Troubleshooting\n\n### Images Not Loading\n\nCheck file paths are relative to the props file:\n\n```json\n{\n  \"background\": \".\u002Fimages\u002Fbg.jpg\"\n}\n```\n\nAbsolute paths won't work.\n\n### Optimize Image Sizes\n\nUse appropriately sized images before embedding:\n\n```bash\nconvert large-image.jpg -resize 1600x900 optimized.jpg\n```\n\n---\n\n## Next Steps\n\n- [Templates](\u002Ftemplates) - Creating image and video templates\n- [Animation](\u002Fanimation) - Animation classes for videos\n- [Styling](\u002Fstyling) - Tailwind & shadcn\u002Fui integration\n\n\n# Animation\n\nloopwind provides **Tailwind-style animation classes** that work with time to create smooth video animations without writing custom code.\n\n> **Note:** Animation classes only work with **video templates** and **GIFs**. For static images, animations will have no effect since there's no time context.\n\n## Quick Start\n\n```tsx\nexport default function MyVideo({ tw, title, subtitle }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col items-center justify-center w-full h-full bg-black')}>\n      {\u002F* Bounce in from below: starts at 0, lasts 400ms *\u002F}\n      \u003Ch1 style={tw('text-8xl font-bold text-white ease-out enter-bounce-in-up\u002F0\u002F400')}>\n        {title}\n      \u003C\u002Fh1>\n\n      {\u002F* Fade in with upward motion: starts at 300ms, lasts 400ms *\u002F}\n      \u003Cp style={tw('text-2xl text-white\u002F80 mt-4 ease-out enter-fade-in-up\u002F300\u002F400')}>\n        {subtitle}\n      \u003C\u002Fp>\n\n      {\u002F* Continuous floating animation: repeats every 1s (1000ms) *\u002F}\n      \u003Cdiv style={tw('mt-8 text-4xl loop-float\u002F1000')}>\n        ⬇️\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Animation Format\n\nloopwind uses three types of animations with **millisecond timing**:\n\n| Type | Format | Description |\n|------|--------|-------------|\n| Enter | `enter-{type}\u002F{start}\u002F{duration}` | Animations that play when entering |\n| Exit | `exit-{type}\u002F{start}\u002F{duration}` | Animations that play when exiting |\n| Loop | `loop-{type}\u002F{duration}` | Continuous looping animations |\n\nAll timing values are in **milliseconds** (1000ms = 1 second).\n\n## Utility-Based Animations\n\nIn addition to predefined animations, loopwind supports **Tailwind utility-based animations** that let you animate any transform or opacity property directly:\n\n```tsx\n\u002F\u002F Slide in 20px from the left\n\u003Cdiv style={tw('enter-translate-x-5\u002F0\u002F1000')}>Content\u003C\u002Fdiv>\n\n\u002F\u002F Rotate 90 degrees on entrance\n\u003Cdiv style={tw('enter-rotate-90\u002F0\u002F500')}>Spinning\u003C\u002Fdiv>\n\n\u002F\u002F Fade to 50% opacity in a loop\n\u003Cdiv style={tw('loop-opacity-50\u002F1000')}>Pulsing\u003C\u002Fdiv>\n\n\u002F\u002F Scale down with negative value\n\u003Cdiv style={tw('enter--scale-50\u002F0\u002F800')}>Shrinking\u003C\u002Fdiv>\n```\n\n### Supported Utilities\n\n| Utility | Format | Description | Example |\n|---------|--------|-------------|---------|\n| **translate-x** | `enter-translate-x-{value}` | Translate horizontally | `enter-translate-x-5` = 20px\u003Cbr\u002F>`enter-translate-x-full` = 100%\u003Cbr\u002F>`enter-translate-x-[20px]` = 20px |\n| **translate-y** | `enter-translate-y-{value}` | Translate vertically | `loop-translate-y-10` = 40px\u003Cbr\u002F>`enter-translate-y-1\u002F2` = 50%\u003Cbr\u002F>`enter-translate-y-[5rem]` = 80px |\n| **opacity** | `enter-opacity-{n}` | Set opacity (0-100) | `enter-opacity-50` = 50% |\n| **scale** | `enter-scale-{n}` | Scale element (0-200) | `enter-scale-100` = 1.0x |\n| **rotate** | `enter-rotate-{n}` | Rotate in degrees | `enter-rotate-45` = 45° |\n| **skew-x** | `enter-skew-x-{n}` | Skew on X axis in degrees | `enter-skew-x-12` = 12° |\n| **skew-y** | `enter-skew-y-{n}` | Skew on Y axis in degrees | `exit-skew-y-6` = 6° |\n\n**Translate value formats:**\n- **Numeric**: `5` = 20px (Tailwind spacing scale: 1 unit = 4px)\n- **Keywords**: `full` = 100%\n- **Fractions**: `1\u002F2` = 50%, `1\u002F3` = 33.333%, `2\u002F3` = 66.666%, etc.\n- **Arbitrary values**: `[20px]`, `[5rem]`, `[10%]` (rem converts to px: 1rem = 16px)\n\nAll utilities work with:\n- **All prefixes**: `enter-`, `exit-`, `loop-`, `animate-`\n- **Negative values**: Prefix with `-` (e.g., `-translate-x-5`, `-rotate-45`)\n- **Timing syntax**: Add `\u002Fstart\u002Fduration` (e.g., `enter-translate-x-5\u002F0\u002F800`)\n\n### Translate Animations\n\n```tsx\n\u002F\u002F Numeric (Tailwind spacing): 20px (5 * 4px)\n\u003Cdiv style={tw('enter-translate-x-5\u002F0\u002F500')}>Content\u003C\u002Fdiv>\n\n\u002F\u002F Keyword: Full width (100%)\n\u003Cdiv style={tw('enter-translate-y-full\u002F0\u002F800')}>Dropping full height\u003C\u002Fdiv>\n\n\u002F\u002F Fraction: Half width (50%)\n\u003Cdiv style={tw('enter-translate-x-1\u002F2\u002F0\u002F600')}>Slide in halfway\u003C\u002Fdiv>\n\n\u002F\u002F Arbitrary values: Exact px or rem\n\u003Cdiv style={tw('enter-translate-y-[20px]\u002F0\u002F500')}>Slide 20px\u003C\u002Fdiv>\n\u003Cdiv style={tw('enter-translate-x-[5rem]\u002F0\u002F800')}>Slide 5rem (80px)\u003C\u002Fdiv>\n\n\u002F\u002F Loop with fractions\n\u003Cdiv style={tw('loop-translate-y-1\u002F4\u002F1000')}>Oscillate 25%\u003C\u002Fdiv>\n\n\u002F\u002F Negative values\n\u003Cdiv style={tw('exit--translate-y-8\u002F2000\u002F500')}>Rising\u003C\u002Fdiv>\n```\n\n### Opacity Animations\n\n```tsx\n\u002F\u002F Fade to 100% opacity\n\u003Cdiv style={tw('enter-opacity-100\u002F0\u002F500')}>Fading In\u003C\u002Fdiv>\n\n\u002F\u002F Fade to 50% opacity\n\u003Cdiv style={tw('enter-opacity-50\u002F0\u002F800')}>Half Opacity\u003C\u002Fdiv>\n\n\u002F\u002F Pulse between 50% and 100%\n\u003Cdiv style={tw('loop-opacity-50\u002F1000')}>Pulsing\u003C\u002Fdiv>\n\n\u002F\u002F Fade out to 0%\n\u003Cdiv style={tw('exit-opacity-0\u002F2500\u002F500')}>Vanishing\u003C\u002Fdiv>\n```\n\n### Scale Animations\n\n```tsx\n\u002F\u002F Scale from 0 to 100% (1.0x)\n\u003Cdiv style={tw('enter-scale-100\u002F0\u002F500')}>Growing\u003C\u002Fdiv>\n\n\u002F\u002F Scale to 150% (1.5x)\n\u003Cdiv style={tw('enter-scale-150\u002F0\u002F800')}>Enlarging\u003C\u002Fdiv>\n\n\u002F\u002F Pulse scale in a loop\n\u003Cdiv style={tw('loop-scale-110\u002F1000')}>Breathing\u003C\u002Fdiv>\n\n\u002F\u002F Scale down to 50%\n\u003Cdiv style={tw('exit-scale-50\u002F2000\u002F500')}>Shrinking\u003C\u002Fdiv>\n```\n\n### Rotate Animations\n\n```tsx\n\u002F\u002F Rotate 90 degrees\n\u003Cdiv style={tw('enter-rotate-90\u002F0\u002F500')}>Quarter Turn\u003C\u002Fdiv>\n\n\u002F\u002F Rotate 180 degrees\n\u003Cdiv style={tw('enter-rotate-180\u002F0\u002F1000')}>Half Turn\u003C\u002Fdiv>\n\n\u002F\u002F Continuous rotation in loop (360 degrees per cycle)\n\u003Cdiv style={tw('loop-rotate-360\u002F2000')}>Spinning\u003C\u002Fdiv>\n\n\u002F\u002F Rotate backwards with negative value\n\u003Cdiv style={tw('enter--rotate-45\u002F0\u002F500')}>Counter Rotation\u003C\u002Fdiv>\n```\n\n### Skew Animations\n\n```tsx\n\u002F\u002F Skew on X axis\n\u003Cdiv style={tw('enter-skew-x-12\u002F0\u002F500')}>Slanted\u003C\u002Fdiv>\n\n\u002F\u002F Skew on Y axis\n\u003Cdiv style={tw('enter-skew-y-6\u002F0\u002F800')}>Tilted\u003C\u002Fdiv>\n\n\u002F\u002F Oscillating skew in loop\n\u003Cdiv style={tw('loop-skew-x-6\u002F1000')}>Wobbling\u003C\u002Fdiv>\n\n\u002F\u002F Negative skew\n\u003Cdiv style={tw('exit--skew-x-12\u002F2000\u002F500')}>Reverse Slant\u003C\u002Fdiv>\n```\n\n### Combining Utilities\n\nYou can combine multiple utility animations on the same element:\n\n```tsx\n\u002F\u002F Translate and rotate together\n\u003Cdiv style={tw('enter-translate-y-10\u002F0\u002F500 enter-rotate-45\u002F0\u002F500')}>\n  Flying In\n\u003C\u002Fdiv>\n\n\u002F\u002F Fade and scale\n\u003Cdiv style={tw('enter-opacity-100\u002F0\u002F800 enter-scale-100\u002F0\u002F800')}>\n  Appearing\n\u003C\u002Fdiv>\n\n\u002F\u002F Enter with translate, exit with rotation\n\u003Cdiv style={tw('enter-translate-x-5\u002F0\u002F500 exit-rotate-180\u002F2500\u002F500')}>\n  Slide and Spin\n\u003C\u002Fdiv>\n```\n\n### Bracket Notation\n\nFor more CSS-like syntax, you can use brackets with units:\n\n```tsx\n\u002F\u002F Using bracket notation with seconds\n\u003Ch1 style={tw('enter-slide-up\u002F[0.6s]\u002F[1.5s]')}>Hello\u003C\u002Fh1>\n\n\u002F\u002F Using bracket notation with milliseconds\n\u003Ch1 style={tw('enter-fade-in\u002F[300ms]\u002F[800ms]')}>World\u003C\u002Fh1>\n\n\u002F\u002F Mix and match - plain numbers are milliseconds\n\u003Ch1 style={tw('enter-bounce-in\u002F0\u002F[1.2s]')}>Mixed\u003C\u002Fh1>\n```\n\n## Enter Animations\n\nFormat: `enter-{type}\u002F{startMs}\u002F{durationMs}`\n\n- `startMs` - when the animation begins (milliseconds from start)\n- `durationMs` - how long the animation lasts\n\nWhen values are omitted (`enter-fade-in`), it uses the full video duration.\n\n### Fade Animations\n\nSimple opacity transitions with optional direction.\n\n```tsx\n\u002F\u002F Fade in from 0ms to 500ms\n\u003Ch1 style={tw('enter-fade-in\u002F0\u002F500')}>Hello\u003C\u002Fh1>\n\n\u002F\u002F Fade in with upward motion\n\u003Ch1 style={tw('enter-fade-in-up\u002F0\u002F600')}>Hello\u003C\u002Fh1>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-fade-in\u002F0\u002F500` | Fade in (opacity 0 → 1) |\n| `enter-fade-in-up\u002F0\u002F500` | Fade in + slide up (30px) |\n| `enter-fade-in-down\u002F0\u002F500` | Fade in + slide down (30px) |\n| `enter-fade-in-left\u002F0\u002F500` | Fade in + slide from left (30px) |\n| `enter-fade-in-right\u002F0\u002F500` | Fade in + slide from right (30px) |\n\n### Slide Animations\n\nLarger movement (100px) with fade.\n\n```tsx\n\u002F\u002F Slide in from left: starts at 0, lasts 500ms\n\u003Cdiv style={tw('enter-slide-left\u002F0\u002F500')}>Content\u003C\u002Fdiv>\n\n\u002F\u002F Slide up from bottom: starts at 200ms, lasts 600ms\n\u003Cdiv style={tw('enter-slide-up\u002F200\u002F600')}>Content\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-slide-left\u002F0\u002F500` | Slide in from left (100px) |\n| `enter-slide-right\u002F0\u002F500` | Slide in from right (100px) |\n| `enter-slide-up\u002F0\u002F500` | Slide in from bottom (100px) |\n| `enter-slide-down\u002F0\u002F500` | Slide in from top (100px) |\n\n### Bounce Animations\n\nPlayful entrance with overshoot effect.\n\n```tsx\n\u002F\u002F Bounce in with scale overshoot\n\u003Ch1 style={tw('enter-bounce-in\u002F0\u002F500')}>Bouncy!\u003C\u002Fh1>\n\n\u002F\u002F Bounce in from below\n\u003Cdiv style={tw('enter-bounce-in-up\u002F0\u002F600')}>Pop!\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-bounce-in\u002F0\u002F500` | Bounce in with scale overshoot |\n| `enter-bounce-in-up\u002F0\u002F500` | Bounce in from below |\n| `enter-bounce-in-down\u002F0\u002F500` | Bounce in from above |\n| `enter-bounce-in-left\u002F0\u002F500` | Bounce in from left |\n| `enter-bounce-in-right\u002F0\u002F500` | Bounce in from right |\n\n### Scale & Zoom Animations\n\nSize-based transitions.\n\n```tsx\n\u002F\u002F Scale in from 50%\n\u003Cdiv style={tw('enter-scale-in\u002F0\u002F500')}>Growing\u003C\u002Fdiv>\n\n\u002F\u002F Zoom in from 0%\n\u003Cdiv style={tw('enter-zoom-in\u002F0\u002F1000')}>Zooming\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-scale-in\u002F0\u002F500` | Scale up from 50% to 100% |\n| `enter-zoom-in\u002F0\u002F500` | Zoom in from 0% to 100% |\n\n### Rotate & Flip Animations\n\nRotation-based transitions.\n\n```tsx\n\u002F\u002F Rotate in 180 degrees\n\u003Cdiv style={tw('enter-rotate-in\u002F0\u002F500')}>Spinning\u003C\u002Fdiv>\n\n\u002F\u002F 3D flip on X axis\n\u003Cdiv style={tw('enter-flip-in-x\u002F0\u002F500')}>Flipping\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `enter-rotate-in\u002F0\u002F500` | Rotate in from -180° |\n| `enter-flip-in-x\u002F0\u002F500` | 3D flip on horizontal axis |\n| `enter-flip-in-y\u002F0\u002F500` | 3D flip on vertical axis |\n\n## Exit Animations\n\nFormat: `exit-{type}\u002F{startMs}\u002F{durationMs}`\n\n- `startMs` - when the exit animation begins\n- `durationMs` - how long the exit animation lasts\n\nExit animations use the same timing system but animate elements out.\n\n```tsx\n\u002F\u002F Fade out starting at 2500ms, lasting 500ms (ends at 3000ms)\n\u003Ch1 style={tw('exit-fade-out\u002F2500\u002F500')}>Goodbye\u003C\u002Fh1>\n\n\u002F\u002F Combined enter and exit on same element\n\u003Ch1 style={tw('enter-fade-in\u002F0\u002F500 exit-fade-out\u002F2500\u002F500')}>\n  Hello and Goodbye\n\u003C\u002Fh1>\n```\n\n| Class | Description |\n|-------|-------------|\n| `exit-fade-out\u002F2500\u002F500` | Fade out (opacity 1 → 0) |\n| `exit-fade-out-up\u002F2500\u002F500` | Fade out + slide up |\n| `exit-fade-out-down\u002F2500\u002F500` | Fade out + slide down |\n| `exit-fade-out-left\u002F2500\u002F500` | Fade out + slide left |\n| `exit-fade-out-right\u002F2500\u002F500` | Fade out + slide right |\n| `exit-slide-up\u002F2500\u002F500` | Slide out upward (100px) |\n| `exit-slide-down\u002F2500\u002F500` | Slide out downward (100px) |\n| `exit-slide-left\u002F2500\u002F500` | Slide out to left (100px) |\n| `exit-slide-right\u002F2500\u002F500` | Slide out to right (100px) |\n| `exit-scale-out\u002F2500\u002F500` | Scale out to 150% |\n| `exit-zoom-out\u002F2500\u002F500` | Zoom out to 200% |\n| `exit-rotate-out\u002F2500\u002F500` | Rotate out to 180° |\n| `exit-bounce-out\u002F2500\u002F500` | Bounce out with scale |\n| `exit-bounce-out-up\u002F2500\u002F500` | Bounce out upward |\n| `exit-bounce-out-down\u002F2500\u002F500` | Bounce out downward |\n| `exit-bounce-out-left\u002F2500\u002F500` | Bounce out to left |\n| `exit-bounce-out-right\u002F2500\u002F500` | Bounce out to right |\n\n## Loop Animations\n\nFormat: `loop-{type}\u002F{durationMs}`\n\nLoop animations repeat every `{durationMs}` milliseconds:\n- `\u002F1000` = 1 second loop\n- `\u002F500` = 0.5 second loop\n- `\u002F2000` = 2 second loop\n\nWhen duration is omitted (`loop-bounce`), it defaults to 1000ms (1 second).\n\n```tsx\n\u002F\u002F Pulse opacity every 500ms\n\u003Cdiv style={tw('loop-fade\u002F500')}>Pulsing\u003C\u002Fdiv>\n\n\u002F\u002F Bounce every 800ms\n\u003Cdiv style={tw('loop-bounce\u002F800')}>Bouncing\u003C\u002Fdiv>\n\n\u002F\u002F Full rotation every 2000ms\n\u003Cdiv style={tw('loop-spin\u002F2000')}>Spinning\u003C\u002Fdiv>\n```\n\n| Class | Description |\n|-------|-------------|\n| `loop-fade\u002F{ms}` | Opacity pulse (0.5 → 1 → 0.5) |\n| `loop-bounce\u002F{ms}` | Bounce up and down |\n| `loop-spin\u002F{ms}` | Full 360° rotation |\n| `loop-ping\u002F{ms}` | Scale up + fade out (radar effect) |\n| `loop-wiggle\u002F{ms}` | Side to side wiggle |\n| `loop-float\u002F{ms}` | Gentle up and down floating |\n| `loop-pulse\u002F{ms}` | Scale pulse (1.0 → 1.05 → 1.0) |\n| `loop-shake\u002F{ms}` | Shake side to side |\n\n## Easing Functions\n\nAdd an easing class **before** the animation class to control the timing curve.\n\n```tsx\n\u002F\u002F Ease in (accelerate)\n\u003Ch1 style={tw('ease-in enter-fade-in\u002F0\u002F1000')}>Accelerating\u003C\u002Fh1>\n\n\u002F\u002F Ease out (decelerate) - default\n\u003Ch1 style={tw('ease-out enter-fade-in\u002F0\u002F1000')}>Decelerating\u003C\u002Fh1>\n\n\u002F\u002F Ease in-out (smooth)\n\u003Ch1 style={tw('ease-in-out enter-fade-in\u002F0\u002F1000')}>Smooth\u003C\u002Fh1>\n\n\u002F\u002F Strong cubic easing\n\u003Ch1 style={tw('ease-out-cubic enter-bounce-in\u002F0\u002F500')}>Dramatic\u003C\u002Fh1>\n```\n\n| Class | Description | Best For |\n|-------|-------------|----------|\n| `linear` | Constant speed | Mechanical motion |\n| `ease-in` | Slow start, fast end | Exit animations |\n| `ease-out` | Fast start, slow end (default) | Enter animations |\n| `ease-in-out` | Slow start and end | Subtle transitions |\n| `ease-in-cubic` | Strong slow start | Dramatic exits |\n| `ease-out-cubic` | Strong fast start | Impactful entrances |\n| `ease-in-out-cubic` | Strong both ends | Emphasis animations |\n| `ease-in-quart` | Very strong slow start | Powerful exits |\n| `ease-out-quart` | Very strong fast start | Punchy entrances |\n| `ease-in-out-quart` | Very strong both ends | Maximum drama |\n\n### Per-Animation-Type Easing\n\nYou can apply **different easing functions** to enter, exit, and loop animations on the same element using `enter-ease-*`, `exit-ease-*`, and `loop-ease-*` classes.\n\n```tsx\n\u002F\u002F Different easing for enter and exit\n\u003Ch1 style={tw('enter-ease-out-cubic enter-fade-in\u002F0\u002F500 exit-ease-in exit-fade-out\u002F2500\u002F500')}>\n  Smooth entrance, sharp exit\n\u003C\u002Fh1>\n\n\u002F\u002F Loop with linear easing, enter with bounce\n\u003Cdiv style={tw('enter-ease-out enter-bounce-in\u002F0\u002F400 loop-ease-linear loop-fade\u002F1000')}>\n  Bouncy entrance, linear loop\n\u003C\u002Fdiv>\n\n\u002F\u002F Default easing still works (applies to all animations)\n\u003Cdiv style={tw('ease-in-out enter-fade-in\u002F0\u002F500 exit-fade-out\u002F2500\u002F500')}>\n  Same easing for both\n\u003C\u002Fdiv>\n\n\u002F\u002F Mix default with specific overrides\n\u003Cdiv style={tw('ease-out enter-fade-in\u002F0\u002F500 exit-ease-in-cubic exit-fade-out\u002F2500\u002F500')}>\n  Default ease-out for enter, cubic-in for exit\n\u003C\u002Fdiv>\n```\n\n**How it works:**\n\n1. **Default easing** (`ease-*`) applies to ALL animations if no specific override is set\n2. **Specific easing** (`enter-ease-*`, `exit-ease-*`, `loop-ease-*`) overrides the default for that animation type\n3. If both are present, specific easing takes priority for its animation type\n\n**Available easing classes:**\n\n| Default (all animations) | Enter only | Exit only | Loop only |\n|--------------------------|------------|-----------|-----------|\n| `ease-in` | `enter-ease-in` | `exit-ease-in` | `loop-ease-in` |\n| `ease-out` | `enter-ease-out` | `exit-ease-out` | `loop-ease-out` |\n| `ease-in-out` | `enter-ease-in-out` | `exit-ease-in-out` | `loop-ease-in-out` |\n| `ease-in-cubic` | `enter-ease-in-cubic` | `exit-ease-in-cubic` | `loop-ease-in-cubic` |\n| `ease-out-cubic` | `enter-ease-out-cubic` | `exit-ease-out-cubic` | `loop-ease-out-cubic` |\n| `ease-in-out-cubic` | `enter-ease-in-out-cubic` | `exit-ease-in-out-cubic` | `loop-ease-in-out-cubic` |\n| `ease-in-quart` | `enter-ease-in-quart` | `exit-ease-in-quart` | `loop-ease-in-quart` |\n| `ease-out-quart` | `enter-ease-out-quart` | `exit-ease-out-quart` | `loop-ease-out-quart` |\n| `ease-in-out-quart` | `enter-ease-in-out-quart` | `exit-ease-in-out-quart` | `loop-ease-in-out-quart` |\n| `linear` | `enter-ease-linear` | `exit-ease-linear` | `loop-ease-linear` |\n| `ease-spring` | `enter-ease-spring` | `exit-ease-spring` | `loop-ease-spring` |\n\n### Spring Easing\n\nSpring easing creates natural, physics-based bouncy animations. Use the built-in `ease-spring` easing or create custom springs with configurable parameters.\n\n```tsx\n\u002F\u002F Default spring easing\n\u003Ch1 style={tw('ease-spring enter-bounce-in\u002F0\u002F500')}>Bouncy spring!\u003C\u002Fh1>\n\n\u002F\u002F Per-animation-type spring\n\u003Cdiv style={tw('enter-ease-spring enter-fade-in\u002F0\u002F500 exit-ease-out exit-fade-out\u002F2500\u002F500')}>\n  Spring entrance, smooth exit\n\u003C\u002Fdiv>\n\n\u002F\u002F Custom spring with parameters: ease-spring\u002Fmass\u002Fstiffness\u002Fdamping\n\u003Ch1 style={tw('ease-spring\u002F1\u002F100\u002F10 enter-scale-in\u002F0\u002F800')}>\n  Custom spring (mass=1, stiffness=100, damping=10)\n\u003C\u002Fh1>\n\n\u002F\u002F More bouncy spring (lower damping)\n\u003Cdiv style={tw('ease-spring\u002F1\u002F170\u002F8 enter-bounce-in-up\u002F0\u002F600')}>\n  Extra bouncy!\n\u003C\u002Fdiv>\n\n\u002F\u002F Stiffer spring (higher stiffness, faster)\n\u003Cdiv style={tw('ease-spring\u002F1\u002F200\u002F12 enter-fade-in-up\u002F0\u002F400')}>\n  Snappy spring\n\u003C\u002Fdiv>\n\n\u002F\u002F Per-animation-type custom springs\n\u003Cdiv style={tw('enter-ease-spring\u002F1\u002F150\u002F10 enter-fade-in\u002F0\u002F500 exit-ease-spring\u002F1\u002F100\u002F15 exit-fade-out\u002F2500\u002F500')}>\n  Different springs for enter and exit\n\u003C\u002Fdiv>\n```\n\n**Spring parameters:**\n\n| Parameter | Description | Effect when increased | Default |\n|-----------|-------------|----------------------|---------|\n| **mass** | Mass of the spring | Slower, more inertia | 1 |\n| **stiffness** | Spring stiffness | Faster, snappier | 100 |\n| **damping** | Damping coefficient | Less bounce, smoother | 10 |\n\n**Common spring presets:**\n\n```tsx\n\u002F\u002F Gentle bounce (default)\nease-spring\u002F1\u002F100\u002F10\n\n\u002F\u002F Extra bouncy\nease-spring\u002F1\u002F170\u002F8\n\n\u002F\u002F Snappy (no bounce)\nease-spring\u002F1\u002F200\u002F15\n\n\u002F\u002F Slow and bouncy\nease-spring\u002F2\u002F100\u002F8\n\n\u002F\u002F Fast and tight\nease-spring\u002F0.5\u002F300\u002F20\n```\n\n**How spring works:**\n\n1. **Default `ease-spring`** - Uses a pre-calculated spring curve optimized for most use cases\n2. **Custom `ease-spring\u002Fmass\u002Fstiffness\u002Fdamping`** - Generates a physics-based spring curve using the [damped harmonic oscillator](https:\u002F\u002Fwww.kvin.me\u002Fcss-springs) formula\n3. The spring automatically calculates its ideal duration to reach the final state\n4. Works with all animation types: `ease-spring`, `enter-ease-spring`, `exit-ease-spring`, `loop-ease-spring`\n\n## Combining Enter and Exit\n\nYou can use both enter and exit animations on the same element:\n\n```tsx\nexport default function EnterExit({ tw, title }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-black')}>\n      {\u002F* Fade in during first 500ms, fade out during last 500ms (assuming 3s video) *\u002F}\n      \u003Ch1 style={tw('text-8xl font-bold text-white enter-fade-in\u002F0\u002F500 exit-fade-out\u002F2500\u002F500')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nThe opacities from multiple animations are **multiplied together**, so you get smooth transitions that combine properly.\n\n## Staggered Animations\n\nCreate sequenced animations by offsetting start times:\n\n```tsx\nexport default function StaggeredList({ tw, items }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col gap-4')}>\n      {\u002F* First item: starts at 0ms, lasts 300ms *\u002F}\n      \u003Cdiv style={tw('ease-out enter-fade-in-left\u002F0\u002F300')}>\n        {items[0]}\n      \u003C\u002Fdiv>\n\n      {\u002F* Second item: starts at 100ms, lasts 300ms *\u002F}\n      \u003Cdiv style={tw('ease-out enter-fade-in-left\u002F100\u002F300')}>\n        {items[1]}\n      \u003C\u002Fdiv>\n\n      {\u002F* Third item: starts at 200ms, lasts 300ms *\u002F}\n      \u003Cdiv style={tw('ease-out enter-fade-in-left\u002F200\u002F300')}>\n        {items[2]}\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Dynamic Staggering\n\nFor dynamic lists, calculate the timing programmatically:\n\n```tsx\nexport default function DynamicStagger({ tw, items }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col gap-4')}>\n      {items.map((item, i) => {\n        const start = i * 100;      \u002F\u002F Each item starts 100ms later\n        const duration = 300;       \u002F\u002F Each animation lasts 300ms\n\n        return (\n          \u003Cdiv\n            key={i}\n            style={tw(`ease-out enter-fade-in-up\u002F${start}\u002F${duration}`)}\n          >\n            {item}\n          \u003C\u002Fdiv>\n        );\n      })}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Common Patterns\n\n### Intro Sequence\n\n```tsx\nexport default function IntroVideo({ tw, title, subtitle, logo }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col items-center justify-center w-full h-full bg-gradient-to-br from-blue-600 to-purple-700')}>\n      {\u002F* Logo appears first *\u002F}\n      \u003Cimg\n        src={logo}\n        style={tw('h-20 mb-8 ease-out enter-scale-in\u002F0\u002F300')}\n      \u002F>\n\n      {\u002F* Title bounces in *\u002F}\n      \u003Ch1 style={tw('text-7xl font-bold text-white ease-out enter-bounce-in-up\u002F200\u002F500')}>\n        {title}\n      \u003C\u002Fh1>\n\n      {\u002F* Subtitle fades in last *\u002F}\n      \u003Cp style={tw('text-2xl text-white\u002F80 mt-4 ease-out enter-fade-in-up\u002F400\u002F700')}>\n        {subtitle}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Text Reveal\n\n```tsx\nexport default function TextReveal({ tw, words }) {\n  return (\n    \u003Cdiv style={tw('flex flex-wrap gap-2 justify-center')}>\n      {words.split(' ').map((word, i) => (\n        \u003Cspan\n          key={i}\n          style={tw(`text-4xl font-bold ease-out enter-fade-in-up\u002F${i * 100}\u002F200`)}\n        >\n          {word}\n        \u003C\u002Fspan>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Looping Background Element\n\n```tsx\nexport default function AnimatedBackground({ tw, children }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full')}>\n      {\u002F* Floating background circles *\u002F}\n      \u003Cdiv style={tw('absolute top-10 left-10 w-20 h-20 rounded-full bg-white\u002F10 loop-float\u002F2000')} \u002F>\n      \u003Cdiv style={tw('absolute bottom-20 right-20 w-32 h-32 rounded-full bg-white\u002F10 loop-fade\u002F1500')} \u002F>\n\n      {\u002F* Main content *\u002F}\n      \u003Cdiv style={tw('relative z-10')}>\n        {children}\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Full Enter\u002FExit Animation\n\n```tsx\nexport default function FullAnimation({ tw, title }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-black')}>\n      {\u002F* Enter: starts at 0, lasts 400ms. Exit: starts at 2600ms, lasts 400ms *\u002F}\n      \u003Ch1 style={tw('text-8xl font-bold text-white ease-out enter-bounce-in-up\u002F0\u002F400 exit-fade-out-up\u002F2600\u002F400')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Programmatic Animations\n\nFor complete control beyond animation classes, use `progress` and `frame` directly.\n\n### Available Props\n\n| Prop | Type | Description |\n|------|------|-------------|\n| `progress` | `number` | 0 to 1 through the video (0% to 100%) |\n| `frame` | `number` | Current frame number (0, 1, 2, ... totalFrames-1) |\n\nThese are **only available in video templates**. Use them when animation classes aren't flexible enough.\n\n### Using `frame`\n\n```tsx\nexport default function FrameAnimation({ tw, frame, title }) {\n  \u002F\u002F Color cycling using frame number\n  const hue = (frame * 5) % 360; \u002F\u002F Cycle through colors\n\n  \u002F\u002F Pulsing based on frame\n  const fps = 30;\n  const pulse = Math.sin(frame \u002F fps * Math.PI * 2) * 0.2 + 0.8; \u002F\u002F 0.6 to 1.0\n\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-black')}>\n      \u003Ch1 style={{\n        ...tw('text-8xl font-bold'),\n        color: `hsl(${hue}, 70%, 60%)`,\n        transform: `scale(${pulse})`\n      }}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Using `progress`\n\n```tsx\nexport default function ProgressAnimation({ tw, progress, title }) {\n  \u002F\u002F Custom fade based on progress\n  const opacity = progress \u003C 0.3 ? progress \u002F 0.3 : 1;\n\n  \u002F\u002F Custom scale based on progress\n  const scale = 0.8 + progress * 0.2; \u002F\u002F 0.8 to 1.0\n\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gray-900')}>\n      \u003Ch1 style={{\n        ...tw('text-8xl font-bold text-white'),\n        opacity,\n        transform: `scale(${scale})`\n      }}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Custom Easing\n\n```tsx\nexport default function CustomEasing({ tw, progress, title }) {\n  \u002F\u002F Smoothstep easing\n  const eased = progress * progress * (3 - 2 * progress);\n\n  \u002F\u002F Elastic easing\n  const elastic = Math.pow(2, -10 * progress) * Math.sin((progress - 0.075) * (2 * Math.PI) \u002F 0.3) + 1;\n\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full')}>\n      \u003Ch1 style={{\n        ...tw('text-8xl font-bold'),\n        opacity: eased,\n        transform: `translateY(${(1 - elastic) * 100}px)`\n      }}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### When to Use Programmatic Animations\n\nUse `progress`\u002F`frame` instead of animation classes when you need:\n- **Custom easing functions** (elastic, bounce with specific curves beyond built-in ease-spring)\n- **Color cycling or gradients** based on time\n- **Mathematical animations** (sine waves, spirals, etc.)\n- **Complex multi-property animations** that need precise coordination\n- **Conditional logic** based on specific frame numbers\n\nFor everything else, prefer animation classes - they're simpler and more maintainable.\n\n### Animating Along Paths\n\nAnimate elements along SVG paths with proper rotation using built-in **path helpers**:\n\n```tsx\nexport default function PathFollowing({ tw, progress, path }) {\n  \u002F\u002F Follow a quadratic Bezier curve - one line!\n  const rocket = path.followQuadratic(\n    { x: 200, y: 400 },   \u002F\u002F Start point\n    { x: 960, y: 150 },   \u002F\u002F Control point\n    { x: 1720, y: 400 },  \u002F\u002F End point\n    progress\n  );\n\n  return (\n    \u003Cdiv style={{ display: 'flex', ...tw('relative w-full h-full bg-gray-900') }}>\n      {\u002F* Draw the path (optional) *\u002F}\n      \u003Csvg width=\"1920\" height=\"1080\" style={{ position: 'absolute' }}>\n        \u003Cpath\n          d=\"M 200 400 Q 960 150 1720 400\"\n          stroke=\"rgba(255,255,255,0.2)\"\n          strokeWidth={2}\n          fill=\"none\"\n        \u002F>\n      \u003C\u002Fsvg>\n\n      {\u002F* Element following the path *\u002F}\n      \u003Cdiv\n        style={{\n          position: \"absolute\",\n          left: rocket.x,\n          top: rocket.y,\n          transform: `translate(-50%, -50%) rotate(${rocket.angle}deg)`,\n          fontSize: '48px'\n        }}\n      >\n        🚀\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Text Path Animations\n\nCombine `textPath` helpers with animation classes to create animated text along curves:\n\n**Rotating text around a circle:**\n```tsx\nexport default function RotatingCircleText({ tw, textPath, progress }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-black')}>\n      {\u002F* Text rotates around circle using progress *\u002F}\n      {textPath.onCircle(\n        \"SPINNING TEXT • AROUND • \",\n        960,      \u002F\u002F center x\n        540,      \u002F\u002F center y\n        400,      \u002F\u002F radius\n        progress, \u002F\u002F rotation offset (0-1 animates full rotation)\n        {\n          fontSize: \"3xl\",\n          fontWeight: \"bold\",\n          color: \"yellow-300\"\n        }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Animated text reveal along a path:**\n```tsx\nexport default function PathTextReveal({ tw, textPath, progress }) {\n  \u002F\u002F Create custom path follower that animates position\n  const pathFollower = (t) => {\n    \u002F\u002F Only show characters up to current progress\n    const visibleProgress = progress * 1.5; \u002F\u002F Extend range for smooth reveal\n    const opacity = t \u003C visibleProgress ? 1 : 0;\n\n    \u002F\u002F Follow quadratic curve\n    const pos = {\n      x: (1 - t) * (1 - t) * 200 + 2 * (1 - t) * t * 960 + t * t * 1720,\n      y: (1 - t) * (1 - t) * 400 + 2 * (1 - t) * t * 150 + t * t * 400,\n      angle: 0\n    };\n\n    return { ...pos, opacity };\n  };\n\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-gray-900')}>\n      {textPath.onPath(\n        \"REVEALING TEXT\",\n        pathFollower,\n        {\n          fontSize: \"4xl\",\n          fontWeight: \"bold\",\n          color: \"blue-300\"\n        }\n      ).map((char, i) => (\n        \u003Cdiv key={i} style={{ ...char.props.style, opacity: char.props.style.opacity || 1 }}>\n          {char}\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Staggered character entrance:**\n```tsx\nexport default function StaggeredCircleText({ tw, textPath }) {\n  const text = \"HELLO WORLD\";\n\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-slate-900')}>\n      {textPath.onCircle(\n        text,\n        960, 540, 400, 0,\n        { fontSize: \"4xl\", fontWeight: \"bold\", color: \"white\" }\n      ).map((char, i) => {\n        \u002F\u002F Stagger fade-in: each character starts 50ms later\n        const staggerDelay = i * 50;\n        return (\n          \u003Cdiv\n            key={i}\n            style={{\n              ...char.props.style,\n              ...tw(`enter-fade-in\u002F${staggerDelay}\u002F300 enter-scale-100\u002F${staggerDelay}\u002F300`)\n            }}\n          >\n            {char.props.children}\n          \u003C\u002Fdiv>\n        );\n      })}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Text with bounce entrance along arc:**\n```tsx\nexport default function BouncyArcText({ tw, textPath }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-gradient-to-br from-purple-600 to-blue-500')}>\n      {\u002F* Draw the arc path *\u002F}\n      \u003Csvg width=\"1920\" height=\"1080\" style={{ position: 'absolute' }}>\n        \u003Cpath\n          d=\"M 300 900 A 600 600 0 0 1 1620 900\"\n          stroke=\"rgba(255,255,255,0.2)\"\n          strokeWidth={2}\n          fill=\"none\"\n          strokeDasharray=\"5 5\"\n        \u002F>\n      \u003C\u002Fsvg>\n\n      {\u002F* Text follows arc with staggered bounce *\u002F}\n      {textPath.onArc(\n        \"BOUNCING ON ARC\",\n        960,  \u002F\u002F cx\n        300,  \u002F\u002F cy\n        600,  \u002F\u002F radius\n        180,  \u002F\u002F start angle\n        360,  \u002F\u002F end angle\n        { fontSize: \"3xl\", fontWeight: \"bold\", color: \"white\" }\n      ).map((char, i) => (\n        \u003Cdiv\n          key={i}\n          style={{\n            ...char.props.style,\n            ...tw(`ease-out enter-bounce-in-up\u002F${i * 80}\u002F500`)\n          }}\n        >\n          {char.props.children}\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Loop animation with text on curve:**\n```tsx\nexport default function LoopingCurveText({ tw, textPath, frame }) {\n  \u002F\u002F Calculate wave effect using frame\n  const waveOffset = Math.sin(frame \u002F 30 * Math.PI * 2) * 0.1;\n\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-black')}>\n      {textPath.onQuadratic(\n        \"WAVY TEXT\",\n        { x: 200, y: 400 },\n        { x: 960, y: 150 },\n        { x: 1720, y: 400 },\n        { fontSize: \"4xl\", fontWeight: \"bold\", color: \"pink-300\" }\n      ).map((char, i) => (\n        \u003Cdiv\n          key={i}\n          style={{\n            ...char.props.style,\n            transform: `${char.props.style.transform} translateY(${Math.sin((i + frame) \u002F 5) * 10}px)`\n          }}\n        >\n          {char.props.children}\n        \u003C\u002Fdiv>\n      ))}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Tips for animating text paths:**\n1. **Use `progress` for smooth rotation** on circles and arcs\n2. **Map over returned characters** to apply individual animations\n3. **Combine with animation classes** like `enter-fade-in`, `enter-bounce-in`, etc.\n4. **Stagger character animations** by calculating delays: `i * delayMs`\n5. **Use `frame` for continuous effects** like waves or pulsing\n6. **Preserve the original transform** when adding animations: `transform: '${char.props.style.transform} ...'`\n\n**Common path types:**\n\n**Quadratic Bezier** (Q command):\n```tsx\n\u002F\u002F Position: (1-t)²·P0 + 2(1-t)t·P1 + t²·P2\nfunction pointOnQuadraticBezier(p0, p1, p2, t) {\n  const x = (1 - t) * (1 - t) * p0.x + 2 * (1 - t) * t * p1.x + t * t * p2.x;\n  const y = (1 - t) * (1 - t) * p0.y + 2 * (1 - t) * t * p1.y + t * t * p2.y;\n  return { x, y };\n}\n\n\u002F\u002F Tangent angle\nfunction angleOnQuadraticBezier(p0, p1, p2, t) {\n  const dx = 2 * (1 - t) * (p1.x - p0.x) + 2 * t * (p2.x - p1.x);\n  const dy = 2 * (1 - t) * (p1.y - p0.y) + 2 * t * (p2.y - p1.y);\n  return Math.atan2(dy, dx) * (180 \u002F Math.PI);\n}\n```\n\n**Cubic Bezier** (C command):\n```tsx\n\u002F\u002F Position: (1-t)³·P0 + 3(1-t)²t·P1 + 3(1-t)t²·P2 + t³·P3\nfunction pointOnCubicBezier(p0, p1, p2, p3, t) {\n  const mt = 1 - t;\n  const mt2 = mt * mt;\n  const mt3 = mt2 * mt;\n  const t2 = t * t;\n  const t3 = t2 * t;\n  const x = mt3 * p0.x + 3 * mt2 * t * p1.x + 3 * mt * t2 * p2.x + t3 * p3.x;\n  const y = mt3 * p0.y + 3 * mt2 * t * p1.y + 3 * mt * t2 * p2.y + t3 * p3.y;\n  return { x, y };\n}\n\n\u002F\u002F Tangent angle\nfunction angleOnCubicBezier(p0, p1, p2, p3, t) {\n  const mt = 1 - t;\n  const mt2 = mt * mt;\n  const t2 = t * t;\n  const dx = -3 * mt2 * p0.x + 3 * mt2 * p1.x - 6 * mt * t * p1.x - 3 * t2 * p2.x + 6 * mt * t * p2.x + 3 * t2 * p3.x;\n  const dy = -3 * mt2 * p0.y + 3 * mt2 * p1.y - 6 * mt * t * p1.y - 3 * t2 * p2.y + 6 * mt * t * p2.y + 3 * t2 * p3.y;\n  return Math.atan2(dy, dx) * (180 \u002F Math.PI);\n}\n```\n\n**Circle**:\n```tsx\nfunction pointOnCircle(cx, cy, radius, angleRadians) {\n  return {\n    x: cx + radius * Math.cos(angleRadians),\n    y: cy + radius * Math.sin(angleRadians)\n  };\n}\n\n\u002F\u002F Usage\nconst angleRadians = progress * Math.PI * 2;\nconst pos = pointOnCircle(300, 300, 100, angleRadians);\nconst tangentAngle = (angleRadians * 180 \u002F Math.PI) + 90; \u002F\u002F Tangent is perpendicular\n```\n\n**Tips:**\n- Use `progress` (0-1) for smooth animation\n- The `translate(-50%, -50%)` centers the element on the path\n- Combine rotation with the translate: `translate(-50%, -50%) rotate(${angle}deg)`\n- For text following a path, you can animate individual characters at different progress values\n\n## SVG Stroke Animations\n\nAnimate SVG path strokes with the **stroke-dash** classes, perfect for drawing or erasing line art, icons, and illustrations.\n\n### How It Works\n\nSVG stroke animations use `strokeDasharray` and `strokeDashoffset` CSS properties to create drawing effects:\n\n1. **Enter animations** - Draw the stroke from start to finish\n2. **Exit animations** - Erase the stroke from finish to start\n3. **Loop animations** - Continuously draw and erase\n\n### Format\n\nAll stroke-dash animations require the **path length** in brackets:\n\n```tsx\nenter-stroke-dash-[length]\u002Fstart\u002Fduration\nexit-stroke-dash-[length]\u002Fstart\u002Fduration\nloop-stroke-dash-[length]\u002Fduration\n```\n\n### Basic Examples\n\n```tsx\nexport default function SVGAnimation({ tw }) {\n  return (\n    \u003Csvg width=\"400\" height=\"200\" viewBox=\"0 0 400 200\">\n      {\u002F* Draw a curve over 1 second *\u002F}\n      \u003Cpath\n        d=\"M10 150 Q 95 10 180 150\"\n        stroke=\"black\"\n        strokeWidth={4}\n        fill=\"none\"\n        style={tw('enter-stroke-dash-[300]\u002F0\u002F1000')}\n      \u002F>\n    \u003C\u002Fsvg>\n  );\n}\n```\n\n### Enter Animations (Drawing)\n\nDraw strokes from 0% to 100%:\n\n```tsx\n\u002F\u002F Draw a 300px path over 1 second\n\u003Cpath style={tw('enter-stroke-dash-[300]\u002F0\u002F1000')} \u002F>\n\n\u002F\u002F Draw with spring easing\n\u003Cpath style={tw('ease-spring enter-stroke-dash-[500]\u002F0\u002F1500')} \u002F>\n\n\u002F\u002F Stagger multiple paths\n\u003Cpath style={tw('enter-stroke-dash-[200]\u002F0\u002F600')} \u002F>\n\u003Cpath style={tw('enter-stroke-dash-[200]\u002F200\u002F600')} \u002F>\n\u003Cpath style={tw('enter-stroke-dash-[200]\u002F400\u002F600')} \u002F>\n```\n\n### Exit Animations (Erasing)\n\nErase strokes from 100% to 0%:\n\n```tsx\n\u002F\u002F Erase starting at 2000ms, lasting 500ms\n\u003Cpath style={tw('exit-stroke-dash-[300]\u002F2000\u002F500')} \u002F>\n\n\u002F\u002F Draw then erase the same path\n\u003Cpath style={tw('enter-stroke-dash-[400]\u002F0\u002F800 exit-stroke-dash-[400]\u002F2200\u002F800')} \u002F>\n```\n\n### Loop Animations\n\nContinuously draw and erase:\n\n```tsx\n\u002F\u002F Loop every 2 seconds (draws in first half, erases in second half)\n\u003Cpath style={tw('loop-stroke-dash-[300]\u002F2000')} \u002F>\n\n\u002F\u002F Faster loop\n\u003Cpath style={tw('loop-stroke-dash-[200]\u002F1000')} \u002F>\n```\n\n### Getting Path Length\n\nTo find the path length for your SVG:\n\n```tsx\n\u002F\u002F In browser console or component:\nconst path = document.querySelector('path');\nconst length = path.getTotalLength();\nconsole.log(length); \u002F\u002F e.g., 347.89\n```\n\nThen use that value:\n\n```tsx\n\u003Cpath style={tw('enter-stroke-dash-[347.89]\u002F0\u002F1000')} \u002F>\n```\n\n### Complete Example\n\n```tsx\nexport default function DrawingEffect({ tw }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gray-900')}>\n      \u003Csvg width=\"600\" height=\"400\" viewBox=\"0 0 600 400\">\n        {\u002F* Checkmark icon drawn in sequence *\u002F}\n        \u003Cpath\n          d=\"M100 200 L 200 300 L 400 100\"\n          stroke=\"#10b981\"\n          strokeWidth={8}\n          fill=\"none\"\n          strokeLinecap=\"round\"\n          strokeLinejoin=\"round\"\n          style={tw('ease-out enter-stroke-dash-[600]\u002F0\u002F1200')}\n        \u002F>\n\n        {\u002F* Circle drawn after checkmark *\u002F}\n        \u003Ccircle\n          cx=\"250\"\n          cy=\"200\"\n          r=\"150\"\n          stroke=\"#10b981\"\n          strokeWidth={6}\n          fill=\"none\"\n          style={tw('ease-out enter-stroke-dash-[942]\u002F1000\u002F1000')}\n        \u002F>\n      \u003C\u002Fsvg>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Combining with Other Animations\n\nStroke animations work alongside other animation classes:\n\n```tsx\n\u002F\u002F Fade in while drawing\n\u003Cpath style={tw('enter-stroke-dash-[300]\u002F0\u002F1000 enter-fade-in\u002F0\u002F1000')} \u002F>\n\n\u002F\u002F Draw with pulsing color\n\u003Csvg>\n  \u003Cpath\n    stroke=\"url(#gradient)\"\n    style={tw('enter-stroke-dash-[500]\u002F0\u002F1500')}\n  \u002F>\n  \u003Cdefs>\n    \u003ClinearGradient id=\"gradient\">\n      \u003Cstop offset=\"0%\" stopColor=\"#8b5cf6\" \u002F>\n      \u003Cstop offset=\"100%\" stopColor=\"#ec4899\" \u002F>\n    \u003C\u002FlinearGradient>\n  \u003C\u002Fdefs>\n\u003C\u002Fsvg>\n```\n\n### Animated Dashed Strokes (Marching Ants)\n\nFor **marching ants** or **animated dashed patterns**, use `frame` or `progress` directly instead of animation classes:\n\n```tsx\nexport default function MarchingAnts({ tw, frame }) {\n  \u002F\u002F Calculate animated offset (loops every 30 frames)\n  const dashOffset = -(frame % 30) * 2;\n\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gray-900')}>\n      \u003Csvg width=\"600\" height=\"400\" viewBox=\"0 0 600 400\">\n        {\u002F* Marching ants border *\u002F}\n        \u003Crect\n          x=\"50\"\n          y=\"50\"\n          width=\"500\"\n          height=\"300\"\n          fill=\"none\"\n          stroke=\"#3b82f6\"\n          strokeWidth={3}\n          strokeDasharray=\"10 5\"\n          strokeDashoffset={dashOffset}\n        \u002F>\n\n        {\u002F* Animated circle with different speed *\u002F}\n        \u003Ccircle\n          cx=\"300\"\n          cy=\"200\"\n          r=\"80\"\n          fill=\"none\"\n          stroke=\"#10b981\"\n          strokeWidth={4}\n          strokeDasharray=\"15 8\"\n          strokeDashoffset={dashOffset * 1.5}\n        \u002F>\n      \u003C\u002Fsvg>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Tips:**\n- `strokeDasharray=\"10 5\"` - 10px dash, 5px gap\n- `strokeDashoffset={dashOffset}` - animates the pattern position\n- Negative offset moves forward, positive moves backward\n- Different speeds: multiply by different values (e.g., `dashOffset * 2`)\n\nThis technique is different from `stroke-dash` classes:\n- **`stroke-dash` classes** - Draw\u002Ferase the stroke (reveal animation)\n- **Marching ants** - Move a dashed pattern along the stroke\n\n## Performance Tips\n\n1. **Use Tailwind classes** when possible - they're optimized for the renderer\n2. **Avoid too many nested animations** - each adds computation per frame\n3. **Use loop animations sparingly** - they're computed every frame\n4. **Prefer opacity and transform** - they're the most performant properties\n\n## Next Steps\n\n- [Templates](\u002Ftemplates) - Creating image and video templates\n- [Helpers](\u002Fhelpers) - QR codes, images, and more\n\n\n# Template Helpers\n\nAdditional helpers for creating powerful, composable templates.\n\n## Overview\n\nBeyond the basics, loopwind provides:\n- `template()` - Compose templates together\n- `qr()` - Generate QR codes on the fly\n- `config` - Access user configuration\n\nFor image embedding, see the [Images](\u002Fimages) page.\n\n## Template Composition\n\nCompose multiple templates together to create complex designs.\n\n### Usage\n\n```tsx\nexport default function CompositeCard({ tw, template, title, author, avatar }) {\n  return (\n    \u003Cdiv style={tw('w-full h-full bg-gradient-to-br from-purple-600 to-blue-500 p-12')}>\n      \u003Cdiv style={tw('bg-white rounded-2xl p-8 shadow-xl')}>\n        \u003Ch1 style={tw('text-4xl font-bold text-gray-900 mb-6')}>{title}\u003C\u002Fh1>\n        \n        {\u002F* Embed another template *\u002F}\n        \u003Cdiv style={tw('mb-6')}>\n          {template('user-badge', {\n            name: author,\n            avatar: avatar\n          })}\n        \u003C\u002Fdiv>\n        \n        \u003Cp style={tw('text-gray-600')}>Published by {author}\u003C\u002Fp>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**How it works:**\n1. `template(name, props)` renders another installed template\n2. The embedded template is rendered at its specified size\n3. You can embed multiple templates in one design\n4. Templates can be nested (template within a template)\n\n### Use Cases\n\n**1. Reusable components:**\n```tsx\n\u002F\u002F Create a logo template once, use it everywhere\n\u003Cdiv>{template('company-logo', { variant: 'dark' })}\u003C\u002Fdiv>\n```\n\n**2. Complex layouts:**\n```tsx\n\u002F\u002F Combine multiple templates into one design\n\u003Cdiv style={tw('grid grid-cols-2 gap-4')}>\n  {template('product-card', { product: product1 })}\n  {template('product-card', { product: product2 })}\n\u003C\u002Fdiv>\n```\n\n**3. Dynamic content:**\n```tsx\n\u002F\u002F Render templates based on data\n{users.map(user => \n  template('user-avatar', { name: user.name, image: user.avatar })\n)}\n```\n\n### Best Practices\n\n1. **Keep templates focused** - Each template should do one thing well\n2. **Pass minimal props** - Only pass what the embedded template needs\n3. **Document dependencies** - Note which templates are required in your README\n4. **Avoid deep nesting** - Too many nested templates can be hard to debug\n\n## QR Codes\n\nGenerate QR codes dynamically in your templates.\n\n### Usage\n\n```tsx\nexport default function QRCard({ tw, qr, title, url }) {\n  return (\n    \u003Cdiv style={tw('flex flex-col items-center justify-center w-full h-full bg-white p-10')}>\n      \u003Ch1 style={tw('text-4xl font-bold text-black mb-8')}>{title}\u003C\u002Fh1>\n      \n      {\u002F* Generate QR code for the URL *\u002F}\n      \u003Cimg src={qr(url)} style={tw('w-64 h-64')} \u002F>\n      \n      \u003Cp style={tw('text-gray-600 mt-4')}>{url}\u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Props format:**\n```json\n{\n  \"title\": \"Scan Me\",\n  \"url\": \"https:\u002F\u002Fexample.com\"\n}\n```\n\n### QR Options\n\nYou can customize QR code appearance:\n\n```tsx\n\u002F\u002F Basic QR code\n\u003Cimg src={qr('https:\u002F\u002Fexample.com')} \u002F>\n\n\u002F\u002F With error correction level\n\u003Cimg src={qr('https:\u002F\u002Fexample.com', { errorCorrectionLevel: 'H' })} \u002F>\n\n\u002F\u002F With custom size\n\u003Cimg src={qr('https:\u002F\u002Fexample.com', { width: 512 })} \u002F>\n```\n\n**Error correction levels:**\n- `L` - Low (~7% correction)\n- `M` - Medium (~15% correction) - default\n- `Q` - Quartile (~25% correction)\n- `H` - High (~30% correction)\n\n## User Configuration\n\nAccess user settings from `.loopwind\u002Floopwind.json` using the `config` prop:\n\n```tsx\nexport default function BrandedTemplate({ tw, config, title }) {\n  \u002F\u002F Access custom colors from loopwind.json\n  const primaryColor = config?.colors?.brand || '#6366f1';\n  \n  return (\n    \u003Cdiv style={tw('w-full h-full p-12')}>\n      \u003Ch1 style={{ \n        ...tw('text-6xl font-bold'),\n        color: primaryColor \n      }}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**User's `.loopwind\u002Floopwind.json`:**\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"colors\": {\n    \"brand\": \"#ff6b6b\"\n  },\n  \"fonts\": {\n    \"sans\": [\"Inter\", \"system-ui\", \"sans-serif\"]\n  }\n}\n```\n\nThis allows templates to adapt to user preferences and brand guidelines.\n\n## Text on Path\n\nRender text along curves, circles, and custom paths with automatic character positioning and rotation.\n\n### Usage\n\n```tsx\nexport default function CircleText({ tw, textPath, message }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-slate-900')}>\n      {textPath.onCircle(\n        message,\n        960,  \u002F\u002F center x\n        540,  \u002F\u002F center y\n        400,  \u002F\u002F radius\n        0,    \u002F\u002F rotation offset (0-1)\n        {\n          fontSize: \"4xl\",\n          fontWeight: \"bold\",\n          color: \"white\",\n          letterSpacing: 0.05\n        }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Available Functions\n\nAll `textPath` functions return an array of positioned character elements:\n\n**`textPath.onCircle(text, cx, cy, radius, offset, options?)`**\n```tsx\n\u002F\u002F Text around a circle\ntextPath.onCircle(\"HELLO WORLD\", 960, 540, 400, 0, {\n  fontSize: \"4xl\",\n  color: \"white\"\n})\n```\n\n**`textPath.onPath(text, pathFollower, options?)`**\n```tsx\n\u002F\u002F Text along any custom path\ntextPath.onPath(\"CUSTOM PATH\", (t) => ({\n  x: 100 + t * 800,\n  y: 200 + Math.sin(t * Math.PI) * 100,\n  angle: Math.cos(t * Math.PI) * 20\n}), {\n  fontSize: \"2xl\",\n  fontWeight: \"semibold\"\n})\n```\n\n**`textPath.onQuadratic(text, p0, p1, p2, options?)`**\n```tsx\n\u002F\u002F Text along a quadratic Bezier curve\ntextPath.onQuadratic(\n  \"CURVED TEXT\",\n  { x: 200, y: 400 },   \u002F\u002F start\n  { x: 960, y: 100 },   \u002F\u002F control point\n  { x: 1720, y: 400 },  \u002F\u002F end\n  { fontSize: \"3xl\", color: \"blue-300\" }\n)\n```\n\n**`textPath.onCubic(text, p0, p1, p2, p3, options?)`**\n```tsx\n\u002F\u002F Text along a cubic Bezier curve\ntextPath.onCubic(\n  \"S-CURVE\",\n  { x: 200, y: 600 },   \u002F\u002F start\n  { x: 600, y: 400 },   \u002F\u002F control 1\n  { x: 1320, y: 800 },  \u002F\u002F control 2\n  { x: 1720, y: 600 },  \u002F\u002F end\n  { fontSize: \"3xl\", color: \"purple-300\" }\n)\n```\n\n**`textPath.onArc(text, cx, cy, radius, startAngle, endAngle, options?)`**\n```tsx\n\u002F\u002F Text along a circular arc\ntextPath.onArc(\n  \"ARC TEXT\",\n  960,   \u002F\u002F center x\n  540,   \u002F\u002F center y\n  400,   \u002F\u002F radius\n  0,     \u002F\u002F start angle (degrees)\n  180,   \u002F\u002F end angle (degrees)\n  { fontSize: \"2xl\", color: \"pink-300\" }\n)\n```\n\n### Options\n\nAll `textPath` functions accept an optional `options` object:\n\n```typescript\n{\n  fontSize?: string;      \u002F\u002F Tailwind size: \"xl\", \"2xl\", \"4xl\", etc.\n  fontWeight?: string;    \u002F\u002F Tailwind weight: \"bold\", \"semibold\", etc.\n  color?: string;         \u002F\u002F Tailwind color: \"white\", \"blue-500\", etc.\n  letterSpacing?: number; \u002F\u002F Space between characters (0-1, default: 0)\n  style?: any;           \u002F\u002F Additional inline styles\n}\n```\n\n### Examples\n\n**Animated rotating text:**\n```tsx\nexport default function RotatingText({ tw, textPath, progress }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-black')}>\n      {textPath.onCircle(\n        \"SPINNING • TEXT • \",\n        960, 540, 400,\n        progress,  \u002F\u002F Rotate based on video progress\n        { fontSize: \"3xl\", color: \"yellow-300\" }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Multiple text paths:**\n```tsx\nexport default function MultiPath({ tw, textPath }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-gradient-to-br from-slate-900 to-slate-700')}>\n      {\u002F* Text on outer circle *\u002F}\n      {textPath.onCircle(\n        \"OUTER RING\",\n        960, 540, 500, 0,\n        { fontSize: \"5xl\", fontWeight: \"bold\", color: \"white\" }\n      )}\n\n      {\u002F* Text on inner circle *\u002F}\n      {textPath.onCircle(\n        \"inner ring\",\n        960, 540, 300, 0.5,  \u002F\u002F offset by 50% for rotation\n        { fontSize: \"2xl\", color: \"white\u002F60\" }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Text following a drawn path:**\n```tsx\nexport default function PathText({ tw, textPath }) {\n  return (\n    \u003Cdiv style={tw('relative w-full h-full bg-gray-900')}>\n      {\u002F* Draw the path *\u002F}\n      \u003Csvg width=\"1920\" height=\"1080\" style={{ position: 'absolute' }}>\n        \u003Cpath\n          d=\"M 200 400 Q 960 150 1720 400\"\n          stroke=\"rgba(255,255,255,0.2)\"\n          strokeWidth={2}\n          fill=\"none\"\n        \u002F>\n      \u003C\u002Fsvg>\n\n      {\u002F* Text following the path *\u002F}\n      {textPath.onQuadratic(\n        \"FOLLOWING THE CURVE\",\n        { x: 200, y: 400 },\n        { x: 960, y: 150 },\n        { x: 1720, y: 400 },\n        { fontSize: \"3xl\", fontWeight: \"bold\", color: \"blue-300\" }\n      )}\n    \u003C\u002Fdiv>\n  );\n}\n```\n\nFor animated text paths, see [Text Path Animations](\u002Fanimation#text-path-animations).\n\n## Reserved Prop Names\n\nThe following prop names are **reserved** and cannot be used in your template's `meta.props`:\n\n- `tw`, `qr`, `image`, `template` - Core helpers\n- `path`, `textPath` - Path and text helpers\n- `config`, `frame`, `progress` - System props\n\n**Why?** These names are used for loopwind's built-in helpers. Using them as prop names would cause conflicts.\n\n**Example:**\n```tsx\n\u002F\u002F ❌ BAD - 'image' is reserved\nexport const meta = {\n  props: {\n    title: \"string\",\n    image: \"string\"  \u002F\u002F Error!\n  }\n};\n\n\u002F\u002F ✅ GOOD - Use descriptive alternatives\nexport const meta = {\n  props: {\n    title: \"string\",\n    imageUrl: \"string\",    \u002F\u002F or imageSrc, photoUrl, etc.\n    logoUrl: \"string\"\n  }\n};\n```\n\nIf you try to use a reserved name, you'll get a helpful error:\n```\nTemplate uses reserved prop names: image\n\nTry renaming: \"image\" → \"imageUrl\" or \"imageSrc\"\n\nReserved names: tw, qr, image, template, path, textPath, config, frame, progress\n```\n\n## All Props Reference\n\nEvery template receives these props:\n\n```tsx\nexport default function MyTemplate({\n  \u002F\u002F Core helpers (RESERVED - cannot be used as prop names)\n  tw,        \u002F\u002F Tailwind class converter\n  qr,        \u002F\u002F QR code generator (this page)\n  template,  \u002F\u002F Template composer (this page)\n  config,    \u002F\u002F User config from loopwind.json (this page)\n  textPath,  \u002F\u002F Text on path helpers (this page)\n\n  \u002F\u002F Media helpers (RESERVED)\n  image,     \u002F\u002F Image embedder → see \u002Fimages\n  path,      \u002F\u002F Path following → see \u002Fanimation\n\n  \u002F\u002F Video-specific (RESERVED - only in video templates)\n  frame,     \u002F\u002F Current frame number → see \u002Ftemplates\n  progress,  \u002F\u002F Animation progress 0-1 → see \u002Ftemplates\n\n  \u002F\u002F Your custom props (use any names EXCEPT the reserved ones above)\n  ...props   \u002F\u002F Any props from your meta.props\n}) {\n  \u002F\u002F Your template code\n}\n```\n\n## Next Steps\n\n- [Embedding Images](\u002Fimages)\n- [Templates](\u002Ftemplates)\n- [Styling with Tailwind & shadcn\u002Fui](\u002Fstyling)\n- [Custom Fonts](\u002Ffonts)\n\n\n\n# Styling Templates\n\nStyle your templates with Tailwind utility classes and shadcn\u002Fui's beautiful design system.\n\n## Quick Start\n\n```tsx\nexport default function MyTemplate({ title, tw }) {\n  return (\n    \u003Cdiv style={tw('flex items-center justify-center w-full h-full bg-gradient-to-br from-blue-600 to-purple-700')}>\n      \u003Ch1 style={tw('text-7xl font-bold text-white')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## The `tw()` Function\n\nEvery template receives a `tw()` function that converts Tailwind classes to inline styles compatible with Satori:\n\n```tsx\n\u002F\u002F Tailwind classes\ntw('flex items-center justify-center p-8 bg-blue-500')\n\n\u002F\u002F Converts to inline styles:\n{\n  display: 'flex',\n  alignItems: 'center',\n  justifyContent: 'center',\n  padding: '2rem',\n  backgroundColor: '#3b82f6'\n}\n```\n\n### Basic Usage\n\n```tsx\nexport default function Banner({ title, subtitle, tw }) {\n  return (\n    \u003Cdiv style={tw('w-full h-full p-12 bg-gray-50')}>\n      \u003Ch1 style={tw('text-6xl font-bold text-gray-900 mb-4')}>\n        {title}\n      \u003C\u002Fh1>\n      \u003Cp style={tw('text-2xl text-gray-600')}>\n        {subtitle}\n      \u003C\u002Fp>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Combining with Custom Styles\n\nMix Tailwind classes with custom styles using the spread operator:\n\n```tsx\nexport default function CustomGradient({ title, tw }) {\n  return (\n    \u003Cdiv\n      style={{\n        ...tw('flex flex-col items-center justify-center w-full h-full p-20'),\n        background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',\n      }}\n    >\n      \u003Ch1 style={tw('text-8xl font-bold text-white')}>{title}\u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## shadcn\u002Fui Design System\n\nloopwind uses **shadcn\u002Fui's design system** by default, providing semantic color tokens for beautiful, consistent designs.\n\n### Default Color Palette\n\nAll templates automatically have access to these semantic colors defined in `.loopwind\u002Floopwind.json`:\n\n```typescript\ncolors: {\n  \u002F\u002F Primary colors\n  primary: '#18181b',           \u002F\u002F Main brand color\n  'primary-foreground': '#fafafa',\n\n  \u002F\u002F Secondary colors\n  secondary: '#f4f4f5',         \u002F\u002F Subtle accents\n  'secondary-foreground': '#18181b',\n\n  \u002F\u002F Background\n  background: '#ffffff',        \u002F\u002F Page background\n  foreground: '#09090b',        \u002F\u002F Main text color\n\n  \u002F\u002F Muted\n  muted: '#f4f4f5',            \u002F\u002F Subtle backgrounds\n  'muted-foreground': '#71717a', \u002F\u002F Muted text\n\n  \u002F\u002F Accent\n  accent: '#f4f4f5',           \u002F\u002F Highlight color\n  'accent-foreground': '#18181b',\n\n  \u002F\u002F Destructive\n  destructive: '#ef4444',       \u002F\u002F Error\u002Fdanger states\n  'destructive-foreground': '#fafafa',\n\n  \u002F\u002F UI Elements\n  border: '#e4e4e7',           \u002F\u002F Border color\n  input: '#e4e4e7',            \u002F\u002F Input borders\n  ring: '#18181b',             \u002F\u002F Focus rings\n  card: '#ffffff',             \u002F\u002F Card background\n  'card-foreground': '#09090b',\n}\n```\n\n### Using Semantic Colors\n\n```tsx\nexport default function SemanticCard({ title, description, price, tw }) {\n  return (\n    \u003Cdiv style={tw('bg-card border border-border rounded-lg p-6')}>\n      \u003Ch2 style={tw('text-card-foreground text-2xl font-bold mb-2')}>\n        {title}\n      \u003C\u002Fh2>\n      \u003Cp style={tw('text-muted-foreground mb-4')}>\n        {description}\n      \u003C\u002Fp>\n      \u003Cdiv style={tw('text-primary text-3xl font-bold')}>\n        ${price}\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n### Opacity Modifiers\n\nUse Tailwind's slash syntax for opacity with any color:\n\n```tsx\nexport default function OpacityExample({ tw }) {\n  return (\n    \u003Cdiv style={tw('bg-primary\u002F50')}>          {\u002F* 50% opacity *\u002F}\n      \u003Cp style={tw('text-muted-foreground\u002F75')}> {\u002F* 75% opacity *\u002F}\n        Subtle text\n      \u003C\u002Fp>\n      \u003Cdiv style={tw('border border-border\u002F30')}> {\u002F* 30% opacity *\u002F}\n        Faint border\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Supported syntax:**\n- `bg-{color}\u002F{opacity}` - Background with opacity\n- `text-{color}\u002F{opacity}` - Text with opacity  \n- `border-{color}\u002F{opacity}` - Border with opacity\n\n### Text Hierarchy\n\n```tsx\n\u002F\u002F Primary text\ntw('text-foreground')\n\n\u002F\u002F Secondary\u002Fmuted text\ntw('text-muted-foreground')\n\n\u002F\u002F Accent\u002Fbrand text\ntw('text-primary')\n\n\u002F\u002F Destructive\u002Ferror text\ntw('text-destructive')\n```\n\n### Backgrounds\n\n```tsx\n\u002F\u002F Page background\ntw('bg-background')\n\n\u002F\u002F Card\u002Felevated surfaces\ntw('bg-card')\n\n\u002F\u002F Subtle backgrounds\ntw('bg-muted')\n\n\u002F\u002F Accent backgrounds\ntw('bg-accent')\n```\n\n## Supported Tailwind Classes\n\n### Layout\n\n- **Display**: `flex`, `inline-flex`, `block`, `inline-block`, `hidden`\n- **Flex Direction**: `flex-row`, `flex-col`, `flex-row-reverse`, `flex-col-reverse`\n- **Justify**: `justify-start`, `justify-end`, `justify-center`, `justify-between`, `justify-around`\n- **Align**: `items-start`, `items-end`, `items-center`, `items-baseline`, `items-stretch`\n\n### Spacing\n\n- **Padding**: `p-{n}`, `px-{n}`, `py-{n}`, `pt-{n}`, `pb-{n}`, `pl-{n}`, `pr-{n}`\n- **Margin**: `m-{n}`, `mx-{n}`, `my-{n}`, `mt-{n}`, `mb-{n}`, `ml-{n}`, `mr-{n}`\n- **Gap**: `gap-{n}`, `gap-x-{n}`, `gap-y-{n}`\n- **Sizes**: 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 56, 64\n\nExamples:\n```tsx\ntw('p-4')      \u002F\u002F padding: 1rem\ntw('px-8')     \u002F\u002F paddingLeft: 2rem, paddingRight: 2rem\ntw('m-6')      \u002F\u002F margin: 1.5rem\ntw('gap-4')    \u002F\u002F gap: 1rem\n```\n\n### Sizing\n\n- **Width**: `w-{n}`, `w-full`, `w-screen`, `w-1\u002F2`, `w-1\u002F3`, `w-2\u002F3`\n- **Height**: `h-{n}`, `h-full`, `h-screen`\n\nExamples:\n```tsx\ntw('w-full')   \u002F\u002F width: 100%\ntw('h-64')     \u002F\u002F height: 16rem\ntw('w-1\u002F2')    \u002F\u002F width: 50%\n```\n\n### Typography\n\n- **Font Size**: `text-xs`, `text-sm`, `text-base`, `text-lg`, `text-xl`, `text-2xl`, `text-3xl`, `text-4xl`, `text-5xl`, `text-6xl`, `text-7xl`, `text-8xl`, `text-9xl`\n- **Font Weight**: `font-thin`, `font-light`, `font-normal`, `font-medium`, `font-semibold`, `font-bold`, `font-extrabold`, `font-black`\n- **Text Align**: `text-left`, `text-center`, `text-right`\n- **Line Height**: `leading-none`, `leading-tight`, `leading-normal`, `leading-relaxed`, `leading-loose`\n\n### Colors\n\nAll standard Tailwind colors plus shadcn semantic colors:\n\n**Standard colors:**\n- `text-{color}-{shade}`, `bg-{color}-{shade}`, `border-{color}-{shade}`\n- Colors: `red`, `blue`, `green`, `yellow`, `purple`, `pink`, `gray`, `indigo`, `teal`, `orange`\n- Shades: `50`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`\n\n**shadcn semantic colors:**\n- `text-foreground`, `text-primary`, `text-muted-foreground`, `text-destructive`\n- `bg-background`, `bg-card`, `bg-muted`, `bg-accent`, `bg-primary`\n- `border-border`, `border-input`\n\n```tsx\ntw('text-blue-500')        \u002F\u002F Standard Tailwind color\ntw('bg-purple-600')        \u002F\u002F Standard Tailwind color\ntw('text-primary')         \u002F\u002F shadcn semantic color\ntw('bg-card')              \u002F\u002F shadcn semantic color\n```\n\n### Position & Layout\n\n- **Position**: `relative`, `absolute`, `fixed`, `sticky`\n- **Inset**: `inset-0`, `top-0`, `bottom-0`, `left-0`, `right-0`\n- **Z-Index**: `z-0`, `z-10`, `z-20`, `z-30`, `z-40`, `z-50`\n\n### Borders\n\n- **Border Width**: `border`, `border-{n}`, `border-t`, `border-b`, `border-l`, `border-r`\n- **Border Radius**: `rounded`, `rounded-sm`, `rounded-md`, `rounded-lg`, `rounded-xl`, `rounded-2xl`, `rounded-3xl`, `rounded-full`\n- **Border Color**: `border-{color}-{shade}`, `border-border`, `border-input`\n\n### Effects\n\n- **Shadow**: `shadow-sm`, `shadow`, `shadow-md`, `shadow-lg`, `shadow-xl`, `shadow-2xl`\n- **Opacity**: `opacity-0`, `opacity-25`, `opacity-50`, `opacity-75`, `opacity-100`\n\n### Filters\n\n- **Blur**: `blur-none`, `blur-sm`, `blur`, `blur-md`, `blur-lg`, `blur-xl`\n- **Brightness**: `brightness-0`, `brightness-50`, `brightness-100`, `brightness-150`, `brightness-200`\n- **Contrast**: `contrast-0`, `contrast-50`, `contrast-100`, `contrast-150`, `contrast-200`\n\n## Gradients\n\n### Linear Gradients\n\n```tsx\n\u002F\u002F Gradient direction\ntw('bg-gradient-to-r')      \u002F\u002F left to right\ntw('bg-gradient-to-br')     \u002F\u002F top-left to bottom-right\ntw('bg-gradient-to-t')      \u002F\u002F bottom to top\n\n\u002F\u002F Gradient colors\ntw('from-blue-500')         \u002F\u002F Start color\ntw('via-purple-500')        \u002F\u002F Middle color\ntw('to-pink-500')           \u002F\u002F End color\n\n\u002F\u002F Complete gradient\ntw('bg-gradient-to-r from-blue-500 via-purple-500 to-pink-500')\n```\n\n### Gradient Examples\n\n```tsx\nexport default function GradientCard({ title, tw }) {\n  return (\n    \u003Cdiv style={tw('w-full h-full bg-gradient-to-br from-cyan-500 to-blue-600 p-12')}>\n      \u003Ch1 style={tw('text-white text-6xl font-bold')}>\n        {title}\n      \u003C\u002Fh1>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Custom Theme Colors\n\nYou can override the default shadcn colors or add your own custom colors in `.loopwind\u002Floopwind.json`:\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#3b82f6\",\n      \"primary-foreground\": \"#ffffff\",\n      \"accent\": \"#10b981\",\n      \"brand\": \"#ff6b6b\"\n    }\n  }\n}\n```\n\nThen use these custom colors in your templates:\n\n```tsx\ntw('text-brand')    \u002F\u002F Uses your custom brand color\ntw('bg-primary')    \u002F\u002F Uses your custom primary color\ntw('bg-accent')     \u002F\u002F Uses your custom accent color\n```\n\n## Auto-Detection from tailwind.config.js\n\nloopwind automatically detects and loads your project's Tailwind configuration:\n\n```\nyour-project\u002F\n├── tailwind.config.js  ← Automatically detected\n└── .loopwind\u002F\n    ├── loopwind.json\n    └── templates\u002F\n```\n\nThis includes:\n- Custom colors\n- Custom spacing values\n- Custom fonts\n- Theme extensions\n- Custom utilities\n\n## Complete Example\n\n```tsx\nexport default function ModernCard({ \n  tw, \n  image,\n  title, \n  description, \n  category,\n  author,\n  avatar \n}) {\n  return (\n    \u003Cdiv style={tw('w-full h-full bg-card')}>\n      {\u002F* Hero image *\u002F}\n      \u003Cdiv style={tw('relative h-2\u002F3')}>\n        \u003Cimg \n          src={image(hero)} \n          style={tw('w-full h-full object-cover')}\n        \u002F>\n        {\u002F* Category badge *\u002F}\n        \u003Cdiv style={tw('absolute top-4 left-4 bg-primary\u002F90 backdrop-blur px-4 py-2 rounded-full')}>\n          \u003Cspan style={tw('text-sm font-semibold text-primary-foreground')}>\n            {category}\n          \u003C\u002Fspan>\n        \u003C\u002Fdiv>\n      \u003C\u002Fdiv>\n      \n      {\u002F* Content *\u002F}\n      \u003Cdiv style={tw('h-1\u002F3 p-8 flex flex-col justify-between')}>\n        \u003Cdiv>\n          \u003Ch2 style={tw('text-3xl font-bold text-foreground mb-2')}>\n            {title}\n          \u003C\u002Fh2>\n          \u003Cp style={tw('text-muted-foreground line-clamp-2')}>\n            {description}\n          \u003C\u002Fp>\n        \u003C\u002Fdiv>\n        \n        {\u002F* Author *\u002F}\n        \u003Cdiv style={tw('flex items-center gap-3')}>\n          \u003Cimg \n            src={image(avatar)} \n            style={tw('w-10 h-10 rounded-full border-2 border-border')}\n          \u002F>\n          \u003Cspan style={tw('text-sm text-muted-foreground')}>\n            {author}\n          \u003C\u002Fspan>\n        \u003C\u002Fdiv>\n      \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n## Why This Approach?\n\n- **Semantic naming**: `text-primary` instead of `text-blue-600`\n- **Consistency**: All templates use the same design language\n- **Flexibility**: Easy to customize entire theme\n- **Accessibility**: Pre-tested color contrasts\n- **Modern**: Same system as shadcn\u002Fui components\n- **Familiar**: Standard Tailwind syntax\n\n## Next Steps\n\n- [Custom Fonts](\u002Ffonts)\n- [Built-in Helpers](\u002Fhelpers)\n- [Templates](\u002Ftemplates)\n- [Embedding Images](\u002Fimages)\n\n\n\n# Font Handling in loopwind\n\nThe recommended way to use fonts is through `loopwind.json` - configure fonts once, use everywhere.\n\n## Using Fonts from loopwind.json (Recommended)\n\nConfigure fonts in your `.loopwind\u002Floopwind.json` and use Tailwind classes in templates.\n\n### Simple Setup\n\nDefine font families in `.loopwind\u002Floopwind.json` without loading custom fonts (uses system fonts):\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": [\"Inter\", \"system-ui\", \"-apple-system\", \"sans-serif\"],\n    \"serif\": [\"Georgia\", \"serif\"],\n    \"mono\": [\"Courier New\", \"monospace\"]\n  }\n}\n```\n\n**Template usage:**\n```tsx\nexport default function({ title, tw }) {\n  return (\n    \u003Cdiv style={tw('w-full h-full')}>\n      {\u002F* Uses fonts.sans from loopwind.json *\u002F}\n      \u003Ch1 style={tw('font-sans text-6xl font-bold')}>\n        {title}\n      \u003C\u002Fh1>\n\n      {\u002F* Uses fonts.mono from loopwind.json *\u002F}\n      \u003Ccode style={tw('font-mono text-sm')}>\n        {code}\n      \u003C\u002Fcode>\n    \u003C\u002Fdiv>\n  );\n}\n```\n\n**Result:** Uses system fonts, falls back to Inter for rendering.\n\n### Complete Setup (With Font Files)\n\nLoad custom font files for brand-specific typography in `.loopwind\u002Floopwind.json`:\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"system-ui\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FInter-Bold.woff\", \"weight\": 700 }\n      ]\n    },\n    \"mono\": {\n      \"family\": [\"JetBrains Mono\", \"monospace\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FJetBrainsMono-Regular.woff\", \"weight\": 400 }\n      ]\n    }\n  }\n}\n```\n\n**Project structure:**\n```\nyour-project\u002F\n├── .loopwind\u002F\n│   ├── loopwind.json\n│   └── templates\u002F\n└── fonts\u002F\n    ├── Inter-Regular.woff\n    ├── Inter-Bold.woff\n    └── JetBrainsMono-Regular.woff\n```\n\n**Template usage (same as before):**\n```tsx\n\u003Ch1 style={tw('font-sans font-bold')}>\n  {\u002F* Uses Inter Bold from loopwind.json *\u002F}\n  {title}\n\u003C\u002Fh1>\n```\n\n**Available classes:**\n- `font-sans` - Uses `fonts.sans` from loopwind.json\n- `font-serif` - Uses `fonts.serif` from loopwind.json\n- `font-mono` - Uses `fonts.mono` from loopwind.json\n\n**Supported formats:**\n- ✅ **WOFF** (`.woff`) - Recommended for best compatibility\n- ✅ **TTF** (`.ttf`) - Also supported\n- ✅ **OTF** (`.otf`) - Also supported\n- ❌ **WOFF2** (`.woff2`) - Not supported by renderer\n\n## Font Loading Priority\n\nloopwind loads fonts in this order:\n\n1. **loopwind.json fonts** (if configured with `files`)\n2. **Bundled Inter fonts** (included with CLI)\n\nThis ensures fonts work out of the box with no configuration.\n\n## Default Fonts\n\nIf no fonts are configured, loopwind uses **Inter** (Regular 400, Bold 700) which is bundled with the CLI. This means fonts work offline with no configuration required.\n\n## Best Practices\n\n1. ✅ **Use loopwind.json for project-wide fonts** - Configure once, use everywhere\n2. ✅ **Use font classes** - `tw('font-sans')` instead of `fontFamily: 'Inter'`\n3. ✅ **Include fallbacks** - Always add system fonts: `[\"Inter\", \"system-ui\", \"sans-serif\"]`\n4. ✅ **Match names** - First font in `family` array is used as the loaded font name\n5. ✅ **Relative paths** - Font paths are relative to `loopwind.json` location\n\n## Examples\n\n### Minimal Setup (System Fonts)\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": [\"Inter\", \"-apple-system\", \"sans-serif\"]\n  }\n}\n```\nUses system Inter if available, falls back to Noto Sans for rendering.\n\n### Brand Fonts Setup\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Montserrat\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FMontserrat-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FMontserrat-Bold.woff\", \"weight\": 700 }\n      ]\n    }\n  }\n}\n```\nLoads and uses Montserrat for all templates.\n\n### Multi-Font Setup\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FInter-Bold.woff\", \"weight\": 700 }\n      ]\n    },\n    \"serif\": {\n      \"family\": [\"Playfair Display\", \"serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FPlayfair-Regular.woff\", \"weight\": 400 }\n      ]\n    },\n    \"mono\": {\n      \"family\": [\"Fira Code\", \"monospace\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FFiraCode-Regular.woff\", \"weight\": 400 }\n      ]\n    }\n  }\n}\n```\nLoads different fonts for each style class.\n\n### External Font URLs\nLoad fonts directly from CDNs without downloading files:\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        {\n          \"path\": \"https:\u002F\u002Funpkg.com\u002F@fontsource\u002Finter@5.0.18\u002Ffiles\u002Finter-latin-400-normal.woff\",\n          \"weight\": 400\n        },\n        {\n          \"path\": \"https:\u002F\u002Funpkg.com\u002F@fontsource\u002Finter@5.0.18\u002Ffiles\u002Finter-latin-700-normal.woff\",\n          \"weight\": 700\n        }\n      ]\n    }\n  }\n}\n```\n\nYou can also mix local and external fonts:\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        {\n          \"path\": \"https:\u002F\u002Funpkg.com\u002F@fontsource\u002Finter@5.0.18\u002Ffiles\u002Finter-latin-700-normal.woff\",\n          \"weight\": 700\n        }\n      ]\n    }\n  }\n}\n```\n\n**Note:** Use WOFF format (`.woff`) for best compatibility. WOFF2 is not supported by the underlying renderer.\n\n## Performance\n\n- ✅ **Font caching** - Fonts load once and are cached for all renders\n- ✅ **Video optimization** - 90-frame video loads fonts once, not 90 times\n- ✅ **No CDN delays** - Local fonts load instantly\n\n## Next Steps\n\n- [Styling with Tailwind & shadcn\u002Fui](\u002Fstyling)\n- [Built-in Helpers](\u002Fhelpers)\n- [Templates](\u002Ftemplates)\n- [Embedding Images](\u002Fimages)\n\n\n# loopwind.json\n\nConfigure colors and fonts for all your templates in `.loopwind\u002Floopwind.json`.\n\n## File Location\n\n```\nyour-project\u002F\n├── .loopwind\u002F\n│   ├── loopwind.json     ← Configuration file\n│   └── templates\u002F\n```\n\n## Minimal Example\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#3b82f6\",\n      \"background\": \"#ffffff\"\n    }\n  }\n}\n```\n\n## Theme Colors\n\n### Default shadcn\u002Fui Palette\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#18181b\",\n      \"primary-foreground\": \"#fafafa\",\n      \n      \"secondary\": \"#f4f4f5\",\n      \"secondary-foreground\": \"#18181b\",\n      \n      \"background\": \"#ffffff\",\n      \"foreground\": \"#09090b\",\n      \n      \"muted\": \"#f4f4f5\",\n      \"muted-foreground\": \"#71717a\",\n      \n      \"accent\": \"#f4f4f5\",\n      \"accent-foreground\": \"#18181b\",\n      \n      \"destructive\": \"#ef4444\",\n      \"destructive-foreground\": \"#fafafa\",\n      \n      \"border\": \"#e4e4e7\",\n      \"input\": \"#e4e4e7\",\n      \"ring\": \"#18181b\",\n      \n      \"card\": \"#ffffff\",\n      \"card-foreground\": \"#09090b\"\n    }\n  }\n}\n```\n\n### Custom Colors\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#3b82f6\",\n      \"brand\": \"#ff6b6b\",\n      \"success\": \"#22c55e\",\n      \"warning\": \"#f59e0b\"\n    }\n  }\n}\n```\n\n**Use in templates:**\n\n```tsx\ntw('text-brand')      \u002F\u002F #ff6b6b\ntw('bg-success')      \u002F\u002F #22c55e\ntw('border-warning')  \u002F\u002F #f59e0b\n```\n\n## Fonts\n\n### Simple (System Fonts)\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": [\"Inter\", \"system-ui\", \"sans-serif\"],\n    \"serif\": [\"Georgia\", \"serif\"],\n    \"mono\": [\"Courier New\", \"monospace\"]\n  }\n}\n```\n\n### With Font Files\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"system-ui\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FInter-Bold.woff\", \"weight\": 700 }\n      ]\n    }\n  }\n}\n```\n\nPaths are relative to `loopwind.json`.\n\n**Supported formats:**\n- ✅ WOFF (`.woff`)\n- ✅ TTF (`.ttf`)\n- ✅ OTF (`.otf`)\n- ❌ WOFF2 (`.woff2`)\n\n### External URLs\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        {\n          \"path\": \"https:\u002F\u002Funpkg.com\u002F@fontsource\u002Finter@5.0.18\u002Ffiles\u002Finter-latin-400-normal.woff\",\n          \"weight\": 400\n        }\n      ]\n    }\n  }\n}\n```\n\n## Complete Example\n\n```json title=\".loopwind\u002Floopwind.json\"\n{\n  \"theme\": {\n    \"colors\": {\n      \"primary\": \"#6366f1\",\n      \"primary-foreground\": \"#ffffff\",\n      \"background\": \"#ffffff\",\n      \"foreground\": \"#0f172a\",\n      \"muted\": \"#f1f5f9\",\n      \"muted-foreground\": \"#64748b\",\n      \"border\": \"#e2e8f0\",\n      \"card\": \"#ffffff\",\n      \"brand\": \"#8b5cf6\"\n    }\n  },\n  \"fonts\": {\n    \"sans\": {\n      \"family\": [\"Inter\", \"sans-serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FInter-Regular.woff\", \"weight\": 400 },\n        { \"path\": \".\u002Ffonts\u002FInter-Bold.woff\", \"weight\": 700 }\n      ]\n    },\n    \"serif\": {\n      \"family\": [\"Playfair Display\", \"serif\"],\n      \"files\": [\n        { \"path\": \".\u002Ffonts\u002FPlayfair-Regular.woff\", \"weight\": 400 }\n      ]\n    }\n  }\n}\n```\n\n## Schema\n\n```typescript\n{\n  \"theme\"?: {\n    \"colors\"?: {\n      [name: string]: string;  \u002F\u002F Hex color\n    }\n  },\n  \"fonts\"?: {\n    [class: string]: string[] | {\n      family: string[];\n      files: Array\u003C{\n        path: string;    \u002F\u002F Local or URL\n        weight: number;  \u002F\u002F 100-900\n      }>;\n    }\n  }\n}\n```\n\n## Auto-Detection\n\nIf no `loopwind.json` exists, loopwind auto-detects `tailwind.config.js`:\n\n```\nyour-project\u002F\n├── tailwind.config.js  ← Auto-detected\n└── .loopwind\u002F\n    └── templates\u002F\n```\n\n**Priority:**\n1. `.loopwind\u002Floopwind.json`\n2. `tailwind.config.js`\n3. Built-in defaults\n\n## Next Steps\n\n- [Styling](\u002Fstyling) - Use colors in templates\n- [Fonts](\u002Ffonts) - Font configuration details\n- [Getting Started](\u002Fgetting-started) - Setup guide\n\n\n\n\n",{"name":5,"metadata":24,"description":7},{"version":25},"0.25.11","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Ftomtev\u002Floopwind",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill loopwind",{"tool":41,"command":42},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill loopwind",{"tool":44,"command":45},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill loopwind","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftomtev\u002Floopwind\u002FSKILL.md",true,[],[50,58,65,72,79,86],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":57},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":57},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":57},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":57},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":57},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]