@inversestudio/create-figma-plugin-native
v1.0.0
Published
Scaffold production-ready Figma plugins with native design system, AI-optimized documentation, and best practices
Downloads
7
Readme
@inversestudio/create-figma-plugin-native
Scaffold production-ready Figma plugins with native design system, AI-optimized documentation, and best practices built in.
Features
🚀 Quick Setup — Production-ready in 5 minutes
📚 Complete Documentation — 7 comprehensive guides for AI and humans
🎨 Native Design System — Figma's design tokens fully documented
🔧 Custom Components — Checkbox, Radio, Toggle, Tabs, Modal included
🤖 AI Integration — Claude skill + Cursor rules built in
🌗 Dark Mode — Proper color pairing from day one
⚡ Modern Tooling — Preact + Tailwind CSS v4 + TypeScript
Quick Start
npm create @inversestudio/figma-plugin-native@latest my-plugin
cd my-plugin
npm install
npm run watchThen in Figma:
- Plugins → Development → Import plugin from manifest
- Select your
manifest.json - Run the plugin!
Interactive Mode
npm create @inversestudio/figma-plugin-native@latestThe CLI will guide you through:
- 📝 Project name
- 🎨 Framework choice (create-figma-plugin or Plugma)
- 🎯 Component selection
- 📚 Documentation options
- 🤖 AI integration files
Command Line Options
npm create @inversestudio/figma-plugin-native@latest my-plugin [options]Options
--template, -t <name>— Template:create-figma-plugin(default) orplugma--framework, -f <name>— For Plugma:react,svelte,vue,vanilla--tailwind— Include Tailwind CSS (default: true)--components— Include custom components (default: true)--no-docs— Skip documentation--no-skill— Skip Claude skill--no-cursor— Skip Cursor rules
Examples
# Full setup with everything (default)
npm create @inversestudio/figma-plugin-native@latest my-plugin
# Minimal setup without docs
npm create @inversestudio/figma-plugin-native@latest my-plugin --no-docs
# With Plugma and React
npm create @inversestudio/figma-plugin-native@latest my-plugin --template plugma --framework reactWhat's Included
📚 Documentation
- Design Principles — Essential guidelines for native Figma UI
- UI Components Reference — Complete API for all components
- Design System — Colors, typography, layout specifications
- Quick Start — Rapid setup guide
- Cheat Sheet — Quick reference for common patterns
- Comparison — This vs. Plugma vs. create-figma-plugin
🔧 Custom Components
- Checkbox — With indeterminate state
- Radio Button — With group management
- Toggle Switch — Native Figma styling
- Tabs — Fully accessible tabs component
- Modal Dialog — With backdrop and animations
🤖 AI Integration
.cursorrules— Optimized for Cursor IDEfigma-plugin.skill— Packaged Claude skill- AI-optimized docs — Structured for AI comprehension
🎨 Design System
- All Figma CSS variables documented
- Proper dark mode color pairings
- Typography scale (11px, 12px, 13px with line heights)
- Spacing system (4px, 8px, 16px, 24px, 32px)
- Custom scrollbar (zero layout shift)
Building with AI
- Share
./docs/FIGMA-PLUGIN-DESIGN-PRINCIPLES.mdwith your AI assistant (Claude, ChatGPT, Cursor) - Describe your plugin idea in plain language
- Let AI build using the comprehensive documentation
Example:
"Build a plugin that converts hex colors to Tailwind CSS classes"
Your AI will create a professional, production-ready plugin with proper theming, typography, and native Figma UI.
Project Structure
my-plugin/
├── src/
│ ├── main.ts ← Backend logic
│ ├── ui.tsx ← UI with custom scrollbar
│ ├── input.css ← Tailwind + custom styles
│ ├── components/ ← Custom components
│ │ ├── Checkbox.tsx
│ │ ├── Radio.tsx
│ │ └── Toggle.tsx
│ └── types/ ← TypeScript types
├── docs/ ← Full documentation
│ ├── FIGMA-PLUGIN-DESIGN-PRINCIPLES.md
│ ├── FIGMA-PLUGIN-UI-COMPONENTS-REFERENCE.md
│ └── ... (7 guides total)
├── figma-plugin.skill ← Claude skill
├── .cursorrules ← Cursor IDE rules
├── package.json
├── tsconfig.json
└── tailwind.config.jsDevelopment Workflow
# Development with hot reload
npm run watch
# Build for production
npm run build
# Build CSS only
npm run build:cssIn Figma, reload with: Cmd/Ctrl + Option/Alt + P → "Reload plugin"
Requirements
- Node.js 18+
- npm, yarn, pnpm, or bun
- Figma desktop app
Why This Package?
| Feature | create-figma-plugin-native | create-figma-plugin | plugma | |---------|---------------------------|---------------------|--------| | Documentation | ✅ 7 comprehensive guides | ⚠️ Basic README | ⚠️ Basic docs | | Custom Components | ✅ 5 components included | ❌ None | ❌ None | | AI Integration | ✅ Claude + Cursor | ❌ No | ❌ No | | Design System | ✅ Fully documented | ⚠️ Implied | ❌ Build your own | | Dark Mode Guide | ✅ Complete | ⚠️ Basic | ❌ Manual | | Custom Scrollbar | ✅ Included | ❌ No | ❌ No |
Testimonials
"This saved me hours of setup and documentation reading. The AI integration is game-changing."
"Finally, a plugin starter that understands design systems. The dark mode just works."
"The custom components are production-ready. No more fighting with Figma's UI."
Links
License
MIT © inversestudio
Contributing
Contributions welcome! Please read our contributing guidelines first.
Built with ❤️ for the Figma community
Ready to build? → npm create @inversestudio/figma-plugin-native@latest
