New to Claude Skills? Learn how to install them →

nexu-io on GitHub

3D Device Mockup

Free

Showcase your UI designs on realistic 3D devices.

by nexu-io84.9k stars on nexu-io/open-design
3 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What 3D Device Mockup does

The 3D Device Mockup skill allows developers and designers to present their user interface (UI) designs in a visually appealing manner using realistic 3D representations of iPhones and MacBooks. This skill generates a static showcase that integrates real HTML content directly onto the screens of the devices, providing a clear and engaging way to display app prototypes or design concepts. By leveraging CSS 3D transforms, it simulates the look of glass and reflections, enhancing the overall presentation.

This skill is particularly useful for product launches, app demonstrations, or design reviews. Users can embed their UI content within the mockup, which is rendered accurately to fit the mobile viewport of an iPhone or the desktop view of a MacBook. The setup includes a warm gray gradient background and a reflective ground surface, creating a polished and professional look. The mockup is designed to be fully responsive, ensuring that the embedded content is displayed correctly without the use of placeholder text.

The 3D Device Mockup skill is ideal for designers looking to showcase their work in a way that captures attention and communicates functionality. It allows for customization of various elements, such as background colors and additional captions, making it adaptable to different branding needs. The skill also includes optional features like a product slug and a rotating animation, which can add dynamism to the presentation.

Despite its advantages, this skill is not suited for dynamic content or interactive demonstrations, as it is designed for static showcases. Users looking to create live app demos or interactive experiences may need to consider alternative solutions that support real-time interactions.

When to use it

Use this skill when you want to present your UI designs in a realistic and visually engaging manner, particularly for product launches or design reviews.

When not to use it

Avoid this skill if you require interactive or dynamic presentations, as it is limited to static displays of HTML content.

What you can build with it

Product Launch Presentation

Use the 3D Device Mockup to showcase your app or product at a launch event, providing a visually appealing way to present features.

Design Review Sessions

Present your UI designs to stakeholders in a design review, allowing them to visualize the product in a realistic context.

Portfolio Display

Enhance your design portfolio by including 3D mockups of your work, making it stand out to potential clients or employers.

How to install 3D Device Mockup

View source

1. Install with the skills CLI

npx skills add nexu-io/open-design/mockup-device-3d --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by nexu-io

【模板: 设备 3D 展架 (Device 3D Showcase / HTML-in-Canvas)】 【意图】产品发布、App 演示、设计稿展示。把用户提供的 UI 内容真实渲染到 iPhone / MacBook "屏幕"里, 周围用 CSS 3D transform 模拟 GLTF 模型的玻璃 / 高光 / 折射。Inspired by hyperframes vfx-iphone-device。

【硬性构图】

  • 画布: 1920×1080, 暖灰渐变背景 radial-gradient(#1a1a1f → #0a0a0f), 底部反射地面 (mirror gradient)。
  • iPhone 15 Pro 模型: 左侧 / 中部, transform: rotateY(-12deg) rotateX(4deg) translateZ(40px); 边框钛金属银 #a8a8ad (实心 4px) + 屏幕圆角 56px; 屏幕内嵌 iframe-like div, 真实渲染用户的 HTML 内容 (mobile viewport 375×812)。
  • MacBook Pro 14" (可选第二台): 右侧, 略小, rotateY(8deg); 上盖屏幕嵌入桌面 viewport 内容 (1440×900 缩放); 底座键盘 + trackpad 用 CSS 阴影线条绘制 (不画键帽细节)。
  • 玻璃 / 镜头光斑: 顶部加 2-3 个 radial-gradient(ellipse, rgba(255,255,255,0.4) 0%, transparent 60%) 的椭圆 highlight, 模拟 morphing glass lens。
  • 地面反射: 设备下方 transform: scaleY(-1) + mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 70%)

【屏幕内容来源】

  • 用户提供的是文本/数据 → 自动渲染为一个 mock app 界面 (顶部 status bar + 标题 + body + 底部 tab bar 或 home indicator)。
  • 用户提供的是 HTML → 原样嵌入屏幕 div 内 (注意缩放 transform 让它适配屏幕宽高)。
  • 屏幕内 UI 用 Tailwind, 字号要按 mobile 真实尺寸 (text-sm / text-base, 不要 text-9xl)。

【可选附加元素】

  • 右下角 "product slug" 角标: 大 logo + 一行 tagline + 副标 hairline。
  • 顶部一行 caption (英文 sans, 字号小, 透明 0.6): 产品 codename / 日期 / 版本。
  • 加 8s 自动 CSS 转盘: @keyframes turntable rotateY -12 ↔ 12, ease-in-out infinite alternate; 可被 prefers-reduced-motion 关闭。

【设计细节】

  • 绝不: 用外部 mockup 图片 URL (任何 unsplash / dribbble link), 全部用 CSS / SVG 绘制设备。
  • 字体: 设备外的 caption / logo 用 Inter Tight / SF Pro 风格; 设备内根据用户内容自适应。
  • 背景可选 4 套调色: charcoal / pearl / midnight blue / mocha; 不要彩虹渐变。
  • 单文件 HTML; iframe 不要用 srcdoc 嵌套 (容易出问题), 用 <div class="screen"> + Tailwind 渲染内容。
  • 必须用用户真实数据填充屏幕内容, 严禁 lorem ipsum 或 "Your text here"。

Frequently asked questions about 3D Device Mockup

Similar skills