bama
BAMA: Build Any Mac App. Agent skills to research, clone, design, build, optimize, and test native macOS apps with Swift and SwiftUI.
翻譯準備中
: Three AI agent skills that turn paintings into design systems. Extract color, typography, and spacing as W3C DTCG tokens. Generate React components with zero hardcoded values. Compose preview pages
翻譯準備中
技能HTML · TypeScriptGitHub @peiqingzhang自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
安裝型專案無需部署網域也可驗證。個人儲存庫可透過 GitHub 登入驗證,組織儲存庫可使用上方的儲存庫驗證檔案。
: Three AI agent skills that turn paintings into design systems. Extract color, typography, and spacing as W3C DTCG tokens. Generate React components with zero hardcoded values. Compose preview pages to see the system in action. Includes 16 pre-built themes from 8 paintings — a Material Design 3 variant and an expressive variant each.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Turn classic paintings into production-ready design systems — using AI agent skills. Three skills form a pipeline: analyze a painting's colors, generate design tokens, then build a full React component library. Every color, radius, and spacing value traces back to the source artwork.
The tokens and components are structured for AI agents to consume and build with. An agent can read the design tokens, apply them to new UI, or extend the component library — no manual design handoff needed.檢視完整 README ↗Turn classic paintings into production-ready design systems — using AI agent skills. Three skills form a pipeline: analyze a painting's colors, generate design tokens, then build a full React component library. Every color, radius, and spacing value traces back to the source artwork.
The tokens and components are structured for AI agents to consume and build with. An agent can read the design tokens, apply them to new UI, or extend the component library — no manual design handoff needed.
Three self-contained skills in skills/. Each has a SKILL.md (instructions any LLM agent can follow), reference files, and Python scripts that do the heavy lifting.
| Skill | What it does |
|---|---|
| painting-to-m3 | Strict Material Design 3 tokens. Picks 3 maximally-distinct colors for primary/secondary/tertiary, standard near-white surfaces. Drop-in compatible with MUI, Jetpack Compose, Flutter. |
| painting-to-theme | Expressive tokens that capture the painting's full color richness. Bold surfaces pulled from the canvas, extended color tokens for every accent, dark mode from the painting's shadows. |
| tokens-to-components | 25 React components (TypeScript + CSS variables) generated from the tokens. Includes Storybook stories, visual preview HTML, and WCAG AA contrast compliance. |
These skills work with Claude Code (as local plugins), but the SKILL.md format is plain markdown — any AI coding agent (Cursor, Windsurf, Copilot, etc.) can follow the instructions and run the scripts.
Painting image
→ painting-to-m3 or painting-to-theme
→ .tokens.json (W3C DTCG format)
→ tokens-to-components
→ React components + preview.html
Eight paintings, every single of them is completely in the Public Domain., each with both an M3 (strict) and Theme (expressive) variant — 16 complete design systems.
| Theme | Painting | Mood |
|---|---|---|
vangogh-irises | Van Gogh — Irises (1889) | Vibrant, impasto, impressionist energy |
vangogh-green-wheat | Van Gogh — Green Wheat Fields (1890) | Serene, pastoral, luminous |
monet-water-lilies | Monet — Water Lilies (1906) | Serene, ethereal, impressionist reverie |
hokusai-great-wave | Hokusai — The Great Wave (1831) | Dramatic, powerful, ukiyo-e precision |
hopper-nighthawks | Hopper — Nighthawks (1942) | Urban, noir, late-night melancholy |
matisse-red-studio | Matisse — The Red Studio (1911) | Bold, expressive, Fauvist energy |
cezanne-mont-sainte-victoire | Cezanne — Mont Sainte-Victoire (1887) | Structured, contemplative, proto-cubist |
wang-ximeng-rivers-mountains | Wang Ximeng — A Thousand Li (1113) | Majestic, classical Chinese landscape |
themes/{painting-name}/
├── source/painting.jpg # Source painting
├── m3/ # Strict M3 variant
│ ├── tokens/ # .tokens.json, theme.css, tailwind config
│ ├── components/ # 25 React components + Storybook stories
│ └── review/ # preview.html, palette-review.html, contrast-report.md
└── theme/ # Expressive variant
├── tokens/
├── components/
└── review/
Point your agent at a skill's SKILL.md and give it a painting. The instructions and scripts handle the rest.
In Claude Code, install as a local plugin and use the slash commands:
> /painting-to-theme path/to/painting.jpg
> /tokens-to-components path/to/tokens/
The .tokens.json files follow the W3C DTCG spec. Use theme.css for CSS custom properties, or tailwind.config.snippet.js for Tailwind.
Each theme's components/ folder is a self-contained React library:
import { Button, Card, Input } from './components';
import './components/theme.css';
<Button variant="filled">Primary Action</Button>
<Card variant="elevated">Content here</Card>
25 components across 5 sets:
| Set | Components |
|---|---|
| Core | Button, Card, Input, Chip, Badge, Avatar, Divider |
| Navigation | AppBar, Tabs, Sidebar, Breadcrumb, BottomNav |
| Data | Table, List, DataCard, Stat |
| Feedback | Dialog, Snackbar, Tooltip, Progress, Skeleton |
| Layout | Container, Grid, Stack, Surface |
All components follow M3 spec with filled/outlined/tonal variants, state layers, and WCAG AA keyboard accessibility.
The skills and generated code are provided as-is. Source paintings are public domain.