anima-hello-world

Featured

Generate React/Vue/HTML code from a Figma design using the Anima SDK. Use when testing design-to-code conversion, learning Anima's code output format, or building your first automated design-to-code pipeline. Trigger: "anima hello world", "anima example", "figma to react", "figma to code", "anima generate code".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Anima Hello World ## Overview Generate production-ready React, Vue, or HTML code from a Figma design using the `@animaapp/anima-sdk`. This example converts a Figma component into clean TypeScript React with Tailwind CSS. ## Prerequisites - Completed `anima-install-auth` setup - A Figma file with at least one frame/component - Know your file key and node ID ## Instructions ### Step 1: Generate React + Tailwind Code ```typescript // src/hello-world.ts import { Anima } from '@animaapp/anima-sdk'; import fs from 'fs'; import path from 'path'; const anima = new Anima({ auth: { token: process.env.ANIMA_TOKEN! }, }); async function generateReactComponent() { const { files } = await anima.generateCode({ fileKey: process.env.FIGMA_FILE_KEY!, // From Figma URL figmaToken: process.env.FIGMA_TOKEN!, nodesId: [process.env.FIGMA_NODE_ID!], // e.g., '1:2' settings: { language: 'typescript', framework: 'react', styling: 'tailwind', uiLibrary: 'none', // or 'mui', 'antd', 'shadcn' }, }); // Write generated files to disk const outputDir = './generated'; fs.mkdirSync(outputDir, { recursive: true }); for (const file of files) { const filePath = path.join(outputDir, file.fileName); fs.writeFileSync(filePath, file.content); console.log(`Generated: ${filePath} (${file.content.length} chars)`); } return files; } generateReactComponent().catch(console.error); ``` ### Step 2: Try Different Framework Outpu...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category