Skip to content
nexu-io avatar

Mockup Device 3d

Static iPhone and MacBook showcase rendering real HTML on device screens with CSS-only 3D and turntable motion.

CCM score
50 of 100
skills.sh installs
3.1K
GitHub stars
110.1K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a 1920×1080 product showcase with an iPhone 15 Pro and an optional MacBook Pro 14" on a gradient backdrop with reflective floor
  • Renders user text or data as a mock app screen, or embeds supplied HTML directly, sized to the mobile (375×812) or desktop (1440×900) viewport
  • Draws all devices with CSS and SVG, forbids external mockup images, and uses an 8-second turntable animation that respects prefers-reduced-motion
  • Designed for product launches, app demos, and design presentations where real UI content must appear on the device screens

Install

$ npx -y skills add nexu-io/open-design --skill mockup-device-3d -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

【模板: 设备 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)。

Details

Repository
github.com/nexu-io/open-design
Categories
3D, CAD & Modeling, Design & UI/UX
First seen
Jul 14, 2026

Questions

What does the mockup-device-3d skill do?

It builds a static iPhone and MacBook 3D-style showcase, rendering your real HTML or text content inside the device screens. It uses CSS 3D transforms for glass, highlights, lens refraction and an optional 360-degree turntable effect.

Who is the mockup-device-3d skill for?

It suits product launches, app demos and design presentations where you want UI content shown on iPhone or MacBook screens. The skill renders the content in mobile and desktop viewports, so the screens show real layouts instead of placeholder images.

How do I install the mockup-device-3d skill?

Run npx -y skills add nexu-io/open-design --skill mockup-device-3d -y in your project. Once installed, the agent can build device showcase pages from your content.

Where does mockup-device-3d rank among 3D, CAD and modeling skills?

It ranks in the top 50 of the 3D, CAD and modeling category on Claude Marketplaces. Skills such as threejs-fundamentals and threejs-shaders also appear among the top skills in that category, while this one focuses on static device mockups drawn with CSS and SVG rather than WebGL scenes.

More from nexu-io/open-design

All 196

Similar to Mockup Device 3d

More 3D, CAD & Modeling