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.