JimLiu/baocut / skills/baocut/built-in-skills/design
design
Verified用户要做界面、网页、海报、图表或信息图、示意图、原型这类视觉设计稿时用:在工作目录写一份设计稿(canvas.json 加每块画板一个 .dc.html),校验通过后线程里出现设计稿卡片,用户在功能区预览、编辑与标注。也用于按用户的意见或设计稿标注改已有的设计稿。幻灯片不用它(用 slides),视频画面里的字卡与动效也不用它(用动效图形)。
| File | Kind | Size |
|---|---|---|
| .baocut-meta.json | config | 1.8 KB |
| SKILL.md | skill md | 17.5 KB |
| references/brand-colors.md | markdown | 2.2 KB |
| references/brand-typography.md | markdown | 1.5 KB |
| references/craft.md | markdown | 15.3 KB |
| references/design-system-components.md | markdown | 11.5 KB |
| references/diagrams.md | markdown | 9.9 KB |
| references/format.md | markdown | 11.6 KB |
| references/print.md | markdown | 5.5 KB |
| references/questions.md | markdown | 4.6 KB |
| references/view-state.md | markdown | 5.4 KB |
references/print.md
View on GitHub# 印刷设计:海报、传单、宣传册、文档,任何以 PDF 导出的东西
印刷作品通过 Export PDF 导出,有两种形态。在做第一块画板**之前**决定用哪种;需求没说、又有人能回答时,用平白的话问(「每页单独设计,还是文字自动排到一页页上?多大尺寸?」);没人可问:文档用流式,其余都用固定页,纸张用 Letter/A4。
- **固定页**(`print` 不写或为 `"fixed"`):每块画板正好是**一**页 PDF,尺寸就是它 frame 的大小。海报、传单、证书、简历、宣传册的各面、单页介绍:任何作为 layout 来设计的页面,以及任何说明了页数的需求。
- **流式**(`"print": "flow"` + `"paper": "letter"|"a4"`):**一**块放连续内容的画板,由导出时分页。报告、备忘录、信件、论文、指南。
(`print`、`paper`、`w`、`h` 是画板在 canvas.json 里的字段;在由这个类型创建的设计稿里,就是 `<canvas>/canvas.json` 中它的 `boards` entry 里的同名键。)
## 纸张与单位(CSS px,按 96 px/in)
- 固定页:PDF 页面就是按这个比例换算的 frame;流式:纸张的尺寸。
- Letter 816×1056 · A4 794×1123 · 横向 = 两者对调(仅限固定页)。
北美读者用 Letter,明显使用公制的读者用 A4;拿不准 → Letter。
- 仅限固定页:Legal 816×1344 · Tabloid 1056×1632 · A5 559×794 ·
A3 1123×1587 · 用户**给定**尺寸的海报 = 英寸 × 96(18×24in → 1728×2304;每边 ≤ 8000)。没给尺寸 → 用 Letter/A4 设计,绝不自创纸张尺寸。
- 1in = 96px · 1pt = 4/3px(12pt = 16px,9pt = 12px)· 0.75in = 72px ·
1mm ≈ 3.78px。写的时候用 px;思考时用 pt 和英寸。绝不用 vh/vw 或窗口百分比:它们跟随的是编辑器会改变大小的 viewport,而不是纸张。
## 固定页
- 根元素固定为 frame 的 `w`×`h`(`$preview` 也一样);**填满**页面;超出边缘的内容在 PDF 里会被裁掉,绝不会挪到下一页:动手写之前先规划好高度。
- 页面是满版出血的:背景可以铺到边缘,内容不行:每条边内侧留出 ≥40px 空白,连续正文四周留 72px(0.75in)。
- 多页作品是**一组**画板,每页一块,按阅读顺序(左→右,再到下一行)排在设计稿的一个 page 上,这个 page 上不放别的;「All artboards (.pdf)」就是这个 page 上的所有画板,按这个顺序合成一个文件。
- 页码、页眉、每张纸上的信头:画在每块画板上。双面传单 = 2 块画板。三折页 = 2 块各含 3 栏的画板:外侧一面 = 内折页 · 封底 · **封面**(最右);内侧一面 = 一个从左→右读的跨页。按读者展开它的顺序来写(封面给出承诺,内页分三拍兑现,封底写具体安排和联系方式)。
## 流式文档
- `paper` 为 `"letter"` 时 `w` 816,为 `"a4"` 时 794;只能纵向。根元素 `width` = `w`,**不**设固定高度(印刷文档宽度是固定 px、高度随内容;PAGE 则根本没有 px 宽度),也不要内部滚动容器;frame `h` = 内容的高度,上限 8000(更长的内容仍会完整导出;画布只显示前 8000px)。
- 页边距由你来定:根元素四周 padding 72px(0.75in),这个 padding 就是打印出来的页边距。每个分页处,导出只在切口下方和下一页内容上方加 ≈53px(一页的 5%),用 `<body>`/`<html>` 的背景填充:纸张颜色设在那里,不要设在内部的盒子上。
- 分页位置由导出器决定,不由 CSS 决定:它在文本行**之间**切,绝不切穿 `<img>`/`<svg>`(照片用 `<img>` 放,绝不用 `background-image`:那样会被切开);其他东西都不会保持完整:带边框的盒子、表格或卡片都可能在其中两行之间被分开。`break-before/inside`、`orphans`/`widows`、`@page` 和重复的 `<thead>` 在这里都不起作用,你也没法强制换页。每个图 + 图注都要远小于一页;图注仍可能落到下一页,高于 ≈950px 的图片会在页尾处被切断。在意分割位置或需要强制从新页开始时,改做一组固定页。
- 连续正文只用**一**栏:CSS `columns` 和并排的文字栏会贯穿整篇文档的高度,再被切到各页上:只在比一页短的块里用它们。
- 没有每页重复的东西(没有页眉、页脚或页码);不用 `position: fixed/sticky`;每块画板 ≤100 页。
## 文字、表格、ink
- 文档以自己的 `<h1>` 开头(不另做报头),然后是清晰的 h2/h3 层级;正文 16px(12pt),行高 1.5–1.65,measure 60–75 个字符;图注和脚注 ≥12px(9pt),不能再小。标题用 `text-wrap: balance`,正文用 `pretty`。
- 表格:一行表头,线 ≥1px(更细的发丝线印到纸上会看不见),数字右对齐;图和代码块配一行图注。
- ink:浅色纸上用接近黑色的正文;不要大面积深色铺底;灰色文字不能浅于 #767676;描边 ≥1px;转成灰度后仍必须能读。
- 传单是隔着一个房间、三秒钟内被读完的:**一**行主导文字(≤6 个词,80px/60pt+),其余一切明显处于从属地位;五个 W——是什么、什么时候、在哪里、花多少钱、一种行动方式(短网址或 QR 码、电话、可选的一排虚线格撕条)——紧凑地放在一起,不要散在大段文字里;优先用平涂色块和矢量图形,而不是照片和渐变;删减 copy,直到层级一眼就能看出来。
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| canvas-designanthropics/skillsCreate beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| docxanthropics/skillsUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pdfanthropics/skillsUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| pptxanthropics/skillsUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions "deck," "slides," "presentation," or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |