AstroFusion Design is an open-source UI library capable of orchestrating Generative UI. It solves the "AI Slop" problem by treating AI Agents as first-class users of the design system, right alongside human developers.
📖 View Documentation | 🧩 Try Components | 🤖 Copy AI Prompts
Note
Using this Template?
If you have forked this repository, run npm run setup to rename all @astrofusion references to your own brand.
# Install the tokens
npm install @astrofusion/design-tokens
# Install platform-specific components
npm install @astrofusion/design-system-web # React + Tailwind
npm install @astrofusion/design-system-native # React NativeNo build step required! Just include the CSS:
<link rel="stylesheet" href="https://astro-fusion.github.io/af-design/styles/tokens.css">
<link rel="stylesheet" href="https://astro-fusion.github.io/af-design/styles/components.css">
<button class="af-button af-button--primary">Click Me</button>import { Button, Card } from '@astrofusion/design-system-web';
export default function App() {
return (
<Card variant="glass">
<Button variant="primary">Generate Chart</Button>
</Card>
);
}af-design/
├── packages/
│ ├── core/ # 🧠 Design Philosophy
│ │ └── tokens/ # Colors, typography, spacing
│ │
│ ├── ui/ # 🎨 Platform Components
│ │ ├── components-web/ # React + Tailwind
│ │ ├── components-native/ # React Native
│ │ ├── components-ios/ # SwiftUI (reference)
│ │ └── components-android/ # Jetpack Compose (reference)
│ │
│ ├── ai/ # 🤖 AI Layer
│ │ ├── mcp-server/ # Model Context Protocol server
│ │ └── prompts/ # Prompt engineering utilities
│ │
│ └── docs/ # 📚 Documentation utilities
│
├── site/ # 🌐 GitHub Pages (static HTML)
│ ├── index.html
│ ├── styles/
│ └── scripts/
│
└── scripts/ # 🔧 Template utilities
Connect to your AI editor (Cursor, Claude Desktop) to give your AI "eyes":
npx @astrofusion/design-mcp-server startGenerate platform-specific AI prompts:
import { PromptEngine } from '@astrofusion/design-prompts';
const prompt = PromptEngine.createContext({
platform: 'react-native',
components: ['Button', 'Card'],
tone: 'mystical'
});Build tokens for all platforms:
cd packages/core/tokens
npm run build| Output | Platform |
|---|---|
dist/css/tokens.css |
Web |
dist/nativewind/theme.ts |
React Native |
dist/swift/DesignTokens.swift |
iOS |
dist/tokens.json |
MCP Server / AI |
npm testSee CONTRIBUTING.md for guidelines.
MIT © AstroFusion