Skip to content

marktantongco/promptc-os-ai-prompt-wiki / skills/design

Design Skill

Flagged

Route design-related HTML artifact tasks to the right artifact skill, reference, design system generation, or export skill.

FileKindSize
INDEX.mdexecutablescript6.2 KB
SKILL.mdexecutableskill md40.9 KB
canvas-and-device.mdexecutablescript11.0 KB
content-page.mdexecutablescript15.4 KB
deck.mdexecutablescript4.5 KB
design-system-generation.mdexecutablescript18.6 KB
design-system-reference.mdexecutablescript16.4 KB
design-systems/INDEX.mdexecutablescript15.2 KB
design-systems/TAG-VOCABULARY.mdexecutablescript2.0 KB
design-systems/brand-inspiration/airbnb/DESIGN.mdexecutablescript29.8 KB
design-systems/brand-inspiration/airbnb/README.mdexecutablescript200 B
design-systems/brand-inspiration/airbnb/components.htmlexecutablescript55.7 KB
design-systems/brand-inspiration/airbnb/tokens.cssexecutablescript14.5 KB
design-systems/brand-inspiration/airtable/DESIGN.mdexecutablescript34.4 KB
design-systems/brand-inspiration/airtable/README.mdexecutablescript204 B
design-systems/brand-inspiration/apple/DESIGN.mdexecutablescript36.2 KB
design-systems/brand-inspiration/apple/README.mdexecutablescript198 B
design-systems/brand-inspiration/apple/components.htmlexecutablescript28.4 KB
design-systems/brand-inspiration/apple/tokens.cssexecutablescript16.4 KB
design-systems/brand-inspiration/arc/DESIGN.mdexecutablescript7.1 KB
design-systems/brand-inspiration/binance/DESIGN.mdexecutablescript39.0 KB
design-systems/brand-inspiration/binance/README.mdexecutablescript202 B
design-systems/brand-inspiration/bmw-m/DESIGN.mdexecutablescript30.0 KB
design-systems/brand-inspiration/bmw-m/README.mdexecutablescript198 B
design-systems/brand-inspiration/bmw/DESIGN.mdexecutablescript27.2 KB
design-systems/brand-inspiration/bmw/README.mdexecutablescript194 B
design-systems/brand-inspiration/bugatti/DESIGN.mdexecutablescript27.9 KB
design-systems/brand-inspiration/bugatti/README.mdexecutablescript202 B
design-systems/brand-inspiration/cal/DESIGN.mdexecutablescript30.4 KB
design-systems/brand-inspiration/cal/README.mdexecutablescript194 B
design-systems/brand-inspiration/canva/DESIGN.mdexecutablescript6.9 KB
design-systems/brand-inspiration/cisco/DESIGN.mdexecutablescript11.3 KB
design-systems/brand-inspiration/claude/DESIGN.mdexecutablescript32.8 KB
design-systems/brand-inspiration/claude/README.mdexecutablescript200 B
design-systems/brand-inspiration/clay/DESIGN.mdexecutablescript25.1 KB
design-systems/brand-inspiration/clay/README.mdexecutablescript196 B
design-systems/brand-inspiration/clickhouse/DESIGN.mdexecutablescript25.4 KB
design-systems/brand-inspiration/clickhouse/README.mdexecutablescript208 B
design-systems/brand-inspiration/cohere/DESIGN.mdexecutablescript19.5 KB
design-systems/brand-inspiration/cohere/README.mdexecutablescript200 B
design-systems/brand-inspiration/coinbase/DESIGN.mdexecutablescript25.2 KB
design-systems/brand-inspiration/coinbase/README.mdexecutablescript204 B
design-systems/brand-inspiration/composio/DESIGN.mdexecutablescript20.1 KB
design-systems/brand-inspiration/composio/README.mdexecutablescript204 B
design-systems/brand-inspiration/cursor/DESIGN.mdexecutablescript21.2 KB
design-systems/brand-inspiration/cursor/README.mdexecutablescript200 B
design-systems/brand-inspiration/cursor/components.htmlexecutablescript24.6 KB
design-systems/brand-inspiration/cursor/tokens.cssexecutablescript12.7 KB
design-systems/brand-inspiration/discord/DESIGN.mdexecutablescript7.6 KB
design-systems/brand-inspiration/discord/components.htmlexecutablescript13.1 KB
design-systems/brand-inspiration/discord/tokens.cssexecutablescript7.4 KB
design-systems/brand-inspiration/duolingo/DESIGN.mdexecutablescript6.8 KB
design-systems/brand-inspiration/elevenlabs/DESIGN.mdexecutablescript20.4 KB
design-systems/brand-inspiration/elevenlabs/README.mdexecutablescript208 B
design-systems/brand-inspiration/expo/DESIGN.mdexecutablescript21.1 KB
design-systems/brand-inspiration/expo/README.mdexecutablescript196 B
design-systems/brand-inspiration/ferrari/DESIGN.mdexecutablescript23.8 KB
design-systems/brand-inspiration/ferrari/README.mdexecutablescript202 B
design-systems/brand-inspiration/figma/DESIGN.mdexecutablescript31.5 KB
design-systems/brand-inspiration/figma/README.mdexecutablescript198 B
design-systems/brand-inspiration/figma/components.htmlexecutablescript12.7 KB
design-systems/brand-inspiration/figma/tokens.cssexecutablescript7.3 KB
design-systems/brand-inspiration/framer/DESIGN.mdexecutablescript28.4 KB
design-systems/brand-inspiration/framer/README.mdexecutablescript200 B
design-systems/brand-inspiration/github/DESIGN.mdexecutablescript7.4 KB
design-systems/brand-inspiration/github/components.htmlexecutablescript14.0 KB
design-systems/brand-inspiration/github/tokens.cssexecutablescript7.6 KB
design-systems/brand-inspiration/hashicorp/DESIGN.mdexecutablescript27.4 KB
design-systems/brand-inspiration/hashicorp/README.mdexecutablescript206 B
design-systems/brand-inspiration/huggingface/DESIGN.mdexecutablescript6.8 KB
design-systems/brand-inspiration/ibm/DESIGN.mdexecutablescript25.8 KB
design-systems/brand-inspiration/ibm/README.mdexecutablescript194 B
design-systems/brand-inspiration/intercom/DESIGN.mdexecutablescript22.7 KB
design-systems/brand-inspiration/intercom/README.mdexecutablescript204 B
design-systems/brand-inspiration/kami/DESIGN.mdexecutablescript22.1 KB
design-systems/brand-inspiration/kami/components.htmlexecutablescript22.5 KB
design-systems/brand-inspiration/kami/tokens.cssexecutablescript14.5 KB
design-systems/brand-inspiration/kraken/DESIGN.mdexecutablescript4.7 KB
design-systems/brand-inspiration/kraken/README.mdexecutablescript200 B
design-systems/brand-inspiration/lamborghini/DESIGN.mdexecutablescript21.1 KB
design-systems/brand-inspiration/lamborghini/README.mdexecutablescript210 B
design-systems/brand-inspiration/linear-app/DESIGN.mdexecutablescript22.4 KB
design-systems/brand-inspiration/linear-app/components.htmlexecutablescript14.2 KB
design-systems/brand-inspiration/linear-app/tokens.cssexecutablescript7.7 KB
design-systems/brand-inspiration/loom/DESIGN.mdexecutablescript7.6 KB
design-systems/brand-inspiration/lovable/DESIGN.mdexecutablescript17.3 KB
design-systems/brand-inspiration/lovable/README.mdexecutablescript202 B
design-systems/brand-inspiration/mastercard/DESIGN.mdexecutablescript26.8 KB
design-systems/brand-inspiration/mastercard/README.mdexecutablescript208 B
design-systems/brand-inspiration/meta/DESIGN.mdexecutablescript37.1 KB
design-systems/brand-inspiration/meta/README.mdexecutablescript196 B
design-systems/brand-inspiration/minimax/DESIGN.mdexecutablescript37.0 KB
design-systems/brand-inspiration/minimax/README.mdexecutablescript202 B
design-systems/brand-inspiration/mintlify/DESIGN.mdexecutablescript43.0 KB
design-systems/brand-inspiration/mintlify/README.mdexecutablescript204 B
design-systems/brand-inspiration/miro/DESIGN.mdexecutablescript35.7 KB
design-systems/brand-inspiration/miro/README.mdexecutablescript196 B
design-systems/brand-inspiration/mistral-ai/DESIGN.mdexecutablescript15.7 KB
design-systems/brand-inspiration/mistral.ai/DESIGN.mdexecutablescript34.7 KB
design-systems/brand-inspiration/mistral.ai/README.mdexecutablescript208 B
design-systems/brand-inspiration/mongodb/DESIGN.mdexecutablescript31.3 KB
design-systems/brand-inspiration/mongodb/README.mdexecutablescript202 B
design-systems/brand-inspiration/nike/DESIGN.mdexecutablescript35.8 KB
design-systems/brand-inspiration/nike/README.mdexecutablescript196 B
design-systems/brand-inspiration/notion/DESIGN.mdexecutablescript34.3 KB
design-systems/brand-inspiration/notion/README.mdexecutablescript200 B
design-systems/brand-inspiration/notion/components.htmlexecutablescript17.1 KB
design-systems/brand-inspiration/notion/tokens.cssexecutablescript7.6 KB
design-systems/brand-inspiration/nvidia/DESIGN.mdexecutablescript34.7 KB
design-systems/brand-inspiration/nvidia/README.mdexecutablescript200 B
design-systems/brand-inspiration/ollama/DESIGN.mdexecutablescript32.0 KB
design-systems/brand-inspiration/ollama/README.mdexecutablescript200 B
design-systems/brand-inspiration/openai/DESIGN.mdexecutablescript6.8 KB
design-systems/brand-inspiration/openai/components.htmlexecutablescript14.1 KB
design-systems/brand-inspiration/openai/tokens.cssexecutablescript7.9 KB
design-systems/brand-inspiration/opencode-ai/DESIGN.mdexecutablescript15.6 KB
design-systems/brand-inspiration/opencode.ai/DESIGN.mdexecutablescript31.9 KB
design-systems/brand-inspiration/opencode.ai/README.mdexecutablescript210 B
design-systems/brand-inspiration/perplexity/DESIGN.mdexecutablescript11.6 KB
design-systems/brand-inspiration/pinterest/DESIGN.mdexecutablescript35.5 KB
design-systems/brand-inspiration/pinterest/README.mdexecutablescript206 B
design-systems/brand-inspiration/playstation/DESIGN.mdexecutablescript38.8 KB
design-systems/brand-inspiration/playstation/README.mdexecutablescript210 B
design-systems/brand-inspiration/posthog/DESIGN.mdexecutablescript39.5 KB
design-systems/brand-inspiration/posthog/README.mdexecutablescript202 B
design-systems/brand-inspiration/raycast/DESIGN.mdexecutablescript39.4 KB
design-systems/brand-inspiration/raycast/README.mdexecutablescript202 B
design-systems/brand-inspiration/renault/DESIGN.mdexecutablescript29.4 KB
design-systems/brand-inspiration/renault/README.mdexecutablescript202 B
design-systems/brand-inspiration/replicate/DESIGN.mdexecutablescript30.7 KB
design-systems/brand-inspiration/replicate/README.mdexecutablescript206 B
design-systems/brand-inspiration/resend/DESIGN.mdexecutablescript30.7 KB
design-systems/brand-inspiration/resend/README.mdexecutablescript200 B
design-systems/brand-inspiration/revolut/DESIGN.mdexecutablescript31.3 KB
design-systems/brand-inspiration/revolut/README.mdexecutablescript202 B
design-systems/brand-inspiration/runwayml/DESIGN.mdexecutablescript14.5 KB
design-systems/brand-inspiration/runwayml/README.mdexecutablescript204 B
design-systems/brand-inspiration/sanity/DESIGN.mdexecutablescript21.2 KB
design-systems/brand-inspiration/sanity/README.mdexecutablescript200 B
design-systems/brand-inspiration/sentry/DESIGN.mdexecutablescript34.6 KB
design-systems/brand-inspiration/sentry/README.mdexecutablescript200 B
design-systems/brand-inspiration/shopify/DESIGN.mdexecutablescript26.4 KB
design-systems/brand-inspiration/shopify/README.mdexecutablescript202 B
design-systems/brand-inspiration/shopify/components.htmlexecutablescript12.8 KB
design-systems/brand-inspiration/shopify/tokens.cssexecutablescript8.4 KB
design-systems/brand-inspiration/slack/DESIGN.mdexecutablescript23.9 KB
design-systems/brand-inspiration/slack/components.htmlexecutablescript13.9 KB
design-systems/brand-inspiration/slack/tokens.cssexecutablescript7.4 KB
design-systems/brand-inspiration/spacex/DESIGN.mdexecutablescript19.2 KB
design-systems/brand-inspiration/spacex/README.mdexecutablescript200 B
design-systems/brand-inspiration/spotify/DESIGN.mdexecutablescript13.1 KB
design-systems/brand-inspiration/spotify/README.mdexecutablescript202 B
design-systems/brand-inspiration/spotify/components.htmlexecutablescript13.9 KB
design-systems/brand-inspiration/spotify/tokens.cssexecutablescript7.8 KB
design-systems/brand-inspiration/starbucks/DESIGN.mdexecutablescript36.9 KB
design-systems/brand-inspiration/starbucks/README.mdexecutablescript206 B
design-systems/brand-inspiration/stripe/DESIGN.mdexecutablescript24.0 KB
design-systems/brand-inspiration/stripe/README.mdexecutablescript200 B
design-systems/brand-inspiration/stripe/components.htmlexecutablescript38.6 KB
design-systems/brand-inspiration/stripe/tokens.cssexecutablescript16.3 KB
design-systems/brand-inspiration/supabase/DESIGN.mdexecutablescript20.8 KB
design-systems/brand-inspiration/supabase/README.mdexecutablescript204 B
design-systems/brand-inspiration/superhuman/DESIGN.mdexecutablescript21.3 KB
design-systems/brand-inspiration/superhuman/README.mdexecutablescript208 B
design-systems/brand-inspiration/tesla/DESIGN.mdexecutablescript22.1 KB
design-systems/brand-inspiration/tesla/README.mdexecutablescript198 B
design-systems/brand-inspiration/theverge/DESIGN.mdexecutablescript28.1 KB
design-systems/brand-inspiration/theverge/README.mdexecutablescript204 B
design-systems/brand-inspiration/together-ai/DESIGN.mdexecutablescript14.4 KB
design-systems/brand-inspiration/together.ai/DESIGN.mdexecutablescript37.4 KB
design-systems/brand-inspiration/together.ai/README.mdexecutablescript210 B
design-systems/brand-inspiration/uber/DESIGN.mdexecutablescript33.9 KB
design-systems/brand-inspiration/uber/README.mdexecutablescript196 B
design-systems/brand-inspiration/uber/components.htmlexecutablescript12.9 KB
design-systems/brand-inspiration/uber/tokens.cssexecutablescript7.9 KB
design-systems/brand-inspiration/vercel/DESIGN.mdexecutablescript40.4 KB
design-systems/brand-inspiration/vercel/README.mdexecutablescript200 B
design-systems/brand-inspiration/vercel/components.htmlexecutablescript32.7 KB
design-systems/brand-inspiration/vercel/tokens.cssexecutablescript15.5 KB
design-systems/brand-inspiration/vodafone/DESIGN.mdexecutablescript27.4 KB
design-systems/brand-inspiration/vodafone/README.mdexecutablescript204 B
design-systems/brand-inspiration/voltagent/DESIGN.mdexecutablescript25.3 KB
design-systems/brand-inspiration/voltagent/README.mdexecutablescript206 B
design-systems/brand-inspiration/warp/DESIGN.mdexecutablescript23.8 KB
design-systems/brand-inspiration/warp/README.mdexecutablescript196 B
design-systems/brand-inspiration/webex/DESIGN.mdexecutablescript10.5 KB
design-systems/brand-inspiration/webflow/DESIGN.mdexecutablescript27.5 KB
design-systems/brand-inspiration/webflow/README.mdexecutablescript202 B
design-systems/brand-inspiration/wechat/DESIGN.mdexecutablescript6.5 KB
design-systems/brand-inspiration/wired/DESIGN.mdexecutablescript23.1 KB
design-systems/brand-inspiration/wired/README.mdexecutablescript198 B
design-systems/brand-inspiration/wise/DESIGN.mdexecutablescript24.0 KB
design-systems/brand-inspiration/wise/README.mdexecutablescript196 B
design-systems/brand-inspiration/x-ai/DESIGN.mdexecutablescript16.3 KB
design-systems/brand-inspiration/x.ai/DESIGN.mdexecutablescript21.2 KB
design-systems/brand-inspiration/x.ai/README.mdexecutablescript195 B
design-systems/brand-inspiration/xiaohongshu/DESIGN.mdexecutablescript25.1 KB
design-systems/brand-inspiration/zapier/DESIGN.mdexecutablescript22.4 KB
design-systems/brand-inspiration/zapier/README.mdexecutablescript200 B
design-systems/index.jsonexecutablescript109.1 KB

canvas-and-device.md

View on GitHub
---
name: Canvas and Device Constraints
description: Shared sizing, viewport, device-ratio, and export-surface rules for design artifacts.
mode: reference
platform: any
scenario: canvas-device-constraints
preview:
  type: none
default_for:
  - device size
  - viewport
  - canvas
  - resolution
  - aspect ratio
  - phone frame
  - desktop frame
  - export size
  - 尺寸
  - 分辨率
  - 画布
  - 手机比例
  - 导出尺寸
fidelity: system
---

# Canvas and Device Constraints

Use this shared reference whenever a design artifact includes device previews, fixed export sizes, phone frames, dashboard canvases, deck canvases, social cards, long images, or image-export surfaces.

Core rule:

```text
Artifact canvas ≠ device screen canvas ≠ export surface
```

A flow diagram may use a wide canvas. A phone preview inside it must still preserve a real phone ratio. A social card may use a fixed image export ratio. A dashboard may use a desktop viewport. Do not stretch everything into generic cards.

---

## Extensible size registry

This file is the canonical place for platform size presets. Do not delete it when simplifying routing. Add new platform presets here instead of scattering dimensions across artifact skills.

Use this registry for:

- Xiaohongshu / RED covers, notes, long images, and share cards
- WeChat article covers, article images, and long images
- Posters, flyers, social cards, and story images
- Mobile app, mobile web, and H5 viewports
- Desktop web, dashboard, and deck canvases

When a platform has multiple valid sizes, record them as named presets. Artifact skills should reference these presets instead of hard-coding dimensions.

Recommended preset marker format:

```html
<section data-platform="xhs" data-preset="cover-3x4" data-export-ratio="3:4">
<section data-platform="xhs" data-preset="portrait-4x5" data-export-ratio="4:5">
<section data-platform="xhs" data-preset="square" data-export-size="1080x1080">
<section data-platform="wechat" data-preset="article-cover">
<section data-platform="poster" data-preset="a4-portrait">
```

### Current social/export presets

```text
Social square:         1080 × 1080
Social portrait:       1080 × 1350
Story / vertical:      1080 × 1920
Xiaohongshu cover:     3:4 or 4:5
Xiaohongshu square:    1:1, usually 1080 × 1080
Xiaohongshu long image: width 1080, height content-driven
WeChat long image:     width 750 or 1080, height content-driven
Poster portrait:       ratio-driven, preset required
```

If a user provides a platform-specific size, use the user-provided size and add it to this registry if it is likely to be reused.

### User-provided Chinese social media presets

These presets are collected from the user's provided social-media size reference image. Treat them as practical production presets, not as immutable official platform specifications. If a platform updates its recommended sizes, update this section.

#### Xiaohongshu / RED

| Preset | Size | Ratio | Use |
|---|---:|---:|---|
| `xhs-avatar` | 400 × 400 | 1:1 | 头像 |
| `xhs-profile-background` | 1000 × 800 | 5:4 | 个人背景图 |
| `xhs-note-cover-portrait` | 1242 × 1660 | ~3:4 | 图文封面,竖版 |
| `xhs-note-cover-square` | 1080 × 1080 | 1:1 | 图文封面,方版 |
| `xhs-note-cover-landscape` | 2560 × 1440 | 16:9 | 图文封面,横版 |
| `xhs-video-cover-portrait` | 1080 × 1440 | 3:4 | 视频封面,竖版 |
| `xhs-video-cover-landscape-4x3` | 1440 × 1080 | 4:3 | 视频封面,横版;source image labels it as 3:4, but the pixel ratio is 4:3 |
| `xhs-video-cover-landscape-16x9` | 1920 × 1080 | 16:9 | 视频封面,横版 / widescreen |

Recommended markers:

```html
<section data-platform="xhs" data-preset="xhs-note-cover-portrait" data-export-size="1242x1660" data-export-ratio="3:4">
<section data-platform="xhs" data-preset="xhs-note-cover-square" data-export-size="1080x1080" data-export-ratio="1:1">
<section data-platform="xhs" data-preset="xhs-note-cover-landscape" data-export-size="2560x1440" data-export-ratio="16:9">
<section data-platform="xhs" data-preset="xhs-video-cover-portrait" data-export-size="1080x1440" data-export-ratio="3:4">
```

#### Douyin / TikTok China

| Preset | Size | Ratio | Use |
|---|---:|---:|---|
| `douyin-avatar` | 400 × 400 | 1:1 | 头像 |
| `douyin-profile-background` | 1125 × 633 | ~16:9 | 个人背景图 |
| `douyin-cover-portrait-3x4` | 1242 × 1660 | ~3:4 | 封面,竖版 |
| `douyin-cover-portrait-9x16` | 1080 × 1920 | 9:16 | 封面,竖版 |
| `douyin-cover-landscape-16x9` | 1080 × 608 | ~16:9 | 封面,横版 |

Recommended markers:

```html
<section data-platform="douyin" data-preset="douyin-cover-portrait-9x16" data-export-size="1080x1920" data-export-ratio="9:16">
<section data-platform="douyin" data-preset="douyin-cover-landscape-16x9" data-export-size="1080x608" data-export-ratio="16:9">
```

#### WeChat ecosystem

| Preset | Size | Ratio | Use |
|---|---:|---:|---|
| `wechat-official-account-avatar` | 240 × 240 | 1:1 | 公众号头像 |
| `wechat-official-account-cover` | 900 × 383 | ~2.35:1 | 公众号封面 |
| `wechat-official-account-thumbnail` | 200 × 200 | 1:1 | 公众号小图 |
| `wechat-official-account-qrcode-card` | 600 × 600 | 1:1 | 公众号二维码名片 |
| `wechat-official-account-guide-image` | 1080 × 300 | 18:5 | 公众号内容引导图 |
| `wechat-channels-cover-portrait` | 1080 × 1260 | 6:7 | 视频号封面,竖版 |
| `wechat-channels-cover-landscape` | 1080 × 608 | ~16:9 | 视频号封面,横版 |
| `wechat-miniprogram-cover` | 520 × 416 | 5:4 | 小程序封面 |
| `wechat-moments-cover` | 1280 × 1184 | ~1.08:1 | 朋友圈封面 |

Recommended markers:

```html
<section data-platform="wechat" data-preset="wechat-official-account-cover" data-export-size="900x383">
<section data-platform="wechat" data-preset="wechat-official-account-guide-image" data-export-size="1080x300">
<section data-platform="wechat-channels" data-preset="wechat-channels-cover-portrait" data-export-size="1080x1260" data-export-ratio="6:7">
<section data-platform="wechat-moments" data-preset="wechat-moments-cover" data-export-size="1280x1184">
```

---

## Default viewport presets

```text
iOS default:       390 × 844
iOS large:         430 × 932
iOS small:         375 × 812

Android default:   360 × 800
Android large:     412 × 915

Mobile web / H5:   390 × 844
Tablet:            768 × 1024
Desktop web:       1440 × 900
Dashboard:         1440 × 1024
Deck:              1600 × 900
Deck HD:           1920 × 1080

Social square:     1080 × 1080
Social portrait:   1080 × 1350
Story / vertical:  1080 × 1920
Xiaohongshu cover: 1242 × 1660, 1080 × 1080, 2560 × 1440
Douyin cover:      1242 × 1660, 1080 × 1920, 1080 × 608
WeChat OA cover:   900 × 383
WeChat guide:      1080 × 300
WeChat Channels:   1080 × 1260 or 1080 × 608
Long image:        width 1080, height content-driven
```

---

## Scenario defaults

### Prototype

- Mobile app and mobile web previews default to `390 × 844`.
- Android-specific previews default to `360 × 800`.
- Desktop web previews default to `1440 × 900`.
- Dashboard previews default to `1440 × 1024`.
- Flow diagrams may use a wide canvas.
- Screen previews inside flow diagrams must keep device aspect ratio.

### Tool H5

- Canonical surface is mobile portrait.
- Default mobile viewport: `390 × 844`.
- Desktop view should either center a realistic mobile frame or intentionally expand the experience.
- Do not leave a mobile column floating in a large empty desktop canvas.
- Result/share cards should use explicit export ratios.

### Content Page

- Long-form HTML is responsive.
- WeChat article layout is mobile-first and editor-safe.
- Generic long image uses explicit width and content-driven height when requested.
- Xiaohongshu covers, notes, and fixed-card sequences use `social-card.md`, not `content-page.md`.

### Deck

- Default deck canvas: `1600 × 900`.
- HD deck export: `1920 × 1080`.
- Deck viewport should scale to fit the browser, not reflow like a webpage.

### Landing Page

- Responsive web first.
- Validate at `375px`, `768px`, and `1280px`.
- Product screenshots or device mockups must preserve their own viewport ratios.

---

## Device frame rules

When showing mobile screens:

- preserve aspect ratio
- keep safe margins
- include status/nav bars only when useful
- keep tap targets readable
- avoid shrinking full screens until text becomes unreadable
- use simplified mini-previews when space is limited
- use exact-ratio full previews in screen inventory, prototype, or tool preview sections

Recommended markers:

```html
<section data-device="ios" data-viewport="390x844">
<section data-device="ios-large" data-viewport="430x932">
<section data-device="android" data-viewport="360x800">
<section data-platform="mobile-web" data-viewport="390x844">
<section data-platform="desktop-web" data-viewport="1440x900">
<section data-platform="dashboard" data-viewport="1440x1024">
<section data-export-size="1080x1920">
<section data-export-ratio="3:4">
```

Recommended CSS:

```css
.phone-frame {
  width: min(390px, 100%);
  aspect-ratio: 390 / 844;
}

.phone-frame[data-size="ios-large"] {
  width: min(430px, 100%);
  aspect-ratio: 430 / 932;
}

.phone-frame[data-size="ios-small"] {
  width: min(375px, 100%);
  aspect-ratio: 375 / 812;
}

.phone-frame[data-size="android"] {
  width: min(360px, 100%);
  aspect-ratio: 360 / 800;
}

.desktop-frame {
  aspect-ratio: 1440 / 900;
}

.dashboard-frame {
  aspect-ratio: 1440 / 1024;
}

.social-card[data-ratio="3:4"] {
  aspect-ratio: 3 / 4;
}

.social-card[data-ratio="4:5"] {
  aspect-ratio: 4 / 5;
}
```

---

## Flow diagram vs screen preview

For interaction flow diagrams:

- Use a wide canvas for the overall diagram.
- Use abstract nodes for minor actions and state changes.
- Use exact-ratio screen previews only for key screens.
- Do not draw every state as a full phone screen.
- Do not let phone previews become landscape cards.
- When the screen preview is too large for the flow diagram, use a compact node plus a separate exact-ratio screen inventory.

---

## Export surface rules

When the artifact is meant to be exported as an image:

- declare the export size or ratio explicitly
- keep important content inside safe margins
- test title readability at thumbnail size
- avoid tiny captions unless export resolution is high enough
- do not rely on browser viewport size for fixed social exports
- do not silently redesign during export

For long images:

- use stable card boundaries
- avoid content blocks that depend on viewport height
- keep vertical rhythm consistent
- set a clear export width, usually `1080px`

---

## Quality checklist

Before delivery, check:

- Is the artifact canvas appropriate for the scenario?
- Are device previews using realistic viewport ratios?
- Are mobile screens locked to phone proportions instead of arbitrary cards?
- Is the export surface declared when image export is expected?
- Does desktop fallback look intentional, not empty?
- Are phone previews readable at their displayed size?
- Are flow diagrams using abstract nodes when full device previews would hurt readability?
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 323kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall