ED

enesozturk/dimensional-drawing

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1774 stars 质量 74 趋势 83MIT

创建 UI 组件的 Apple 风格维图.

概览

给它一个UI组件,拿回一页的技术画. 平板,缺口,角光度,地层和取景口布置,被测量并贴上苹果的维图等标签. 安装 ・ 使用 ・ 移动 ・ 实例 苹果公司为每个设备发布维度图画,这样从属制作人就可以构建出适合的案例. 它们是冷静的,密集而美丽的:一张纸,几张视图,细小的细节圈子,到处都是数字. 这回宝教你的经纪人要用同样的方式画 一张卡片或一个对话框就成为一张你可以交给任何人的图谱表,他们会重建它的架构:垫子,缺口,光线,层等,它是如何坐落在取景口的. 复制和内容被故意省去,所以当文本改变时图纸仍然真实. 将技能文件夹(例如技能/维度绘图)拉上拉链,并在设置-能力-技能下添加. (Codex, Cursor,双子座CLI,.):使用技能CLI,或者将你的代理指向SKILL.md文件.

概述(AI 翻译)

维度绘图 QQ

给它一个UI组件,拿回一页的技术画. 平板,缺口,角光度,地层和取景口布置,被测量并贴上苹果的维图等标签.

安装… 用它来… 让它移动… 实例

– – . . .

苹果公司为每个设备发布维度图画,这样从属制作人就可以构建出适合的案例. 它们是冷静的,密集而美丽的:一张纸,几张视图,细小的细节圈子,到处都是数字.

这个Repo教你的代理 绘制你的组件 同样的方式。 一张卡片或一个对话框 变成了一张你可以交给任何人的图谱 他们将重建它的“建筑图谱 ” : 垫子、空隙、光度、层层、 如何在取景口坐落。 复制和内容被故意省去,所以当文本改变时图纸仍然真实.

□ 什么是内 □

房子规则

{\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢? |-|-|-.


*** 建筑,不是内容**

  • ***可变数,而非数字 *** [[T3]、[T4]、[T5]、[[T6]

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

dimensional-drawing ✏️📐

Give it a UI component, get back a one-page technical drawing of it. Paddings, gaps, corner radii, layers and viewport placement, measured and labeled like Apple’s dimensional drawings.

Install · Use it · Make it move · Examples


Apple publishes dimensional drawings for every device so accessory makers can build cases that fit. They are calm, dense and beautiful: one sheet, a few views, tiny detail circles, numbers everywhere.

This repo teaches your agent to draw your components the same way. A card or a dialog becomes a spec sheet you could hand to anyone and they would rebuild its architecture: paddings, gaps, radii, layers, how it sits in the viewport. Copy and content are left out on purpose, so the drawing stays true when the text changes.

What’s inside 🎁

skills/
├── dimensional-drawing/          the drawing skill
│   ├── SKILL.md
│   └── examples/                 card + dialog sheets (single HTML files)
└── dimensional-drawing-motion/   turns a sheet into a ~10 s film
    ├── SKILL.md
    ├── templates/                reference scene + stylesheet
    └── adapters/
        ├── claude-motion.md      Claude's Motion artifact (primary)
        └── headless/             Playwright + ffmpeg, no Claude needed

The house rules

⚫️ Monochrome grays only; things are told apart by line weight, dashes and hatches
🧱 Architecture, not content TITLE SLOT · FLEX, ACTION · HUG, CONTENT SLOT · FILL
🔤 Variables, not numbers S1, R2, H1 = 2·S1 + H3, R2 = R1 − B − S6
🏷️ Unbranded neutral names like UI-CARD-001
🙅 Never invent values unknowns stay [TBD]

Install

Claude Code

git clone https://github.com/enesozturk/dimensional-drawing
cp -r dimensional-drawing/skills/* ~/.claude/skills/

claude.ai / Claude desktop: zip a skill folder (for example skills/dimensional-drawing) and add it under Settings → Capabilities → Skills.

Any other agent (Codex, Cursor, Gemini CLI, …): use the skills CLI, or point your agent at the SKILL.md files.

npx skills add enesozturk/dimensional-drawing

Use it

Ask for a drawing and point at the source (a repo file, a Storybook story, a URL, a screenshot):

Make a dimensional drawing of the Card component in src/components/Card.tsx

Draw the anatomy of our settings dialog, same style as the examples

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add enesozturk/dimensional-drawing
新手?先看 mcpskill.org 教程 →