design
Mockup
Wrap content in realistic device frames for phones, tablets, browsers, and laptops
Install
- Add the package:
npm install @refrakt-md/design - Add it to the
pluginsarray inrefrakt.config.json:"plugins": ["@refrakt-md/design"]
Source
import Markdoc from '@markdoc/markdoc';
const { Tag } = Markdoc;
import {
createContentModelSchema,
bodyOnly,
createComponentRenderable,
renderNodes,
} from '@refrakt-md/runes';
const deviceType = [
'iphone-15',
'iphone-se',
'pixel',
'phone',
'ipad',
'tablet',
'browser',
'browser-dark',
'macbook',
'watch',
'none',
] as const;
const colorType = ['dark', 'light', 'auto'] as const;
const fitType = ['auto', 'none'] as const;
export const mockupMediaSlots = { viewport: 'hero' } as const;
export const mockup = createContentModelSchema({
mediaSlots: mockupMediaSlots,
attributes: {
device: {
type: String,
required: false,
matches: deviceType.slice(),
description: 'Device frame to render around the content (e.g. iphone-15, browser, macbook).',
},
label: {
type: String,
required: false,
description: 'Caption text shown below the device mockup.',
},
color: {
type: String,
required: false,
matches: colorType.slice(),
description: 'Device chrome color scheme: dark, light, or auto to match the page.',
},
statusBar: {
type: Boolean,
required: false,
description: 'Enable/disable the status bar on phone and tablet device frames.',
},
url: {
type: String,
required: false,
description: 'URL displayed in the browser address bar for browser-type devices.',
},
scale: {
type: Number,
required: false,
description: 'Scaling factor for the mockup size (1 = default, 0.5 = half size).',
},
fit: {
type: String,
required: false,
matches: fitType.slice(),
description:
'Content fitting mode: auto scales to fill the viewport, none uses natural size.',
},
},
contentModel: bodyOnly(),
transform(resolved, attrs, config) {
const body = renderNodes(resolved.body, config);
const device = attrs.device ?? 'browser';
const color = attrs.color ?? 'dark';
const statusBar = attrs.statusBar ?? true;
const label = attrs.label ?? '';
const url = attrs.url ?? '';
const scale = attrs.scale ?? 1;
const fit = attrs.fit ?? 'auto';
const deviceMeta = new Tag('meta', { content: device });
const colorMeta = new Tag('meta', { content: color });
const fitMeta = new Tag('meta', { content: fit });
const viewport = body.wrap('div').next() as InstanceType<typeof Tag>;
viewport.attributes['data-name'] = 'viewport';
const mobileDevices = ['iphone-15', 'iphone-se', 'pixel', 'phone'];
const tabletDevices = ['ipad', 'tablet'];
const isMobile = mobileDevices.includes(device);
const isTablet = tabletDevices.includes(device);
const isBrowser = device === 'browser' || device === 'browser-dark';
const isMacbook = device === 'macbook';
const notchStyle: Record<string, string> = {
'iphone-15': 'dynamic-island',
'iphone-se': 'classic',
pixel: 'punch-hole',
};
const frameChildren: InstanceType<typeof Tag>[] = [];
if (isMobile || isTablet) {
const bezelChildren: InstanceType<typeof Tag>[] = [];
if (isMobile && notchStyle[device]) {
bezelChildren.push(
new Tag('div', { 'data-name': 'notch', 'data-notch': notchStyle[device] }, []),
);
}
if (isMobile && statusBar) {
bezelChildren.push(
new Tag('div', { 'data-name': 'status-bar' }, [
new Tag('span', { 'data-name': 'status-time' }, ['9:41']),
new Tag('span', { 'data-name': 'status-icons' }, []),
]),
);
}
bezelChildren.push(viewport);
if (isMobile) bezelChildren.push(new Tag('div', { 'data-name': 'home-indicator' }, []));
frameChildren.push(new Tag('div', { 'data-name': 'bezel' }, bezelChildren));
} else if (isBrowser || isMacbook) {
const titleBarChildren: InstanceType<typeof Tag>[] = [
new Tag('div', { 'data-name': 'traffic-lights' }, [
new Tag('span', { 'data-name': 'traffic-light', 'data-light': 'close' }, []),
new Tag('span', { 'data-name': 'traffic-light', 'data-light': 'minimize' }, []),
new Tag('span', { 'data-name': 'traffic-light', 'data-light': 'maximize' }, []),
]),
];
if (isBrowser) {
titleBarChildren.push(
new Tag(
'div',
{ 'data-name': 'address-bar' },
url ? [new Tag('span', { 'data-name': 'url' }, [url])] : [],
),
);
}
frameChildren.push(new Tag('div', { 'data-name': 'title-bar' }, titleBarChildren));
frameChildren.push(viewport);
if (isMacbook) {
frameChildren.push(
new Tag('div', { 'data-name': 'keyboard' }, [
new Tag('div', { 'data-name': 'trackpad' }, []),
]),
);
}
} else if (device === 'watch') {
frameChildren.push(new Tag('div', { 'data-name': 'bezel' }, [viewport]));
} else {
frameChildren.push(viewport);
}
const children: InstanceType<typeof Tag>[] = [
new Tag('div', { 'data-name': 'frame' }, frameChildren),
];
if (label) children.push(new Tag('div', { 'data-name': 'label' }, [label]));
const node = createComponentRenderable({
rune: 'mockup',
tag: 'div',
properties: {
device: deviceMeta,
color: colorMeta,
fit: fitMeta,
},
children,
});
if (scale && scale !== 1) {
const existing = node.attributes.style ? `${node.attributes.style}; ` : '';
node.attributes.style = `${existing}--mockup-scale: ${scale}`;
}
return node;
},
});
Wraps a screenshot, a sandbox or any other content in a device frame — a phone, tablet, browser window, laptop or watch — to show how it looks in context. For a plain image with a caption, use figure.
Basic usage
The default device is a browser window.
{% mockup %}
{% sandbox src="mockup-browser-landing" height=798 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"browser","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="title-bar">
<div data-name="traffic-lights">
<span data-name="traffic-light" data-light="close"></span>
<span data-name="traffic-light" data-light="minimize"></span>
<span data-name="traffic-light" data-light="maximize"></span>
</div>
<div data-name="address-bar"></div>
</div>
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<nav>
<div class="logo">Acme</div>
<div class="nav-links"><span>Features</span><span>Pricing</span><span>Docs</span></div>
</nav>
<div class="hero">
<h1>Build faster, ship sooner</h1>
<p>The modern toolkit for ambitious teams.</p>
<a class="btn" href="#">Get started</a>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
border-bottom: 1px solid #e2e8f0;
}
.logo {
font-weight: 700;
font-size: 18px;
}
.nav-links {
display: flex;
gap: 20px;
font-size: 14px;
color: #64748b;
}
.hero {
padding: 60px 24px;
text-align: center;
}
.hero h1 {
font-size: 32px;
margin: 0 0 12px;
}
.hero p {
color: #64748b;
margin: 0 0 24px;
font-size: 16px;
}
.btn {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
</style>" data-height="798" data-source-origins="HTML mockup-browser-landing/index.html
CSS mockup-browser-landing/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<nav>
<div class="logo">Acme</div>
<div class="nav-links"><span>Features</span><span>Pricing</span><span>Docs</span></div>
</nav>
<div class="hero">
<h1>Build faster, ship sooner</h1>
<p>The modern toolkit for ambitious teams.</p>
<a class="btn" href="#">Get started</a>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
border-bottom: 1px solid #e2e8f0;
}
.logo {
font-weight: 700;
font-size: 18px;
}
.nav-links {
display: flex;
gap: 20px;
font-size: 14px;
color: #64748b;
}
.hero {
padding: 60px 24px;
text-align: center;
}
.hero h1 {
font-size: 32px;
margin: 0 0 12px;
}
.hero p {
color: #64748b;
margin: 0 0 24px;
font-size: 16px;
}
.btn {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<nav>
<div class="logo">Acme</div>
<div class="nav-links"><span>Features</span><span>Pricing</span><span>Docs</span></div>
</nav>
<div class="hero">
<h1>Build faster, ship sooner</h1>
<p>The modern toolkit for ambitious teams.</p>
<a class="btn" href="#">Get started</a>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
border-bottom: 1px solid #e2e8f0;
}
.logo {
font-weight: 700;
font-size: 18px;
}
.nav-links {
display: flex;
gap: 20px;
font-size: 14px;
color: #64748b;
}
.hero {
padding: 60px 24px;
text-align: center;
}
.hero h1 {
font-size: 32px;
margin: 0 0 12px;
}
.hero p {
color: #64748b;
margin: 0 0 24px;
font-size: 16px;
}
.btn {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div><div class="rf-mockup rf-mockup--browser rf-mockup--dark" data-device="browser" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="title-bar" class="rf-mockup__title-bar">
<div data-name="traffic-lights" class="rf-mockup__traffic-lights">
<span data-name="traffic-light" data-light="close" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="minimize" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="maximize" class="rf-mockup__traffic-light"></span>
</div>
<div data-name="address-bar" class="rf-mockup__address-bar"></div>
</div>
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<nav>
<div class="logo">Acme</div>
<div class="nav-links"><span>Features</span><span>Pricing</span><span>Docs</span></div>
</nav>
<div class="hero">
<h1>Build faster, ship sooner</h1>
<p>The modern toolkit for ambitious teams.</p>
<a class="btn" href="#">Get started</a>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
border-bottom: 1px solid #e2e8f0;
}
.logo {
font-weight: 700;
font-size: 18px;
}
.nav-links {
display: flex;
gap: 20px;
font-size: 14px;
color: #64748b;
}
.hero {
padding: 60px 24px;
text-align: center;
}
.hero h1 {
font-size: 32px;
margin: 0 0 12px;
}
.hero p {
color: #64748b;
margin: 0 0 24px;
font-size: 16px;
}
.btn {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
</style>" data-height="798" data-source-origins="HTML mockup-browser-landing/index.html
CSS mockup-browser-landing/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<nav>
<div class="logo">Acme</div>
<div class="nav-links"><span>Features</span><span>Pricing</span><span>Docs</span></div>
</nav>
<div class="hero">
<h1>Build faster, ship sooner</h1>
<p>The modern toolkit for ambitious teams.</p>
<a class="btn" href="#">Get started</a>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
border-bottom: 1px solid #e2e8f0;
}
.logo {
font-weight: 700;
font-size: 18px;
}
.nav-links {
display: flex;
gap: 20px;
font-size: 14px;
color: #64748b;
}
.hero {
padding: 60px 24px;
text-align: center;
}
.hero h1 {
font-size: 32px;
margin: 0 0 12px;
}
.hero p {
color: #64748b;
margin: 0 0 24px;
font-size: 16px;
}
.btn {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<nav>
<div class="logo">Acme</div>
<div class="nav-links"><span>Features</span><span>Pricing</span><span>Docs</span></div>
</nav>
<div class="hero">
<h1>Build faster, ship sooner</h1>
<p>The modern toolkit for ambitious teams.</p>
<a class="btn" href="#">Get started</a>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
nav {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 24px;
border-bottom: 1px solid #e2e8f0;
}
.logo {
font-weight: 700;
font-size: 18px;
}
.nav-links {
display: flex;
gap: 20px;
font-size: 14px;
color: #64748b;
}
.hero {
padding: 60px 24px;
text-align: center;
}
.hero h1 {
font-size: 32px;
margin: 0 0 12px;
}
.hero p {
color: #64748b;
margin: 0 0 24px;
font-size: 16px;
}
.btn {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div>Show it on a phone
device picks the frame.
{% mockup device="iphone-15" %}
{% sandbox src="mockup-phone-messages" height=852 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"iphone-15","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="bezel">
<div data-name="notch" data-notch="dynamic-island"></div>
<div data-name="status-bar">
<span data-name="status-time">9:41</span>
<span data-name="status-icons"></span>
</div>
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<div class="header">Messages</div>
<div class="search">Search</div>
<div class="msg">
<div class="avatar" style="background: #c4b5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Alice Chen</span><span class="msg-time">2m ago</span></div>
<div class="msg-text">Hey, are we still on for lunch tomorrow?</div>
</div>
<div class="badge">1</div>
</div>
<div class="msg">
<div class="avatar" style="background: #93c5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Team Design</span><span class="msg-time">1h ago</span></div>
<div class="msg-text">New mockups uploaded to the shared drive</div>
</div>
</div>
<div class="msg">
<div class="avatar" style="background: #86efac;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Jordan Lee</span><span class="msg-time">3h ago</span></div>
<div class="msg-text">Thanks for the review! I'll push the fix today.</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.header {
padding: 12px 16px 8px;
font-size: 28px;
font-weight: 700;
}
.search {
margin: 0 16px 12px;
padding: 8px 12px;
background: #e2e8f0;
border-radius: 10px;
font-size: 14px;
color: #94a3b8;
}
.msg {
display: flex;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid #f1f5f9;
}
.avatar {
width: 44px;
height: 44px;
border-radius: 50%;
flex-shrink: 0;
}
.msg-body {
flex: 1;
min-width: 0;
}
.msg-top {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.msg-name {
font-weight: 600;
font-size: 15px;
}
.msg-time {
font-size: 12px;
color: #94a3b8;
}
.msg-text {
font-size: 14px;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.badge {
width: 20px;
height: 20px;
background: #6366f1;
border-radius: 50%;
color: #fff;
font-size: 11px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 6px;
flex-shrink: 0;
}
</style>" data-height="852" data-source-origins="HTML mockup-phone-messages/index.html
CSS mockup-phone-messages/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<div class="header">Messages</div>
<div class="search">Search</div>
<div class="msg">
<div class="avatar" style="background: #c4b5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Alice Chen</span><span class="msg-time">2m ago</span></div>
<div class="msg-text">Hey, are we still on for lunch tomorrow?</div>
</div>
<div class="badge">1</div>
</div>
<div class="msg">
<div class="avatar" style="background: #93c5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Team Design</span><span class="msg-time">1h ago</span></div>
<div class="msg-text">New mockups uploaded to the shared drive</div>
</div>
</div>
<div class="msg">
<div class="avatar" style="background: #86efac;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Jordan Lee</span><span class="msg-time">3h ago</span></div>
<div class="msg-text">Thanks for the review! I'll push the fix today.</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.header {
padding: 12px 16px 8px;
font-size: 28px;
font-weight: 700;
}
.search {
margin: 0 16px 12px;
padding: 8px 12px;
background: #e2e8f0;
border-radius: 10px;
font-size: 14px;
color: #94a3b8;
}
.msg {
display: flex;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid #f1f5f9;
}
.avatar {
width: 44px;
height: 44px;
border-radius: 50%;
flex-shrink: 0;
}
.msg-body {
flex: 1;
min-width: 0;
}
.msg-top {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.msg-name {
font-weight: 600;
font-size: 15px;
}
.msg-time {
font-size: 12px;
color: #94a3b8;
}
.msg-text {
font-size: 14px;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.badge {
width: 20px;
height: 20px;
background: #6366f1;
border-radius: 50%;
color: #fff;
font-size: 11px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 6px;
flex-shrink: 0;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="header">Messages</div>
<div class="search">Search</div>
<div class="msg">
<div class="avatar" style="background: #c4b5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Alice Chen</span><span class="msg-time">2m ago</span></div>
<div class="msg-text">Hey, are we still on for lunch tomorrow?</div>
</div>
<div class="badge">1</div>
</div>
<div class="msg">
<div class="avatar" style="background: #93c5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Team Design</span><span class="msg-time">1h ago</span></div>
<div class="msg-text">New mockups uploaded to the shared drive</div>
</div>
</div>
<div class="msg">
<div class="avatar" style="background: #86efac;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Jordan Lee</span><span class="msg-time">3h ago</span></div>
<div class="msg-text">Thanks for the review! I'll push the fix today.</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.header {
padding: 12px 16px 8px;
font-size: 28px;
font-weight: 700;
}
.search {
margin: 0 16px 12px;
padding: 8px 12px;
background: #e2e8f0;
border-radius: 10px;
font-size: 14px;
color: #94a3b8;
}
.msg {
display: flex;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid #f1f5f9;
}
.avatar {
width: 44px;
height: 44px;
border-radius: 50%;
flex-shrink: 0;
}
.msg-body {
flex: 1;
min-width: 0;
}
.msg-top {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.msg-name {
font-weight: 600;
font-size: 15px;
}
.msg-time {
font-size: 12px;
color: #94a3b8;
}
.msg-text {
font-size: 14px;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.badge {
width: 20px;
height: 20px;
background: #6366f1;
border-radius: 50%;
color: #fff;
font-size: 11px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 6px;
flex-shrink: 0;
}
</style></template>
</rf-sandbox>
</div>
<div data-name="home-indicator"></div>
</div>
</div>
</div><div class="rf-mockup rf-mockup--iphone-15 rf-mockup--dark" data-device="iphone-15" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="bezel" class="rf-mockup__bezel">
<div data-name="notch" data-notch="dynamic-island" class="rf-mockup__notch"></div>
<div data-name="status-bar" class="rf-mockup__status-bar">
<span data-name="status-time" class="rf-mockup__status-time">9:41</span>
<span data-name="status-icons" class="rf-mockup__status-icons"></span>
</div>
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<div class="header">Messages</div>
<div class="search">Search</div>
<div class="msg">
<div class="avatar" style="background: #c4b5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Alice Chen</span><span class="msg-time">2m ago</span></div>
<div class="msg-text">Hey, are we still on for lunch tomorrow?</div>
</div>
<div class="badge">1</div>
</div>
<div class="msg">
<div class="avatar" style="background: #93c5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Team Design</span><span class="msg-time">1h ago</span></div>
<div class="msg-text">New mockups uploaded to the shared drive</div>
</div>
</div>
<div class="msg">
<div class="avatar" style="background: #86efac;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Jordan Lee</span><span class="msg-time">3h ago</span></div>
<div class="msg-text">Thanks for the review! I'll push the fix today.</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.header {
padding: 12px 16px 8px;
font-size: 28px;
font-weight: 700;
}
.search {
margin: 0 16px 12px;
padding: 8px 12px;
background: #e2e8f0;
border-radius: 10px;
font-size: 14px;
color: #94a3b8;
}
.msg {
display: flex;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid #f1f5f9;
}
.avatar {
width: 44px;
height: 44px;
border-radius: 50%;
flex-shrink: 0;
}
.msg-body {
flex: 1;
min-width: 0;
}
.msg-top {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.msg-name {
font-weight: 600;
font-size: 15px;
}
.msg-time {
font-size: 12px;
color: #94a3b8;
}
.msg-text {
font-size: 14px;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.badge {
width: 20px;
height: 20px;
background: #6366f1;
border-radius: 50%;
color: #fff;
font-size: 11px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 6px;
flex-shrink: 0;
}
</style>" data-height="852" data-source-origins="HTML mockup-phone-messages/index.html
CSS mockup-phone-messages/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<div class="header">Messages</div>
<div class="search">Search</div>
<div class="msg">
<div class="avatar" style="background: #c4b5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Alice Chen</span><span class="msg-time">2m ago</span></div>
<div class="msg-text">Hey, are we still on for lunch tomorrow?</div>
</div>
<div class="badge">1</div>
</div>
<div class="msg">
<div class="avatar" style="background: #93c5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Team Design</span><span class="msg-time">1h ago</span></div>
<div class="msg-text">New mockups uploaded to the shared drive</div>
</div>
</div>
<div class="msg">
<div class="avatar" style="background: #86efac;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Jordan Lee</span><span class="msg-time">3h ago</span></div>
<div class="msg-text">Thanks for the review! I'll push the fix today.</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.header {
padding: 12px 16px 8px;
font-size: 28px;
font-weight: 700;
}
.search {
margin: 0 16px 12px;
padding: 8px 12px;
background: #e2e8f0;
border-radius: 10px;
font-size: 14px;
color: #94a3b8;
}
.msg {
display: flex;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid #f1f5f9;
}
.avatar {
width: 44px;
height: 44px;
border-radius: 50%;
flex-shrink: 0;
}
.msg-body {
flex: 1;
min-width: 0;
}
.msg-top {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.msg-name {
font-weight: 600;
font-size: 15px;
}
.msg-time {
font-size: 12px;
color: #94a3b8;
}
.msg-text {
font-size: 14px;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.badge {
width: 20px;
height: 20px;
background: #6366f1;
border-radius: 50%;
color: #fff;
font-size: 11px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 6px;
flex-shrink: 0;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="header">Messages</div>
<div class="search">Search</div>
<div class="msg">
<div class="avatar" style="background: #c4b5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Alice Chen</span><span class="msg-time">2m ago</span></div>
<div class="msg-text">Hey, are we still on for lunch tomorrow?</div>
</div>
<div class="badge">1</div>
</div>
<div class="msg">
<div class="avatar" style="background: #93c5fd;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Team Design</span><span class="msg-time">1h ago</span></div>
<div class="msg-text">New mockups uploaded to the shared drive</div>
</div>
</div>
<div class="msg">
<div class="avatar" style="background: #86efac;"></div>
<div class="msg-body">
<div class="msg-top"><span class="msg-name">Jordan Lee</span><span class="msg-time">3h ago</span></div>
<div class="msg-text">Thanks for the review! I'll push the fix today.</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.header {
padding: 12px 16px 8px;
font-size: 28px;
font-weight: 700;
}
.search {
margin: 0 16px 12px;
padding: 8px 12px;
background: #e2e8f0;
border-radius: 10px;
font-size: 14px;
color: #94a3b8;
}
.msg {
display: flex;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid #f1f5f9;
}
.avatar {
width: 44px;
height: 44px;
border-radius: 50%;
flex-shrink: 0;
}
.msg-body {
flex: 1;
min-width: 0;
}
.msg-top {
display: flex;
justify-content: space-between;
align-items: baseline;
}
.msg-name {
font-weight: 600;
font-size: 15px;
}
.msg-time {
font-size: 12px;
color: #94a3b8;
}
.msg-text {
font-size: 14px;
color: #64748b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 2px;
}
.badge {
width: 20px;
height: 20px;
background: #6366f1;
border-radius: 50%;
color: #fff;
font-size: 11px;
display: flex;
align-items: center;
justify-content: center;
margin-top: 6px;
flex-shrink: 0;
}
</style></template>
</rf-sandbox>
</div>
<div data-name="home-indicator" class="rf-mockup__home-indicator"></div>
</div>
</div>
</div>The other phones are iphone-se, pixel and a generic phone. Phones show a status bar; statusBar=false hides it.
Show it on a tablet
{% mockup device="ipad" %}
{% sandbox src="mockup-tablet-dashboard" height=1180 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"ipad","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="bezel">
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<div class="app">
<div class="sidebar">
<div class="sidebar-item active">Dashboard</div>
<div class="sidebar-item">Analytics</div>
<div class="sidebar-item">Customers</div>
<div class="sidebar-item">Products</div>
<div class="sidebar-item">Settings</div>
</div>
<div class="main">
<h1>Dashboard</h1>
<div class="cards">
<div class="card">
<div class="card-label">Revenue</div>
<div class="card-value">$12.4k</div>
<div class="card-change up">+14% this month</div>
</div>
<div class="card">
<div class="card-label">Users</div>
<div class="card-value">2,841</div>
<div class="card-change up">+7% this month</div>
</div>
<div class="card">
<div class="card-label">Bounce Rate</div>
<div class="card-value">24.3%</div>
<div class="card-change down">-2% this month</div>
</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.app {
display: flex;
height: 100vh;
}
.sidebar {
width: 200px;
background: #fff;
border-right: 1px solid #e2e8f0;
padding: 20px 0;
flex-shrink: 0;
}
.sidebar-item {
padding: 10px 20px;
font-size: 14px;
color: #64748b;
cursor: pointer;
}
.sidebar-item.active {
color: #6366f1;
background: #eef2ff;
border-right: 2px solid #6366f1;
font-weight: 600;
}
.main {
flex: 1;
padding: 24px;
}
.main h1 {
font-size: 22px;
margin: 0 0 20px;
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.card {
background: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.card-value {
font-size: 28px;
font-weight: 700;
margin: 6px 0 4px;
}
.card-change {
font-size: 13px;
}
.up {
color: #22c55e;
}
.down {
color: #ef4444;
}
</style>" data-height="1180" data-source-origins="HTML mockup-tablet-dashboard/index.html
CSS mockup-tablet-dashboard/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<div class="app">
<div class="sidebar">
<div class="sidebar-item active">Dashboard</div>
<div class="sidebar-item">Analytics</div>
<div class="sidebar-item">Customers</div>
<div class="sidebar-item">Products</div>
<div class="sidebar-item">Settings</div>
</div>
<div class="main">
<h1>Dashboard</h1>
<div class="cards">
<div class="card">
<div class="card-label">Revenue</div>
<div class="card-value">$12.4k</div>
<div class="card-change up">+14% this month</div>
</div>
<div class="card">
<div class="card-label">Users</div>
<div class="card-value">2,841</div>
<div class="card-change up">+7% this month</div>
</div>
<div class="card">
<div class="card-label">Bounce Rate</div>
<div class="card-value">24.3%</div>
<div class="card-change down">-2% this month</div>
</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.app {
display: flex;
height: 100vh;
}
.sidebar {
width: 200px;
background: #fff;
border-right: 1px solid #e2e8f0;
padding: 20px 0;
flex-shrink: 0;
}
.sidebar-item {
padding: 10px 20px;
font-size: 14px;
color: #64748b;
cursor: pointer;
}
.sidebar-item.active {
color: #6366f1;
background: #eef2ff;
border-right: 2px solid #6366f1;
font-weight: 600;
}
.main {
flex: 1;
padding: 24px;
}
.main h1 {
font-size: 22px;
margin: 0 0 20px;
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.card {
background: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.card-value {
font-size: 28px;
font-weight: 700;
margin: 6px 0 4px;
}
.card-change {
font-size: 13px;
}
.up {
color: #22c55e;
}
.down {
color: #ef4444;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="app">
<div class="sidebar">
<div class="sidebar-item active">Dashboard</div>
<div class="sidebar-item">Analytics</div>
<div class="sidebar-item">Customers</div>
<div class="sidebar-item">Products</div>
<div class="sidebar-item">Settings</div>
</div>
<div class="main">
<h1>Dashboard</h1>
<div class="cards">
<div class="card">
<div class="card-label">Revenue</div>
<div class="card-value">$12.4k</div>
<div class="card-change up">+14% this month</div>
</div>
<div class="card">
<div class="card-label">Users</div>
<div class="card-value">2,841</div>
<div class="card-change up">+7% this month</div>
</div>
<div class="card">
<div class="card-label">Bounce Rate</div>
<div class="card-value">24.3%</div>
<div class="card-change down">-2% this month</div>
</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.app {
display: flex;
height: 100vh;
}
.sidebar {
width: 200px;
background: #fff;
border-right: 1px solid #e2e8f0;
padding: 20px 0;
flex-shrink: 0;
}
.sidebar-item {
padding: 10px 20px;
font-size: 14px;
color: #64748b;
cursor: pointer;
}
.sidebar-item.active {
color: #6366f1;
background: #eef2ff;
border-right: 2px solid #6366f1;
font-weight: 600;
}
.main {
flex: 1;
padding: 24px;
}
.main h1 {
font-size: 22px;
margin: 0 0 20px;
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.card {
background: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.card-value {
font-size: 28px;
font-weight: 700;
margin: 6px 0 4px;
}
.card-change {
font-size: 13px;
}
.up {
color: #22c55e;
}
.down {
color: #ef4444;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div>
</div><div class="rf-mockup rf-mockup--ipad rf-mockup--dark" data-device="ipad" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="bezel" class="rf-mockup__bezel">
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<div class="app">
<div class="sidebar">
<div class="sidebar-item active">Dashboard</div>
<div class="sidebar-item">Analytics</div>
<div class="sidebar-item">Customers</div>
<div class="sidebar-item">Products</div>
<div class="sidebar-item">Settings</div>
</div>
<div class="main">
<h1>Dashboard</h1>
<div class="cards">
<div class="card">
<div class="card-label">Revenue</div>
<div class="card-value">$12.4k</div>
<div class="card-change up">+14% this month</div>
</div>
<div class="card">
<div class="card-label">Users</div>
<div class="card-value">2,841</div>
<div class="card-change up">+7% this month</div>
</div>
<div class="card">
<div class="card-label">Bounce Rate</div>
<div class="card-value">24.3%</div>
<div class="card-change down">-2% this month</div>
</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.app {
display: flex;
height: 100vh;
}
.sidebar {
width: 200px;
background: #fff;
border-right: 1px solid #e2e8f0;
padding: 20px 0;
flex-shrink: 0;
}
.sidebar-item {
padding: 10px 20px;
font-size: 14px;
color: #64748b;
cursor: pointer;
}
.sidebar-item.active {
color: #6366f1;
background: #eef2ff;
border-right: 2px solid #6366f1;
font-weight: 600;
}
.main {
flex: 1;
padding: 24px;
}
.main h1 {
font-size: 22px;
margin: 0 0 20px;
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.card {
background: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.card-value {
font-size: 28px;
font-weight: 700;
margin: 6px 0 4px;
}
.card-change {
font-size: 13px;
}
.up {
color: #22c55e;
}
.down {
color: #ef4444;
}
</style>" data-height="1180" data-source-origins="HTML mockup-tablet-dashboard/index.html
CSS mockup-tablet-dashboard/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<div class="app">
<div class="sidebar">
<div class="sidebar-item active">Dashboard</div>
<div class="sidebar-item">Analytics</div>
<div class="sidebar-item">Customers</div>
<div class="sidebar-item">Products</div>
<div class="sidebar-item">Settings</div>
</div>
<div class="main">
<h1>Dashboard</h1>
<div class="cards">
<div class="card">
<div class="card-label">Revenue</div>
<div class="card-value">$12.4k</div>
<div class="card-change up">+14% this month</div>
</div>
<div class="card">
<div class="card-label">Users</div>
<div class="card-value">2,841</div>
<div class="card-change up">+7% this month</div>
</div>
<div class="card">
<div class="card-label">Bounce Rate</div>
<div class="card-value">24.3%</div>
<div class="card-change down">-2% this month</div>
</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.app {
display: flex;
height: 100vh;
}
.sidebar {
width: 200px;
background: #fff;
border-right: 1px solid #e2e8f0;
padding: 20px 0;
flex-shrink: 0;
}
.sidebar-item {
padding: 10px 20px;
font-size: 14px;
color: #64748b;
cursor: pointer;
}
.sidebar-item.active {
color: #6366f1;
background: #eef2ff;
border-right: 2px solid #6366f1;
font-weight: 600;
}
.main {
flex: 1;
padding: 24px;
}
.main h1 {
font-size: 22px;
margin: 0 0 20px;
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.card {
background: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.card-value {
font-size: 28px;
font-weight: 700;
margin: 6px 0 4px;
}
.card-change {
font-size: 13px;
}
.up {
color: #22c55e;
}
.down {
color: #ef4444;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="app">
<div class="sidebar">
<div class="sidebar-item active">Dashboard</div>
<div class="sidebar-item">Analytics</div>
<div class="sidebar-item">Customers</div>
<div class="sidebar-item">Products</div>
<div class="sidebar-item">Settings</div>
</div>
<div class="main">
<h1>Dashboard</h1>
<div class="cards">
<div class="card">
<div class="card-label">Revenue</div>
<div class="card-value">$12.4k</div>
<div class="card-change up">+14% this month</div>
</div>
<div class="card">
<div class="card-label">Users</div>
<div class="card-value">2,841</div>
<div class="card-change up">+7% this month</div>
</div>
<div class="card">
<div class="card-label">Bounce Rate</div>
<div class="card-value">24.3%</div>
<div class="card-change down">-2% this month</div>
</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.app {
display: flex;
height: 100vh;
}
.sidebar {
width: 200px;
background: #fff;
border-right: 1px solid #e2e8f0;
padding: 20px 0;
flex-shrink: 0;
}
.sidebar-item {
padding: 10px 20px;
font-size: 14px;
color: #64748b;
cursor: pointer;
}
.sidebar-item.active {
color: #6366f1;
background: #eef2ff;
border-right: 2px solid #6366f1;
font-weight: 600;
}
.main {
flex: 1;
padding: 24px;
}
.main h1 {
font-size: 22px;
margin: 0 0 20px;
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.card {
background: #fff;
border-radius: 12px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.card-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.card-value {
font-size: 28px;
font-weight: 700;
margin: 6px 0 4px;
}
.card-change {
font-size: 13px;
}
.up {
color: #22c55e;
}
.down {
color: #ef4444;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div>
</div>tablet is a generic alternative.
Show a URL in the address bar
url fills the browser frame's address bar.
{% mockup device="browser" url="https://example.com/dashboard" %}
{% sandbox src="mockup-browser-analytics" height=798 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"browser","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="title-bar">
<div data-name="traffic-lights">
<span data-name="traffic-light" data-light="close"></span>
<span data-name="traffic-light" data-light="minimize"></span>
<span data-name="traffic-light" data-light="maximize"></span>
</div>
<div data-name="address-bar">
<span data-name="url">https://example.com/dashboard</span>
</div>
</div>
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<h1>Analytics</h1>
<div class="metrics">
<div class="metric"><div class="metric-label">Page views</div><div class="metric-val">48.2k</div></div>
<div class="metric"><div class="metric-label">Sessions</div><div class="metric-val">12.1k</div></div>
<div class="metric"><div class="metric-label">Avg. duration</div><div class="metric-val">3m 24s</div></div>
</div>
<div class="chart">
<div class="chart-title">Weekly Traffic</div>
<div class="bars">
<div class="bar" style="height:60%"><span class="bar-label">Mon</span></div>
<div class="bar" style="height:80%"><span class="bar-label">Tue</span></div>
<div class="bar" style="height:45%"><span class="bar-label">Wed</span></div>
<div class="bar" style="height:90%"><span class="bar-label">Thu</span></div>
<div class="bar" style="height:70%"><span class="bar-label">Fri</span></div>
<div class="bar" style="height:40%"><span class="bar-label">Sat</span></div>
<div class="bar" style="height:35%"><span class="bar-label">Sun</span></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 24px;
box-sizing: border-box;
}
h1 {
font-size: 22px;
margin: 0 0 20px;
}
.metrics {
display: flex;
gap: 16px;
margin-bottom: 24px;
}
.metric {
flex: 1;
background: #fff;
border-radius: 10px;
padding: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.metric-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
}
.metric-val {
font-size: 24px;
font-weight: 700;
margin: 4px 0;
}
.chart {
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.chart-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
}
.bars {
display: flex;
align-items: flex-end;
gap: 12px;
height: 100px;
}
.bar {
flex: 1;
background: #6366f1;
border-radius: 4px 4px 0 0;
position: relative;
}
.bar-label {
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
font-size: 11px;
color: #94a3b8;
}
</style>" data-height="798" data-source-origins="HTML mockup-browser-analytics/index.html
CSS mockup-browser-analytics/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<h1>Analytics</h1>
<div class="metrics">
<div class="metric"><div class="metric-label">Page views</div><div class="metric-val">48.2k</div></div>
<div class="metric"><div class="metric-label">Sessions</div><div class="metric-val">12.1k</div></div>
<div class="metric"><div class="metric-label">Avg. duration</div><div class="metric-val">3m 24s</div></div>
</div>
<div class="chart">
<div class="chart-title">Weekly Traffic</div>
<div class="bars">
<div class="bar" style="height:60%"><span class="bar-label">Mon</span></div>
<div class="bar" style="height:80%"><span class="bar-label">Tue</span></div>
<div class="bar" style="height:45%"><span class="bar-label">Wed</span></div>
<div class="bar" style="height:90%"><span class="bar-label">Thu</span></div>
<div class="bar" style="height:70%"><span class="bar-label">Fri</span></div>
<div class="bar" style="height:40%"><span class="bar-label">Sat</span></div>
<div class="bar" style="height:35%"><span class="bar-label">Sun</span></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 24px;
box-sizing: border-box;
}
h1 {
font-size: 22px;
margin: 0 0 20px;
}
.metrics {
display: flex;
gap: 16px;
margin-bottom: 24px;
}
.metric {
flex: 1;
background: #fff;
border-radius: 10px;
padding: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.metric-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
}
.metric-val {
font-size: 24px;
font-weight: 700;
margin: 4px 0;
}
.chart {
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.chart-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
}
.bars {
display: flex;
align-items: flex-end;
gap: 12px;
height: 100px;
}
.bar {
flex: 1;
background: #6366f1;
border-radius: 4px 4px 0 0;
position: relative;
}
.bar-label {
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
font-size: 11px;
color: #94a3b8;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<h1>Analytics</h1>
<div class="metrics">
<div class="metric"><div class="metric-label">Page views</div><div class="metric-val">48.2k</div></div>
<div class="metric"><div class="metric-label">Sessions</div><div class="metric-val">12.1k</div></div>
<div class="metric"><div class="metric-label">Avg. duration</div><div class="metric-val">3m 24s</div></div>
</div>
<div class="chart">
<div class="chart-title">Weekly Traffic</div>
<div class="bars">
<div class="bar" style="height:60%"><span class="bar-label">Mon</span></div>
<div class="bar" style="height:80%"><span class="bar-label">Tue</span></div>
<div class="bar" style="height:45%"><span class="bar-label">Wed</span></div>
<div class="bar" style="height:90%"><span class="bar-label">Thu</span></div>
<div class="bar" style="height:70%"><span class="bar-label">Fri</span></div>
<div class="bar" style="height:40%"><span class="bar-label">Sat</span></div>
<div class="bar" style="height:35%"><span class="bar-label">Sun</span></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 24px;
box-sizing: border-box;
}
h1 {
font-size: 22px;
margin: 0 0 20px;
}
.metrics {
display: flex;
gap: 16px;
margin-bottom: 24px;
}
.metric {
flex: 1;
background: #fff;
border-radius: 10px;
padding: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.metric-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
}
.metric-val {
font-size: 24px;
font-weight: 700;
margin: 4px 0;
}
.chart {
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.chart-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
}
.bars {
display: flex;
align-items: flex-end;
gap: 12px;
height: 100px;
}
.bar {
flex: 1;
background: #6366f1;
border-radius: 4px 4px 0 0;
position: relative;
}
.bar-label {
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
font-size: 11px;
color: #94a3b8;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div><div class="rf-mockup rf-mockup--browser rf-mockup--dark" data-device="browser" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="title-bar" class="rf-mockup__title-bar">
<div data-name="traffic-lights" class="rf-mockup__traffic-lights">
<span data-name="traffic-light" data-light="close" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="minimize" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="maximize" class="rf-mockup__traffic-light"></span>
</div>
<div data-name="address-bar" class="rf-mockup__address-bar">
<span data-name="url" class="rf-mockup__url">https://example.com/dashboard</span>
</div>
</div>
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<h1>Analytics</h1>
<div class="metrics">
<div class="metric"><div class="metric-label">Page views</div><div class="metric-val">48.2k</div></div>
<div class="metric"><div class="metric-label">Sessions</div><div class="metric-val">12.1k</div></div>
<div class="metric"><div class="metric-label">Avg. duration</div><div class="metric-val">3m 24s</div></div>
</div>
<div class="chart">
<div class="chart-title">Weekly Traffic</div>
<div class="bars">
<div class="bar" style="height:60%"><span class="bar-label">Mon</span></div>
<div class="bar" style="height:80%"><span class="bar-label">Tue</span></div>
<div class="bar" style="height:45%"><span class="bar-label">Wed</span></div>
<div class="bar" style="height:90%"><span class="bar-label">Thu</span></div>
<div class="bar" style="height:70%"><span class="bar-label">Fri</span></div>
<div class="bar" style="height:40%"><span class="bar-label">Sat</span></div>
<div class="bar" style="height:35%"><span class="bar-label">Sun</span></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 24px;
box-sizing: border-box;
}
h1 {
font-size: 22px;
margin: 0 0 20px;
}
.metrics {
display: flex;
gap: 16px;
margin-bottom: 24px;
}
.metric {
flex: 1;
background: #fff;
border-radius: 10px;
padding: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.metric-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
}
.metric-val {
font-size: 24px;
font-weight: 700;
margin: 4px 0;
}
.chart {
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.chart-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
}
.bars {
display: flex;
align-items: flex-end;
gap: 12px;
height: 100px;
}
.bar {
flex: 1;
background: #6366f1;
border-radius: 4px 4px 0 0;
position: relative;
}
.bar-label {
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
font-size: 11px;
color: #94a3b8;
}
</style>" data-height="798" data-source-origins="HTML mockup-browser-analytics/index.html
CSS mockup-browser-analytics/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<h1>Analytics</h1>
<div class="metrics">
<div class="metric"><div class="metric-label">Page views</div><div class="metric-val">48.2k</div></div>
<div class="metric"><div class="metric-label">Sessions</div><div class="metric-val">12.1k</div></div>
<div class="metric"><div class="metric-label">Avg. duration</div><div class="metric-val">3m 24s</div></div>
</div>
<div class="chart">
<div class="chart-title">Weekly Traffic</div>
<div class="bars">
<div class="bar" style="height:60%"><span class="bar-label">Mon</span></div>
<div class="bar" style="height:80%"><span class="bar-label">Tue</span></div>
<div class="bar" style="height:45%"><span class="bar-label">Wed</span></div>
<div class="bar" style="height:90%"><span class="bar-label">Thu</span></div>
<div class="bar" style="height:70%"><span class="bar-label">Fri</span></div>
<div class="bar" style="height:40%"><span class="bar-label">Sat</span></div>
<div class="bar" style="height:35%"><span class="bar-label">Sun</span></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 24px;
box-sizing: border-box;
}
h1 {
font-size: 22px;
margin: 0 0 20px;
}
.metrics {
display: flex;
gap: 16px;
margin-bottom: 24px;
}
.metric {
flex: 1;
background: #fff;
border-radius: 10px;
padding: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.metric-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
}
.metric-val {
font-size: 24px;
font-weight: 700;
margin: 4px 0;
}
.chart {
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.chart-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
}
.bars {
display: flex;
align-items: flex-end;
gap: 12px;
height: 100px;
}
.bar {
flex: 1;
background: #6366f1;
border-radius: 4px 4px 0 0;
position: relative;
}
.bar-label {
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
font-size: 11px;
color: #94a3b8;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<h1>Analytics</h1>
<div class="metrics">
<div class="metric"><div class="metric-label">Page views</div><div class="metric-val">48.2k</div></div>
<div class="metric"><div class="metric-label">Sessions</div><div class="metric-val">12.1k</div></div>
<div class="metric"><div class="metric-label">Avg. duration</div><div class="metric-val">3m 24s</div></div>
</div>
<div class="chart">
<div class="chart-title">Weekly Traffic</div>
<div class="bars">
<div class="bar" style="height:60%"><span class="bar-label">Mon</span></div>
<div class="bar" style="height:80%"><span class="bar-label">Tue</span></div>
<div class="bar" style="height:45%"><span class="bar-label">Wed</span></div>
<div class="bar" style="height:90%"><span class="bar-label">Thu</span></div>
<div class="bar" style="height:70%"><span class="bar-label">Fri</span></div>
<div class="bar" style="height:40%"><span class="bar-label">Sat</span></div>
<div class="bar" style="height:35%"><span class="bar-label">Sun</span></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 24px;
box-sizing: border-box;
}
h1 {
font-size: 22px;
margin: 0 0 20px;
}
.metrics {
display: flex;
gap: 16px;
margin-bottom: 24px;
}
.metric {
flex: 1;
background: #fff;
border-radius: 10px;
padding: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.metric-label {
font-size: 12px;
color: #94a3b8;
text-transform: uppercase;
}
.metric-val {
font-size: 24px;
font-weight: 700;
margin: 4px 0;
}
.chart {
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.chart-title {
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
}
.bars {
display: flex;
align-items: flex-end;
gap: 12px;
height: 100px;
}
.bar {
flex: 1;
background: #6366f1;
border-radius: 4px 4px 0 0;
position: relative;
}
.bar-label {
position: absolute;
bottom: -20px;
left: 50%;
transform: translateX(-50%);
font-size: 11px;
color: #94a3b8;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div>Use dark browser chrome
{% mockup device="browser-dark" url="https://app.example.com" %}
{% sandbox src="mockup-browser-deployments" height=798 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"browser-dark","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="title-bar">
<div data-name="traffic-lights">
<span data-name="traffic-light" data-light="close"></span>
<span data-name="traffic-light" data-light="minimize"></span>
<span data-name="traffic-light" data-light="maximize"></span>
</div>
<div data-name="address-bar">
<span data-name="url">https://app.example.com</span>
</div>
</div>
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<div class="app">
<div class="side">
<div class="side-item active">Deployments</div>
<div class="side-item">Domains</div>
<div class="side-item">Storage</div>
<div class="side-item">Logs</div>
</div>
<div class="content">
<h1>Deployments</h1>
<table class="table">
<tr><th>Service</th><th>Status</th><th>Region</th></tr>
<tr><td>api-prod</td><td><span class="status on">Live</span></td><td>us-east-1</td></tr>
<tr><td>web-app</td><td><span class="status on">Live</span></td><td>eu-west-1</td></tr>
<tr><td>worker-queue</td><td><span class="status off">Stopped</span></td><td>us-east-1</td></tr>
</table>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #0f172a;
color: #e2e8f0;
}
.app {
display: flex;
height: 100vh;
}
.side {
width: 180px;
background: #1e293b;
padding: 20px 0;
border-right: 1px solid #334155;
flex-shrink: 0;
}
.side-item {
padding: 10px 20px;
font-size: 13px;
color: #94a3b8;
}
.side-item.active {
color: #a5b4fc;
background: rgba(99, 102, 241, 0.1);
}
.content {
flex: 1;
padding: 24px;
}
.content h1 {
font-size: 20px;
margin: 0 0 16px;
color: #f1f5f9;
}
.table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.table th {
text-align: left;
padding: 10px 12px;
color: #94a3b8;
border-bottom: 1px solid #334155;
font-weight: 500;
}
.table td {
padding: 10px 12px;
border-bottom: 1px solid #1e293b;
}
.status {
display: inline-block;
padding: 2px 8px;
border-radius: 9999px;
font-size: 11px;
font-weight: 600;
}
.status.on {
background: rgba(34, 197, 94, 0.15);
color: #4ade80;
}
.status.off {
background: rgba(239, 68, 68, 0.15);
color: #f87171;
}
</style>" data-height="798" data-source-origins="HTML mockup-browser-deployments/index.html
CSS mockup-browser-deployments/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<div class="app">
<div class="side">
<div class="side-item active">Deployments</div>
<div class="side-item">Domains</div>
<div class="side-item">Storage</div>
<div class="side-item">Logs</div>
</div>
<div class="content">
<h1>Deployments</h1>
<table class="table">
<tr><th>Service</th><th>Status</th><th>Region</th></tr>
<tr><td>api-prod</td><td><span class="status on">Live</span></td><td>us-east-1</td></tr>
<tr><td>web-app</td><td><span class="status on">Live</span></td><td>eu-west-1</td></tr>
<tr><td>worker-queue</td><td><span class="status off">Stopped</span></td><td>us-east-1</td></tr>
</table>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #0f172a;
color: #e2e8f0;
}
.app {
display: flex;
height: 100vh;
}
.side {
width: 180px;
background: #1e293b;
padding: 20px 0;
border-right: 1px solid #334155;
flex-shrink: 0;
}
.side-item {
padding: 10px 20px;
font-size: 13px;
color: #94a3b8;
}
.side-item.active {
color: #a5b4fc;
background: rgba(99, 102, 241, 0.1);
}
.content {
flex: 1;
padding: 24px;
}
.content h1 {
font-size: 20px;
margin: 0 0 16px;
color: #f1f5f9;
}
.table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.table th {
text-align: left;
padding: 10px 12px;
color: #94a3b8;
border-bottom: 1px solid #334155;
font-weight: 500;
}
.table td {
padding: 10px 12px;
border-bottom: 1px solid #1e293b;
}
.status {
display: inline-block;
padding: 2px 8px;
border-radius: 9999px;
font-size: 11px;
font-weight: 600;
}
.status.on {
background: rgba(34, 197, 94, 0.15);
color: #4ade80;
}
.status.off {
background: rgba(239, 68, 68, 0.15);
color: #f87171;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="app">
<div class="side">
<div class="side-item active">Deployments</div>
<div class="side-item">Domains</div>
<div class="side-item">Storage</div>
<div class="side-item">Logs</div>
</div>
<div class="content">
<h1>Deployments</h1>
<table class="table">
<tr><th>Service</th><th>Status</th><th>Region</th></tr>
<tr><td>api-prod</td><td><span class="status on">Live</span></td><td>us-east-1</td></tr>
<tr><td>web-app</td><td><span class="status on">Live</span></td><td>eu-west-1</td></tr>
<tr><td>worker-queue</td><td><span class="status off">Stopped</span></td><td>us-east-1</td></tr>
</table>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #0f172a;
color: #e2e8f0;
}
.app {
display: flex;
height: 100vh;
}
.side {
width: 180px;
background: #1e293b;
padding: 20px 0;
border-right: 1px solid #334155;
flex-shrink: 0;
}
.side-item {
padding: 10px 20px;
font-size: 13px;
color: #94a3b8;
}
.side-item.active {
color: #a5b4fc;
background: rgba(99, 102, 241, 0.1);
}
.content {
flex: 1;
padding: 24px;
}
.content h1 {
font-size: 20px;
margin: 0 0 16px;
color: #f1f5f9;
}
.table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.table th {
text-align: left;
padding: 10px 12px;
color: #94a3b8;
border-bottom: 1px solid #334155;
font-weight: 500;
}
.table td {
padding: 10px 12px;
border-bottom: 1px solid #1e293b;
}
.status {
display: inline-block;
padding: 2px 8px;
border-radius: 9999px;
font-size: 11px;
font-weight: 600;
}
.status.on {
background: rgba(34, 197, 94, 0.15);
color: #4ade80;
}
.status.off {
background: rgba(239, 68, 68, 0.15);
color: #f87171;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div><div class="rf-mockup rf-mockup--browser-dark rf-mockup--dark" data-device="browser-dark" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="title-bar" class="rf-mockup__title-bar">
<div data-name="traffic-lights" class="rf-mockup__traffic-lights">
<span data-name="traffic-light" data-light="close" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="minimize" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="maximize" class="rf-mockup__traffic-light"></span>
</div>
<div data-name="address-bar" class="rf-mockup__address-bar">
<span data-name="url" class="rf-mockup__url">https://app.example.com</span>
</div>
</div>
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<div class="app">
<div class="side">
<div class="side-item active">Deployments</div>
<div class="side-item">Domains</div>
<div class="side-item">Storage</div>
<div class="side-item">Logs</div>
</div>
<div class="content">
<h1>Deployments</h1>
<table class="table">
<tr><th>Service</th><th>Status</th><th>Region</th></tr>
<tr><td>api-prod</td><td><span class="status on">Live</span></td><td>us-east-1</td></tr>
<tr><td>web-app</td><td><span class="status on">Live</span></td><td>eu-west-1</td></tr>
<tr><td>worker-queue</td><td><span class="status off">Stopped</span></td><td>us-east-1</td></tr>
</table>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #0f172a;
color: #e2e8f0;
}
.app {
display: flex;
height: 100vh;
}
.side {
width: 180px;
background: #1e293b;
padding: 20px 0;
border-right: 1px solid #334155;
flex-shrink: 0;
}
.side-item {
padding: 10px 20px;
font-size: 13px;
color: #94a3b8;
}
.side-item.active {
color: #a5b4fc;
background: rgba(99, 102, 241, 0.1);
}
.content {
flex: 1;
padding: 24px;
}
.content h1 {
font-size: 20px;
margin: 0 0 16px;
color: #f1f5f9;
}
.table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.table th {
text-align: left;
padding: 10px 12px;
color: #94a3b8;
border-bottom: 1px solid #334155;
font-weight: 500;
}
.table td {
padding: 10px 12px;
border-bottom: 1px solid #1e293b;
}
.status {
display: inline-block;
padding: 2px 8px;
border-radius: 9999px;
font-size: 11px;
font-weight: 600;
}
.status.on {
background: rgba(34, 197, 94, 0.15);
color: #4ade80;
}
.status.off {
background: rgba(239, 68, 68, 0.15);
color: #f87171;
}
</style>" data-height="798" data-source-origins="HTML mockup-browser-deployments/index.html
CSS mockup-browser-deployments/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<div class="app">
<div class="side">
<div class="side-item active">Deployments</div>
<div class="side-item">Domains</div>
<div class="side-item">Storage</div>
<div class="side-item">Logs</div>
</div>
<div class="content">
<h1>Deployments</h1>
<table class="table">
<tr><th>Service</th><th>Status</th><th>Region</th></tr>
<tr><td>api-prod</td><td><span class="status on">Live</span></td><td>us-east-1</td></tr>
<tr><td>web-app</td><td><span class="status on">Live</span></td><td>eu-west-1</td></tr>
<tr><td>worker-queue</td><td><span class="status off">Stopped</span></td><td>us-east-1</td></tr>
</table>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #0f172a;
color: #e2e8f0;
}
.app {
display: flex;
height: 100vh;
}
.side {
width: 180px;
background: #1e293b;
padding: 20px 0;
border-right: 1px solid #334155;
flex-shrink: 0;
}
.side-item {
padding: 10px 20px;
font-size: 13px;
color: #94a3b8;
}
.side-item.active {
color: #a5b4fc;
background: rgba(99, 102, 241, 0.1);
}
.content {
flex: 1;
padding: 24px;
}
.content h1 {
font-size: 20px;
margin: 0 0 16px;
color: #f1f5f9;
}
.table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.table th {
text-align: left;
padding: 10px 12px;
color: #94a3b8;
border-bottom: 1px solid #334155;
font-weight: 500;
}
.table td {
padding: 10px 12px;
border-bottom: 1px solid #1e293b;
}
.status {
display: inline-block;
padding: 2px 8px;
border-radius: 9999px;
font-size: 11px;
font-weight: 600;
}
.status.on {
background: rgba(34, 197, 94, 0.15);
color: #4ade80;
}
.status.off {
background: rgba(239, 68, 68, 0.15);
color: #f87171;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="app">
<div class="side">
<div class="side-item active">Deployments</div>
<div class="side-item">Domains</div>
<div class="side-item">Storage</div>
<div class="side-item">Logs</div>
</div>
<div class="content">
<h1>Deployments</h1>
<table class="table">
<tr><th>Service</th><th>Status</th><th>Region</th></tr>
<tr><td>api-prod</td><td><span class="status on">Live</span></td><td>us-east-1</td></tr>
<tr><td>web-app</td><td><span class="status on">Live</span></td><td>eu-west-1</td></tr>
<tr><td>worker-queue</td><td><span class="status off">Stopped</span></td><td>us-east-1</td></tr>
</table>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #0f172a;
color: #e2e8f0;
}
.app {
display: flex;
height: 100vh;
}
.side {
width: 180px;
background: #1e293b;
padding: 20px 0;
border-right: 1px solid #334155;
flex-shrink: 0;
}
.side-item {
padding: 10px 20px;
font-size: 13px;
color: #94a3b8;
}
.side-item.active {
color: #a5b4fc;
background: rgba(99, 102, 241, 0.1);
}
.content {
flex: 1;
padding: 24px;
}
.content h1 {
font-size: 20px;
margin: 0 0 16px;
color: #f1f5f9;
}
.table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.table th {
text-align: left;
padding: 10px 12px;
color: #94a3b8;
border-bottom: 1px solid #334155;
font-weight: 500;
}
.table td {
padding: 10px 12px;
border-bottom: 1px solid #1e293b;
}
.status {
display: inline-block;
padding: 2px 8px;
border-radius: 9999px;
font-size: 11px;
font-weight: 600;
}
.status.on {
background: rgba(34, 197, 94, 0.15);
color: #4ade80;
}
.status.off {
background: rgba(239, 68, 68, 0.15);
color: #f87171;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div>Show it on a laptop
device="macbook" draws the screen above a keyboard and trackpad.
{% mockup device="macbook" %}
{% sandbox src="mockup-laptop-editor" height=900 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"macbook","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="title-bar">
<div data-name="traffic-lights">
<span data-name="traffic-light" data-light="close"></span>
<span data-name="traffic-light" data-light="minimize"></span>
<span data-name="traffic-light" data-light="maximize"></span>
</div>
</div>
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<div class="app">
<div class="toolbar">
<span class="toolbar-btn">File</span>
<span class="toolbar-btn">Edit</span>
<span class="toolbar-btn">View</span>
<span style="flex:1"></span>
<span style="color:#94a3b8; font-size:12px;">main.ts — project</span>
</div>
<div class="workspace">
<div class="panel">
<div class="panel-title">Explorer</div>
<div class="file">src/</div>
<div class="file active">&nbsp;&nbsp;main.ts</div>
<div class="file">&nbsp;&nbsp;utils.ts</div>
<div class="file">&nbsp;&nbsp;types.ts</div>
<div class="file">package.json</div>
</div>
<div class="editor">
<div><span class="ln">1</span><span class="kw">import</span> { <span class="fn">createApp</span> } <span class="kw">from</span> <span class="str">'./app'</span>;</div>
<div><span class="ln">2</span></div>
<div><span class="ln">3</span><span class="cm">// Initialize the application</span></div>
<div><span class="ln">4</span><span class="kw">const</span> app = <span class="fn">createApp</span>({</div>
<div><span class="ln">5</span>&nbsp;&nbsp;port: <span class="str">3000</span>,</div>
<div><span class="ln">6</span>&nbsp;&nbsp;env: <span class="str">'production'</span>,</div>
<div><span class="ln">7</span>});</div>
<div><span class="ln">8</span></div>
<div><span class="ln">9</span>app.<span class="fn">listen</span>();</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #fff;
color: #1e293b;
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.toolbar {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
font-size: 13px;
}
.toolbar-btn {
padding: 4px 10px;
background: #e2e8f0;
border-radius: 4px;
font-size: 12px;
color: #475569;
}
.workspace {
display: flex;
flex: 1;
}
.panel {
width: 180px;
background: #f8fafc;
border-right: 1px solid #e2e8f0;
padding: 12px;
font-size: 13px;
overflow: hidden;
flex-shrink: 0;
}
.panel-title {
font-size: 11px;
text-transform: uppercase;
color: #94a3b8;
letter-spacing: 0.5px;
margin-bottom: 8px;
font-weight: 600;
}
.file {
padding: 4px 8px;
border-radius: 4px;
color: #475569;
}
.file.active {
background: #6366f1;
color: #fff;
}
.editor {
flex: 1;
padding: 16px;
font-family: "SF Mono", "Fira Code", monospace;
font-size: 13px;
background: #fafafa;
line-height: 1.7;
overflow: hidden;
}
.ln {
color: #cbd5e1;
margin-right: 16px;
user-select: none;
}
.kw {
color: #8b5cf6;
}
.fn {
color: #2563eb;
}
.str {
color: #16a34a;
}
.cm {
color: #94a3b8;
}
</style>" data-height="900" data-source-origins="HTML mockup-laptop-editor/index.html
CSS mockup-laptop-editor/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<div class="app">
<div class="toolbar">
<span class="toolbar-btn">File</span>
<span class="toolbar-btn">Edit</span>
<span class="toolbar-btn">View</span>
<span style="flex:1"></span>
<span style="color:#94a3b8; font-size:12px;">main.ts — project</span>
</div>
<div class="workspace">
<div class="panel">
<div class="panel-title">Explorer</div>
<div class="file">src/</div>
<div class="file active">&nbsp;&nbsp;main.ts</div>
<div class="file">&nbsp;&nbsp;utils.ts</div>
<div class="file">&nbsp;&nbsp;types.ts</div>
<div class="file">package.json</div>
</div>
<div class="editor">
<div><span class="ln">1</span><span class="kw">import</span> { <span class="fn">createApp</span> } <span class="kw">from</span> <span class="str">'./app'</span>;</div>
<div><span class="ln">2</span></div>
<div><span class="ln">3</span><span class="cm">// Initialize the application</span></div>
<div><span class="ln">4</span><span class="kw">const</span> app = <span class="fn">createApp</span>({</div>
<div><span class="ln">5</span>&nbsp;&nbsp;port: <span class="str">3000</span>,</div>
<div><span class="ln">6</span>&nbsp;&nbsp;env: <span class="str">'production'</span>,</div>
<div><span class="ln">7</span>});</div>
<div><span class="ln">8</span></div>
<div><span class="ln">9</span>app.<span class="fn">listen</span>();</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #fff;
color: #1e293b;
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.toolbar {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
font-size: 13px;
}
.toolbar-btn {
padding: 4px 10px;
background: #e2e8f0;
border-radius: 4px;
font-size: 12px;
color: #475569;
}
.workspace {
display: flex;
flex: 1;
}
.panel {
width: 180px;
background: #f8fafc;
border-right: 1px solid #e2e8f0;
padding: 12px;
font-size: 13px;
overflow: hidden;
flex-shrink: 0;
}
.panel-title {
font-size: 11px;
text-transform: uppercase;
color: #94a3b8;
letter-spacing: 0.5px;
margin-bottom: 8px;
font-weight: 600;
}
.file {
padding: 4px 8px;
border-radius: 4px;
color: #475569;
}
.file.active {
background: #6366f1;
color: #fff;
}
.editor {
flex: 1;
padding: 16px;
font-family: "SF Mono", "Fira Code", monospace;
font-size: 13px;
background: #fafafa;
line-height: 1.7;
overflow: hidden;
}
.ln {
color: #cbd5e1;
margin-right: 16px;
user-select: none;
}
.kw {
color: #8b5cf6;
}
.fn {
color: #2563eb;
}
.str {
color: #16a34a;
}
.cm {
color: #94a3b8;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="app">
<div class="toolbar">
<span class="toolbar-btn">File</span>
<span class="toolbar-btn">Edit</span>
<span class="toolbar-btn">View</span>
<span style="flex:1"></span>
<span style="color:#94a3b8; font-size:12px;">main.ts — project</span>
</div>
<div class="workspace">
<div class="panel">
<div class="panel-title">Explorer</div>
<div class="file">src/</div>
<div class="file active">&nbsp;&nbsp;main.ts</div>
<div class="file">&nbsp;&nbsp;utils.ts</div>
<div class="file">&nbsp;&nbsp;types.ts</div>
<div class="file">package.json</div>
</div>
<div class="editor">
<div><span class="ln">1</span><span class="kw">import</span> { <span class="fn">createApp</span> } <span class="kw">from</span> <span class="str">'./app'</span>;</div>
<div><span class="ln">2</span></div>
<div><span class="ln">3</span><span class="cm">// Initialize the application</span></div>
<div><span class="ln">4</span><span class="kw">const</span> app = <span class="fn">createApp</span>({</div>
<div><span class="ln">5</span>&nbsp;&nbsp;port: <span class="str">3000</span>,</div>
<div><span class="ln">6</span>&nbsp;&nbsp;env: <span class="str">'production'</span>,</div>
<div><span class="ln">7</span>});</div>
<div><span class="ln">8</span></div>
<div><span class="ln">9</span>app.<span class="fn">listen</span>();</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #fff;
color: #1e293b;
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.toolbar {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
font-size: 13px;
}
.toolbar-btn {
padding: 4px 10px;
background: #e2e8f0;
border-radius: 4px;
font-size: 12px;
color: #475569;
}
.workspace {
display: flex;
flex: 1;
}
.panel {
width: 180px;
background: #f8fafc;
border-right: 1px solid #e2e8f0;
padding: 12px;
font-size: 13px;
overflow: hidden;
flex-shrink: 0;
}
.panel-title {
font-size: 11px;
text-transform: uppercase;
color: #94a3b8;
letter-spacing: 0.5px;
margin-bottom: 8px;
font-weight: 600;
}
.file {
padding: 4px 8px;
border-radius: 4px;
color: #475569;
}
.file.active {
background: #6366f1;
color: #fff;
}
.editor {
flex: 1;
padding: 16px;
font-family: "SF Mono", "Fira Code", monospace;
font-size: 13px;
background: #fafafa;
line-height: 1.7;
overflow: hidden;
}
.ln {
color: #cbd5e1;
margin-right: 16px;
user-select: none;
}
.kw {
color: #8b5cf6;
}
.fn {
color: #2563eb;
}
.str {
color: #16a34a;
}
.cm {
color: #94a3b8;
}
</style></template>
</rf-sandbox>
</div>
<div data-name="keyboard">
<div data-name="trackpad"></div>
</div>
</div>
</div><div class="rf-mockup rf-mockup--macbook rf-mockup--dark" data-device="macbook" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="title-bar" class="rf-mockup__title-bar">
<div data-name="traffic-lights" class="rf-mockup__traffic-lights">
<span data-name="traffic-light" data-light="close" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="minimize" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="maximize" class="rf-mockup__traffic-light"></span>
</div>
</div>
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<div class="app">
<div class="toolbar">
<span class="toolbar-btn">File</span>
<span class="toolbar-btn">Edit</span>
<span class="toolbar-btn">View</span>
<span style="flex:1"></span>
<span style="color:#94a3b8; font-size:12px;">main.ts — project</span>
</div>
<div class="workspace">
<div class="panel">
<div class="panel-title">Explorer</div>
<div class="file">src/</div>
<div class="file active">&nbsp;&nbsp;main.ts</div>
<div class="file">&nbsp;&nbsp;utils.ts</div>
<div class="file">&nbsp;&nbsp;types.ts</div>
<div class="file">package.json</div>
</div>
<div class="editor">
<div><span class="ln">1</span><span class="kw">import</span> { <span class="fn">createApp</span> } <span class="kw">from</span> <span class="str">'./app'</span>;</div>
<div><span class="ln">2</span></div>
<div><span class="ln">3</span><span class="cm">// Initialize the application</span></div>
<div><span class="ln">4</span><span class="kw">const</span> app = <span class="fn">createApp</span>({</div>
<div><span class="ln">5</span>&nbsp;&nbsp;port: <span class="str">3000</span>,</div>
<div><span class="ln">6</span>&nbsp;&nbsp;env: <span class="str">'production'</span>,</div>
<div><span class="ln">7</span>});</div>
<div><span class="ln">8</span></div>
<div><span class="ln">9</span>app.<span class="fn">listen</span>();</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #fff;
color: #1e293b;
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.toolbar {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
font-size: 13px;
}
.toolbar-btn {
padding: 4px 10px;
background: #e2e8f0;
border-radius: 4px;
font-size: 12px;
color: #475569;
}
.workspace {
display: flex;
flex: 1;
}
.panel {
width: 180px;
background: #f8fafc;
border-right: 1px solid #e2e8f0;
padding: 12px;
font-size: 13px;
overflow: hidden;
flex-shrink: 0;
}
.panel-title {
font-size: 11px;
text-transform: uppercase;
color: #94a3b8;
letter-spacing: 0.5px;
margin-bottom: 8px;
font-weight: 600;
}
.file {
padding: 4px 8px;
border-radius: 4px;
color: #475569;
}
.file.active {
background: #6366f1;
color: #fff;
}
.editor {
flex: 1;
padding: 16px;
font-family: "SF Mono", "Fira Code", monospace;
font-size: 13px;
background: #fafafa;
line-height: 1.7;
overflow: hidden;
}
.ln {
color: #cbd5e1;
margin-right: 16px;
user-select: none;
}
.kw {
color: #8b5cf6;
}
.fn {
color: #2563eb;
}
.str {
color: #16a34a;
}
.cm {
color: #94a3b8;
}
</style>" data-height="900" data-source-origins="HTML mockup-laptop-editor/index.html
CSS mockup-laptop-editor/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<div class="app">
<div class="toolbar">
<span class="toolbar-btn">File</span>
<span class="toolbar-btn">Edit</span>
<span class="toolbar-btn">View</span>
<span style="flex:1"></span>
<span style="color:#94a3b8; font-size:12px;">main.ts — project</span>
</div>
<div class="workspace">
<div class="panel">
<div class="panel-title">Explorer</div>
<div class="file">src/</div>
<div class="file active">&nbsp;&nbsp;main.ts</div>
<div class="file">&nbsp;&nbsp;utils.ts</div>
<div class="file">&nbsp;&nbsp;types.ts</div>
<div class="file">package.json</div>
</div>
<div class="editor">
<div><span class="ln">1</span><span class="kw">import</span> { <span class="fn">createApp</span> } <span class="kw">from</span> <span class="str">'./app'</span>;</div>
<div><span class="ln">2</span></div>
<div><span class="ln">3</span><span class="cm">// Initialize the application</span></div>
<div><span class="ln">4</span><span class="kw">const</span> app = <span class="fn">createApp</span>({</div>
<div><span class="ln">5</span>&nbsp;&nbsp;port: <span class="str">3000</span>,</div>
<div><span class="ln">6</span>&nbsp;&nbsp;env: <span class="str">'production'</span>,</div>
<div><span class="ln">7</span>});</div>
<div><span class="ln">8</span></div>
<div><span class="ln">9</span>app.<span class="fn">listen</span>();</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #fff;
color: #1e293b;
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.toolbar {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
font-size: 13px;
}
.toolbar-btn {
padding: 4px 10px;
background: #e2e8f0;
border-radius: 4px;
font-size: 12px;
color: #475569;
}
.workspace {
display: flex;
flex: 1;
}
.panel {
width: 180px;
background: #f8fafc;
border-right: 1px solid #e2e8f0;
padding: 12px;
font-size: 13px;
overflow: hidden;
flex-shrink: 0;
}
.panel-title {
font-size: 11px;
text-transform: uppercase;
color: #94a3b8;
letter-spacing: 0.5px;
margin-bottom: 8px;
font-weight: 600;
}
.file {
padding: 4px 8px;
border-radius: 4px;
color: #475569;
}
.file.active {
background: #6366f1;
color: #fff;
}
.editor {
flex: 1;
padding: 16px;
font-family: "SF Mono", "Fira Code", monospace;
font-size: 13px;
background: #fafafa;
line-height: 1.7;
overflow: hidden;
}
.ln {
color: #cbd5e1;
margin-right: 16px;
user-select: none;
}
.kw {
color: #8b5cf6;
}
.fn {
color: #2563eb;
}
.str {
color: #16a34a;
}
.cm {
color: #94a3b8;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="app">
<div class="toolbar">
<span class="toolbar-btn">File</span>
<span class="toolbar-btn">Edit</span>
<span class="toolbar-btn">View</span>
<span style="flex:1"></span>
<span style="color:#94a3b8; font-size:12px;">main.ts — project</span>
</div>
<div class="workspace">
<div class="panel">
<div class="panel-title">Explorer</div>
<div class="file">src/</div>
<div class="file active">&nbsp;&nbsp;main.ts</div>
<div class="file">&nbsp;&nbsp;utils.ts</div>
<div class="file">&nbsp;&nbsp;types.ts</div>
<div class="file">package.json</div>
</div>
<div class="editor">
<div><span class="ln">1</span><span class="kw">import</span> { <span class="fn">createApp</span> } <span class="kw">from</span> <span class="str">'./app'</span>;</div>
<div><span class="ln">2</span></div>
<div><span class="ln">3</span><span class="cm">// Initialize the application</span></div>
<div><span class="ln">4</span><span class="kw">const</span> app = <span class="fn">createApp</span>({</div>
<div><span class="ln">5</span>&nbsp;&nbsp;port: <span class="str">3000</span>,</div>
<div><span class="ln">6</span>&nbsp;&nbsp;env: <span class="str">'production'</span>,</div>
<div><span class="ln">7</span>});</div>
<div><span class="ln">8</span></div>
<div><span class="ln">9</span>app.<span class="fn">listen</span>();</div>
</div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #fff;
color: #1e293b;
}
.app {
display: flex;
flex-direction: column;
height: 100vh;
}
.toolbar {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: #f8fafc;
border-bottom: 1px solid #e2e8f0;
font-size: 13px;
}
.toolbar-btn {
padding: 4px 10px;
background: #e2e8f0;
border-radius: 4px;
font-size: 12px;
color: #475569;
}
.workspace {
display: flex;
flex: 1;
}
.panel {
width: 180px;
background: #f8fafc;
border-right: 1px solid #e2e8f0;
padding: 12px;
font-size: 13px;
overflow: hidden;
flex-shrink: 0;
}
.panel-title {
font-size: 11px;
text-transform: uppercase;
color: #94a3b8;
letter-spacing: 0.5px;
margin-bottom: 8px;
font-weight: 600;
}
.file {
padding: 4px 8px;
border-radius: 4px;
color: #475569;
}
.file.active {
background: #6366f1;
color: #fff;
}
.editor {
flex: 1;
padding: 16px;
font-family: "SF Mono", "Fira Code", monospace;
font-size: 13px;
background: #fafafa;
line-height: 1.7;
overflow: hidden;
}
.ln {
color: #cbd5e1;
margin-right: 16px;
user-select: none;
}
.kw {
color: #8b5cf6;
}
.fn {
color: #2563eb;
}
.str {
color: #16a34a;
}
.cm {
color: #94a3b8;
}
</style></template>
</rf-sandbox>
</div>
<div data-name="keyboard" class="rf-mockup__keyboard">
<div data-name="trackpad" class="rf-mockup__trackpad"></div>
</div>
</div>
</div>Show it on a watch
{% mockup device="watch" color="dark" %}
{% sandbox src="mockup-watch-face" height=242 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"watch","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="bezel">
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<div class="app">
<div class="time">10:09</div>
<div class="date">TUE MAR 4</div>
<div class="rings">
<div class="ring" style="border-color: #ef4444;"></div>
<div class="ring" style="border-color: #22c55e;"></div>
<div class="ring" style="border-color: #06b6d4;"></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #000;
color: #fff;
}
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: 12px;
text-align: center;
box-sizing: border-box;
}
.time {
font-size: 36px;
font-weight: 200;
letter-spacing: 2px;
}
.date {
font-size: 11px;
color: #f97316;
margin-top: 2px;
font-weight: 600;
}
.rings {
display: flex;
gap: 8px;
margin-top: 12px;
}
.ring {
width: 24px;
height: 24px;
border-radius: 50%;
border: 3px solid;
}
</style>" data-height="242" data-source-origins="HTML mockup-watch-face/index.html
CSS mockup-watch-face/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<div class="app">
<div class="time">10:09</div>
<div class="date">TUE MAR 4</div>
<div class="rings">
<div class="ring" style="border-color: #ef4444;"></div>
<div class="ring" style="border-color: #22c55e;"></div>
<div class="ring" style="border-color: #06b6d4;"></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #000;
color: #fff;
}
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: 12px;
text-align: center;
box-sizing: border-box;
}
.time {
font-size: 36px;
font-weight: 200;
letter-spacing: 2px;
}
.date {
font-size: 11px;
color: #f97316;
margin-top: 2px;
font-weight: 600;
}
.rings {
display: flex;
gap: 8px;
margin-top: 12px;
}
.ring {
width: 24px;
height: 24px;
border-radius: 50%;
border: 3px solid;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="app">
<div class="time">10:09</div>
<div class="date">TUE MAR 4</div>
<div class="rings">
<div class="ring" style="border-color: #ef4444;"></div>
<div class="ring" style="border-color: #22c55e;"></div>
<div class="ring" style="border-color: #06b6d4;"></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #000;
color: #fff;
}
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: 12px;
text-align: center;
box-sizing: border-box;
}
.time {
font-size: 36px;
font-weight: 200;
letter-spacing: 2px;
}
.date {
font-size: 11px;
color: #f97316;
margin-top: 2px;
font-weight: 600;
}
.rings {
display: flex;
gap: 8px;
margin-top: 12px;
}
.ring {
width: 24px;
height: 24px;
border-radius: 50%;
border: 3px solid;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div>
</div><div class="rf-mockup rf-mockup--watch rf-mockup--dark" data-device="watch" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="bezel" class="rf-mockup__bezel">
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<div class="app">
<div class="time">10:09</div>
<div class="date">TUE MAR 4</div>
<div class="rings">
<div class="ring" style="border-color: #ef4444;"></div>
<div class="ring" style="border-color: #22c55e;"></div>
<div class="ring" style="border-color: #06b6d4;"></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #000;
color: #fff;
}
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: 12px;
text-align: center;
box-sizing: border-box;
}
.time {
font-size: 36px;
font-weight: 200;
letter-spacing: 2px;
}
.date {
font-size: 11px;
color: #f97316;
margin-top: 2px;
font-weight: 600;
}
.rings {
display: flex;
gap: 8px;
margin-top: 12px;
}
.ring {
width: 24px;
height: 24px;
border-radius: 50%;
border: 3px solid;
}
</style>" data-height="242" data-source-origins="HTML mockup-watch-face/index.html
CSS mockup-watch-face/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<div class="app">
<div class="time">10:09</div>
<div class="date">TUE MAR 4</div>
<div class="rings">
<div class="ring" style="border-color: #ef4444;"></div>
<div class="ring" style="border-color: #22c55e;"></div>
<div class="ring" style="border-color: #06b6d4;"></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #000;
color: #fff;
}
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: 12px;
text-align: center;
box-sizing: border-box;
}
.time {
font-size: 36px;
font-weight: 200;
letter-spacing: 2px;
}
.date {
font-size: 11px;
color: #f97316;
margin-top: 2px;
font-weight: 600;
}
.rings {
display: flex;
gap: 8px;
margin-top: 12px;
}
.ring {
width: 24px;
height: 24px;
border-radius: 50%;
border: 3px solid;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="app">
<div class="time">10:09</div>
<div class="date">TUE MAR 4</div>
<div class="rings">
<div class="ring" style="border-color: #ef4444;"></div>
<div class="ring" style="border-color: #22c55e;"></div>
<div class="ring" style="border-color: #06b6d4;"></div>
</div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #000;
color: #fff;
}
.app {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
padding: 12px;
text-align: center;
box-sizing: border-box;
}
.time {
font-size: 36px;
font-weight: 200;
letter-spacing: 2px;
}
.date {
font-size: 11px;
color: #f97316;
margin-top: 2px;
font-weight: 600;
}
.rings {
display: flex;
gap: 8px;
margin-top: 12px;
}
.ring {
width: 24px;
height: 24px;
border-radius: 50%;
border: 3px solid;
}
</style></template>
</rf-sandbox>
</div>
</div>
</div>
</div>Change the bezel color
color takes dark (the default), light, or auto to follow the page.
{% mockup device="iphone-15" color="light" %}
{% sandbox src="mockup-phone-player" height=852 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"iphone-15","color":"light","fit":"auto"}">
<div data-name="frame">
<div data-name="bezel">
<div data-name="notch" data-notch="dynamic-island"></div>
<div data-name="status-bar">
<span data-name="status-time">9:41</span>
<span data-name="status-icons"></span>
</div>
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<div class="now-playing">
<div class="art"></div>
<div class="title">Midnight Drive</div>
<div class="artist">Neon Waves</div>
</div>
<div class="progress"><div class="progress-fill"></div></div>
<div class="times"><span>1:24</span><span>3:42</span></div>
<div class="controls">
<span>&#9198;</span>
<div class="play"></div>
<span>&#9197;</span>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.now-playing {
padding: 32px 20px 20px;
text-align: center;
}
.art {
width: 180px;
height: 180px;
margin: 0 auto 20px;
border-radius: 12px;
background: linear-gradient(135deg, #c4b5fd, #818cf8, #6366f1);
}
.title {
font-size: 18px;
font-weight: 700;
}
.artist {
font-size: 14px;
color: #64748b;
margin-top: 2px;
}
.progress {
margin: 20px 20px 0;
height: 3px;
background: #e2e8f0;
border-radius: 2px;
}
.progress-fill {
height: 100%;
width: 40%;
background: #6366f1;
border-radius: 2px;
}
.times {
display: flex;
justify-content: space-between;
margin: 6px 20px 0;
font-size: 11px;
color: #94a3b8;
}
.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
margin-top: 16px;
font-size: 20px;
color: #334155;
}
.play {
width: 48px;
height: 48px;
background: #6366f1;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.play::after {
content: "";
border-style: solid;
border-width: 8px 0 8px 14px;
border-color: transparent transparent transparent #fff;
margin-left: 2px;
}
</style>" data-height="852" data-source-origins="HTML mockup-phone-player/index.html
CSS mockup-phone-player/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<div class="now-playing">
<div class="art"></div>
<div class="title">Midnight Drive</div>
<div class="artist">Neon Waves</div>
</div>
<div class="progress"><div class="progress-fill"></div></div>
<div class="times"><span>1:24</span><span>3:42</span></div>
<div class="controls">
<span>&#9198;</span>
<div class="play"></div>
<span>&#9197;</span>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.now-playing {
padding: 32px 20px 20px;
text-align: center;
}
.art {
width: 180px;
height: 180px;
margin: 0 auto 20px;
border-radius: 12px;
background: linear-gradient(135deg, #c4b5fd, #818cf8, #6366f1);
}
.title {
font-size: 18px;
font-weight: 700;
}
.artist {
font-size: 14px;
color: #64748b;
margin-top: 2px;
}
.progress {
margin: 20px 20px 0;
height: 3px;
background: #e2e8f0;
border-radius: 2px;
}
.progress-fill {
height: 100%;
width: 40%;
background: #6366f1;
border-radius: 2px;
}
.times {
display: flex;
justify-content: space-between;
margin: 6px 20px 0;
font-size: 11px;
color: #94a3b8;
}
.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
margin-top: 16px;
font-size: 20px;
color: #334155;
}
.play {
width: 48px;
height: 48px;
background: #6366f1;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.play::after {
content: "";
border-style: solid;
border-width: 8px 0 8px 14px;
border-color: transparent transparent transparent #fff;
margin-left: 2px;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="now-playing">
<div class="art"></div>
<div class="title">Midnight Drive</div>
<div class="artist">Neon Waves</div>
</div>
<div class="progress"><div class="progress-fill"></div></div>
<div class="times"><span>1:24</span><span>3:42</span></div>
<div class="controls">
<span>&#9198;</span>
<div class="play"></div>
<span>&#9197;</span>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.now-playing {
padding: 32px 20px 20px;
text-align: center;
}
.art {
width: 180px;
height: 180px;
margin: 0 auto 20px;
border-radius: 12px;
background: linear-gradient(135deg, #c4b5fd, #818cf8, #6366f1);
}
.title {
font-size: 18px;
font-weight: 700;
}
.artist {
font-size: 14px;
color: #64748b;
margin-top: 2px;
}
.progress {
margin: 20px 20px 0;
height: 3px;
background: #e2e8f0;
border-radius: 2px;
}
.progress-fill {
height: 100%;
width: 40%;
background: #6366f1;
border-radius: 2px;
}
.times {
display: flex;
justify-content: space-between;
margin: 6px 20px 0;
font-size: 11px;
color: #94a3b8;
}
.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
margin-top: 16px;
font-size: 20px;
color: #334155;
}
.play {
width: 48px;
height: 48px;
background: #6366f1;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.play::after {
content: "";
border-style: solid;
border-width: 8px 0 8px 14px;
border-color: transparent transparent transparent #fff;
margin-left: 2px;
}
</style></template>
</rf-sandbox>
</div>
<div data-name="home-indicator"></div>
</div>
</div>
</div><div class="rf-mockup rf-mockup--iphone-15 rf-mockup--light" data-device="iphone-15" data-color="light" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="bezel" class="rf-mockup__bezel">
<div data-name="notch" data-notch="dynamic-island" class="rf-mockup__notch"></div>
<div data-name="status-bar" class="rf-mockup__status-bar">
<span data-name="status-time" class="rf-mockup__status-time">9:41</span>
<span data-name="status-icons" class="rf-mockup__status-icons"></span>
</div>
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<div class="now-playing">
<div class="art"></div>
<div class="title">Midnight Drive</div>
<div class="artist">Neon Waves</div>
</div>
<div class="progress"><div class="progress-fill"></div></div>
<div class="times"><span>1:24</span><span>3:42</span></div>
<div class="controls">
<span>&#9198;</span>
<div class="play"></div>
<span>&#9197;</span>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.now-playing {
padding: 32px 20px 20px;
text-align: center;
}
.art {
width: 180px;
height: 180px;
margin: 0 auto 20px;
border-radius: 12px;
background: linear-gradient(135deg, #c4b5fd, #818cf8, #6366f1);
}
.title {
font-size: 18px;
font-weight: 700;
}
.artist {
font-size: 14px;
color: #64748b;
margin-top: 2px;
}
.progress {
margin: 20px 20px 0;
height: 3px;
background: #e2e8f0;
border-radius: 2px;
}
.progress-fill {
height: 100%;
width: 40%;
background: #6366f1;
border-radius: 2px;
}
.times {
display: flex;
justify-content: space-between;
margin: 6px 20px 0;
font-size: 11px;
color: #94a3b8;
}
.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
margin-top: 16px;
font-size: 20px;
color: #334155;
}
.play {
width: 48px;
height: 48px;
background: #6366f1;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.play::after {
content: "";
border-style: solid;
border-width: 8px 0 8px 14px;
border-color: transparent transparent transparent #fff;
margin-left: 2px;
}
</style>" data-height="852" data-source-origins="HTML mockup-phone-player/index.html
CSS mockup-phone-player/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<div class="now-playing">
<div class="art"></div>
<div class="title">Midnight Drive</div>
<div class="artist">Neon Waves</div>
</div>
<div class="progress"><div class="progress-fill"></div></div>
<div class="times"><span>1:24</span><span>3:42</span></div>
<div class="controls">
<span>&#9198;</span>
<div class="play"></div>
<span>&#9197;</span>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.now-playing {
padding: 32px 20px 20px;
text-align: center;
}
.art {
width: 180px;
height: 180px;
margin: 0 auto 20px;
border-radius: 12px;
background: linear-gradient(135deg, #c4b5fd, #818cf8, #6366f1);
}
.title {
font-size: 18px;
font-weight: 700;
}
.artist {
font-size: 14px;
color: #64748b;
margin-top: 2px;
}
.progress {
margin: 20px 20px 0;
height: 3px;
background: #e2e8f0;
border-radius: 2px;
}
.progress-fill {
height: 100%;
width: 40%;
background: #6366f1;
border-radius: 2px;
}
.times {
display: flex;
justify-content: space-between;
margin: 6px 20px 0;
font-size: 11px;
color: #94a3b8;
}
.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
margin-top: 16px;
font-size: 20px;
color: #334155;
}
.play {
width: 48px;
height: 48px;
background: #6366f1;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.play::after {
content: "";
border-style: solid;
border-width: 8px 0 8px 14px;
border-color: transparent transparent transparent #fff;
margin-left: 2px;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="now-playing">
<div class="art"></div>
<div class="title">Midnight Drive</div>
<div class="artist">Neon Waves</div>
</div>
<div class="progress"><div class="progress-fill"></div></div>
<div class="times"><span>1:24</span><span>3:42</span></div>
<div class="controls">
<span>&#9198;</span>
<div class="play"></div>
<span>&#9197;</span>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
.now-playing {
padding: 32px 20px 20px;
text-align: center;
}
.art {
width: 180px;
height: 180px;
margin: 0 auto 20px;
border-radius: 12px;
background: linear-gradient(135deg, #c4b5fd, #818cf8, #6366f1);
}
.title {
font-size: 18px;
font-weight: 700;
}
.artist {
font-size: 14px;
color: #64748b;
margin-top: 2px;
}
.progress {
margin: 20px 20px 0;
height: 3px;
background: #e2e8f0;
border-radius: 2px;
}
.progress-fill {
height: 100%;
width: 40%;
background: #6366f1;
border-radius: 2px;
}
.times {
display: flex;
justify-content: space-between;
margin: 6px 20px 0;
font-size: 11px;
color: #94a3b8;
}
.controls {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
margin-top: 16px;
font-size: 20px;
color: #334155;
}
.play {
width: 48px;
height: 48px;
background: #6366f1;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.play::after {
content: "";
border-style: solid;
border-width: 8px 0 8px 14px;
border-color: transparent transparent transparent #fff;
margin-left: 2px;
}
</style></template>
</rf-sandbox>
</div>
<div data-name="home-indicator" class="rf-mockup__home-indicator"></div>
</div>
</div>
</div>Add a caption
label puts a caption below the frame.
{% mockup device="browser" url="https://example.com" label="Homepage — Desktop" %}
{% sandbox src="mockup-browser-homepage" height=798 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"browser","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="title-bar">
<div data-name="traffic-lights">
<span data-name="traffic-light" data-light="close"></span>
<span data-name="traffic-light" data-light="minimize"></span>
<span data-name="traffic-light" data-light="maximize"></span>
</div>
<div data-name="address-bar">
<span data-name="url">https://example.com</span>
</div>
</div>
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<div class="hero">
<h1>Deploys you can forget about</h1>
<p>Preview builds, instant rollbacks and logs in one place.</p>
<a class="cta" href="#">Start free trial</a>
</div>
<div class="features">
<div class="feat"><div class="feat-icon">&#9889;</div><h3>Fast</h3><p>Sub-second load times</p></div>
<div class="feat"><div class="feat-icon">&#128274;</div><h3>Secure</h3><p>Enterprise-grade auth</p></div>
<div class="feat"><div class="feat-icon">&#128200;</div><h3>Scalable</h3><p>Grows with your team</p></div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
.hero {
text-align: center;
padding: 48px 24px;
background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.hero h1 {
font-size: 28px;
margin: 0 0 8px;
}
.hero p {
color: #64748b;
margin: 0 0 20px;
}
.cta {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 32px 24px;
}
.feat {
text-align: center;
padding: 16px;
}
.feat-icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
border-radius: 10px;
background: #eef2ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.feat h3 {
font-size: 14px;
margin: 0 0 4px;
}
.feat p {
font-size: 13px;
color: #64748b;
margin: 0;
}
</style>" data-height="798" data-source-origins="HTML mockup-browser-homepage/index.html
CSS mockup-browser-homepage/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<div class="hero">
<h1>Deploys you can forget about</h1>
<p>Preview builds, instant rollbacks and logs in one place.</p>
<a class="cta" href="#">Start free trial</a>
</div>
<div class="features">
<div class="feat"><div class="feat-icon">&#9889;</div><h3>Fast</h3><p>Sub-second load times</p></div>
<div class="feat"><div class="feat-icon">&#128274;</div><h3>Secure</h3><p>Enterprise-grade auth</p></div>
<div class="feat"><div class="feat-icon">&#128200;</div><h3>Scalable</h3><p>Grows with your team</p></div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
.hero {
text-align: center;
padding: 48px 24px;
background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.hero h1 {
font-size: 28px;
margin: 0 0 8px;
}
.hero p {
color: #64748b;
margin: 0 0 20px;
}
.cta {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 32px 24px;
}
.feat {
text-align: center;
padding: 16px;
}
.feat-icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
border-radius: 10px;
background: #eef2ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.feat h3 {
font-size: 14px;
margin: 0 0 4px;
}
.feat p {
font-size: 13px;
color: #64748b;
margin: 0;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="hero">
<h1>Deploys you can forget about</h1>
<p>Preview builds, instant rollbacks and logs in one place.</p>
<a class="cta" href="#">Start free trial</a>
</div>
<div class="features">
<div class="feat"><div class="feat-icon">&#9889;</div><h3>Fast</h3><p>Sub-second load times</p></div>
<div class="feat"><div class="feat-icon">&#128274;</div><h3>Secure</h3><p>Enterprise-grade auth</p></div>
<div class="feat"><div class="feat-icon">&#128200;</div><h3>Scalable</h3><p>Grows with your team</p></div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
.hero {
text-align: center;
padding: 48px 24px;
background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.hero h1 {
font-size: 28px;
margin: 0 0 8px;
}
.hero p {
color: #64748b;
margin: 0 0 20px;
}
.cta {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 32px 24px;
}
.feat {
text-align: center;
padding: 16px;
}
.feat-icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
border-radius: 10px;
background: #eef2ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.feat h3 {
font-size: 14px;
margin: 0 0 4px;
}
.feat p {
font-size: 13px;
color: #64748b;
margin: 0;
}
</style></template>
</rf-sandbox>
</div>
</div>
<div data-name="label">Homepage — Desktop</div>
</div><div class="rf-mockup rf-mockup--browser rf-mockup--dark" data-device="browser" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="title-bar" class="rf-mockup__title-bar">
<div data-name="traffic-lights" class="rf-mockup__traffic-lights">
<span data-name="traffic-light" data-light="close" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="minimize" class="rf-mockup__traffic-light"></span>
<span data-name="traffic-light" data-light="maximize" class="rf-mockup__traffic-light"></span>
</div>
<div data-name="address-bar" class="rf-mockup__address-bar">
<span data-name="url" class="rf-mockup__url">https://example.com</span>
</div>
</div>
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<div class="hero">
<h1>Deploys you can forget about</h1>
<p>Preview builds, instant rollbacks and logs in one place.</p>
<a class="cta" href="#">Start free trial</a>
</div>
<div class="features">
<div class="feat"><div class="feat-icon">&#9889;</div><h3>Fast</h3><p>Sub-second load times</p></div>
<div class="feat"><div class="feat-icon">&#128274;</div><h3>Secure</h3><p>Enterprise-grade auth</p></div>
<div class="feat"><div class="feat-icon">&#128200;</div><h3>Scalable</h3><p>Grows with your team</p></div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
.hero {
text-align: center;
padding: 48px 24px;
background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.hero h1 {
font-size: 28px;
margin: 0 0 8px;
}
.hero p {
color: #64748b;
margin: 0 0 20px;
}
.cta {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 32px 24px;
}
.feat {
text-align: center;
padding: 16px;
}
.feat-icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
border-radius: 10px;
background: #eef2ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.feat h3 {
font-size: 14px;
margin: 0 0 4px;
}
.feat p {
font-size: 13px;
color: #64748b;
margin: 0;
}
</style>" data-height="798" data-source-origins="HTML mockup-browser-homepage/index.html
CSS mockup-browser-homepage/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<div class="hero">
<h1>Deploys you can forget about</h1>
<p>Preview builds, instant rollbacks and logs in one place.</p>
<a class="cta" href="#">Start free trial</a>
</div>
<div class="features">
<div class="feat"><div class="feat-icon">&#9889;</div><h3>Fast</h3><p>Sub-second load times</p></div>
<div class="feat"><div class="feat-icon">&#128274;</div><h3>Secure</h3><p>Enterprise-grade auth</p></div>
<div class="feat"><div class="feat-icon">&#128200;</div><h3>Scalable</h3><p>Grows with your team</p></div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
.hero {
text-align: center;
padding: 48px 24px;
background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.hero h1 {
font-size: 28px;
margin: 0 0 8px;
}
.hero p {
color: #64748b;
margin: 0 0 20px;
}
.cta {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 32px 24px;
}
.feat {
text-align: center;
padding: 16px;
}
.feat-icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
border-radius: 10px;
background: #eef2ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.feat h3 {
font-size: 14px;
margin: 0 0 4px;
}
.feat p {
font-size: 13px;
color: #64748b;
margin: 0;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="hero">
<h1>Deploys you can forget about</h1>
<p>Preview builds, instant rollbacks and logs in one place.</p>
<a class="cta" href="#">Start free trial</a>
</div>
<div class="features">
<div class="feat"><div class="feat-icon">&#9889;</div><h3>Fast</h3><p>Sub-second load times</p></div>
<div class="feat"><div class="feat-icon">&#128274;</div><h3>Secure</h3><p>Enterprise-grade auth</p></div>
<div class="feat"><div class="feat-icon">&#128200;</div><h3>Scalable</h3><p>Grows with your team</p></div>
</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
color: #1e293b;
background: #fff;
}
.hero {
text-align: center;
padding: 48px 24px;
background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.hero h1 {
font-size: 28px;
margin: 0 0 8px;
}
.hero p {
color: #64748b;
margin: 0 0 20px;
}
.cta {
display: inline-block;
padding: 10px 24px;
background: #6366f1;
color: #fff;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
text-decoration: none;
}
.features {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
padding: 32px 24px;
}
.feat {
text-align: center;
padding: 16px;
}
.feat-icon {
width: 40px;
height: 40px;
margin: 0 auto 10px;
border-radius: 10px;
background: #eef2ff;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.feat h3 {
font-size: 14px;
margin: 0 0 4px;
}
.feat p {
font-size: 13px;
color: #64748b;
margin: 0;
}
</style></template>
</rf-sandbox>
</div>
</div>
<div data-name="label" class="rf-mockup__label">Homepage — Desktop</div>
</div>Resize the frame
scale shrinks or enlarges the whole frame; 0.75 is three-quarters size.
{% mockup device="iphone-15" scale=0.75 %}
{% sandbox src="mockup-phone-profile" height=852 /%}
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"iphone-15","color":"dark","fit":"auto"}" style="--mockup-scale: 0.75">
<div data-name="frame">
<div data-name="bezel">
<div data-name="notch" data-notch="dynamic-island"></div>
<div data-name="status-bar">
<span data-name="status-time">9:41</span>
<span data-name="status-icons"></span>
</div>
<div data-name="viewport">
<rf-sandbox data-rune="sandbox" data-source-content="<div data-source="HTML">
<div class="profile">
<div class="avatar"></div>
<div class="name">Sam Rivera</div>
<div class="handle">@samrivera</div>
</div>
<div class="stats">
<div><div class="stat-val">842</div><div class="stat-label">Posts</div></div>
<div><div class="stat-val">12.4k</div><div class="stat-label">Followers</div></div>
<div><div class="stat-val">381</div><div class="stat-label">Following</div></div>
</div>
<div class="follow-btn">Follow</div>
<div class="bio">Designer & developer. Building things for the web.</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 16px;
box-sizing: border-box;
}
.profile {
text-align: center;
padding: 20px 0 16px;
}
.avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, #f97316, #ec4899);
margin: 0 auto 12px;
}
.name {
font-size: 18px;
font-weight: 700;
}
.handle {
font-size: 13px;
color: #94a3b8;
}
.stats {
display: flex;
justify-content: center;
gap: 24px;
margin: 16px 0;
}
.stat-val {
font-size: 17px;
font-weight: 700;
}
.stat-label {
font-size: 11px;
color: #94a3b8;
}
.follow-btn {
display: block;
margin: 0 20px;
padding: 10px;
background: #6366f1;
color: #fff;
border-radius: 10px;
text-align: center;
font-size: 14px;
font-weight: 600;
}
.bio {
font-size: 13px;
color: #64748b;
text-align: center;
margin: 14px 20px 0;
line-height: 1.4;
}
</style>" data-height="852" data-source-origins="HTML mockup-phone-profile/index.html
CSS mockup-phone-profile/style.css" data-security-mode="trusted" data-allow-js="true">
<template data-content="fallback">
<pre data-language="html">
<code data-language="html"><div data-source="HTML">
<div class="profile">
<div class="avatar"></div>
<div class="name">Sam Rivera</div>
<div class="handle">@samrivera</div>
</div>
<div class="stats">
<div><div class="stat-val">842</div><div class="stat-label">Posts</div></div>
<div><div class="stat-val">12.4k</div><div class="stat-label">Followers</div></div>
<div><div class="stat-val">381</div><div class="stat-label">Following</div></div>
</div>
<div class="follow-btn">Follow</div>
<div class="bio">Designer & developer. Building things for the web.</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 16px;
box-sizing: border-box;
}
.profile {
text-align: center;
padding: 20px 0 16px;
}
.avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, #f97316, #ec4899);
margin: 0 auto 12px;
}
.name {
font-size: 18px;
font-weight: 700;
}
.handle {
font-size: 13px;
color: #94a3b8;
}
.stats {
display: flex;
justify-content: center;
gap: 24px;
margin: 16px 0;
}
.stat-val {
font-size: 17px;
font-weight: 700;
}
.stat-label {
font-size: 11px;
color: #94a3b8;
}
.follow-btn {
display: block;
margin: 0 20px;
padding: 10px;
background: #6366f1;
color: #fff;
border-radius: 10px;
text-align: center;
font-size: 14px;
font-weight: 600;
}
.bio {
font-size: 13px;
color: #64748b;
text-align: center;
margin: 14px 20px 0;
line-height: 1.4;
}
</style></code>
</pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="profile">
<div class="avatar"></div>
<div class="name">Sam Rivera</div>
<div class="handle">@samrivera</div>
</div>
<div class="stats">
<div><div class="stat-val">842</div><div class="stat-label">Posts</div></div>
<div><div class="stat-val">12.4k</div><div class="stat-label">Followers</div></div>
<div><div class="stat-val">381</div><div class="stat-label">Following</div></div>
</div>
<div class="follow-btn">Follow</div>
<div class="bio">Designer & developer. Building things for the web.</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 16px;
box-sizing: border-box;
}
.profile {
text-align: center;
padding: 20px 0 16px;
}
.avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, #f97316, #ec4899);
margin: 0 auto 12px;
}
.name {
font-size: 18px;
font-weight: 700;
}
.handle {
font-size: 13px;
color: #94a3b8;
}
.stats {
display: flex;
justify-content: center;
gap: 24px;
margin: 16px 0;
}
.stat-val {
font-size: 17px;
font-weight: 700;
}
.stat-label {
font-size: 11px;
color: #94a3b8;
}
.follow-btn {
display: block;
margin: 0 20px;
padding: 10px;
background: #6366f1;
color: #fff;
border-radius: 10px;
text-align: center;
font-size: 14px;
font-weight: 600;
}
.bio {
font-size: 13px;
color: #64748b;
text-align: center;
margin: 14px 20px 0;
line-height: 1.4;
}
</style></template>
</rf-sandbox>
</div>
<div data-name="home-indicator"></div>
</div>
</div>
</div><div class="rf-mockup rf-mockup--iphone-15 rf-mockup--dark" style="--mockup-scale: 0.75" data-device="iphone-15" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="bezel" class="rf-mockup__bezel">
<div data-name="notch" data-notch="dynamic-island" class="rf-mockup__notch"></div>
<div data-name="status-bar" class="rf-mockup__status-bar">
<span data-name="status-time" class="rf-mockup__status-time">9:41</span>
<span data-name="status-icons" class="rf-mockup__status-icons"></span>
</div>
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<rf-sandbox class="rf-sandbox" data-source-content="<div data-source="HTML">
<div class="profile">
<div class="avatar"></div>
<div class="name">Sam Rivera</div>
<div class="handle">@samrivera</div>
</div>
<div class="stats">
<div><div class="stat-val">842</div><div class="stat-label">Posts</div></div>
<div><div class="stat-val">12.4k</div><div class="stat-label">Followers</div></div>
<div><div class="stat-val">381</div><div class="stat-label">Following</div></div>
</div>
<div class="follow-btn">Follow</div>
<div class="bio">Designer & developer. Building things for the web.</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 16px;
box-sizing: border-box;
}
.profile {
text-align: center;
padding: 20px 0 16px;
}
.avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, #f97316, #ec4899);
margin: 0 auto 12px;
}
.name {
font-size: 18px;
font-weight: 700;
}
.handle {
font-size: 13px;
color: #94a3b8;
}
.stats {
display: flex;
justify-content: center;
gap: 24px;
margin: 16px 0;
}
.stat-val {
font-size: 17px;
font-weight: 700;
}
.stat-label {
font-size: 11px;
color: #94a3b8;
}
.follow-btn {
display: block;
margin: 0 20px;
padding: 10px;
background: #6366f1;
color: #fff;
border-radius: 10px;
text-align: center;
font-size: 14px;
font-weight: 600;
}
.bio {
font-size: 13px;
color: #64748b;
text-align: center;
margin: 14px 20px 0;
line-height: 1.4;
}
</style>" data-height="852" data-source-origins="HTML mockup-phone-profile/index.html
CSS mockup-phone-profile/style.css" data-security-mode="trusted" data-allow-js="true" data-rune="sandbox" data-density="compact">
<template data-content="fallback">
<pre data-language="html"><code data-language="html"><div data-source="HTML">
<div class="profile">
<div class="avatar"></div>
<div class="name">Sam Rivera</div>
<div class="handle">@samrivera</div>
</div>
<div class="stats">
<div><div class="stat-val">842</div><div class="stat-label">Posts</div></div>
<div><div class="stat-val">12.4k</div><div class="stat-label">Followers</div></div>
<div><div class="stat-val">381</div><div class="stat-label">Following</div></div>
</div>
<div class="follow-btn">Follow</div>
<div class="bio">Designer & developer. Building things for the web.</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 16px;
box-sizing: border-box;
}
.profile {
text-align: center;
padding: 20px 0 16px;
}
.avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, #f97316, #ec4899);
margin: 0 auto 12px;
}
.name {
font-size: 18px;
font-weight: 700;
}
.handle {
font-size: 13px;
color: #94a3b8;
}
.stats {
display: flex;
justify-content: center;
gap: 24px;
margin: 16px 0;
}
.stat-val {
font-size: 17px;
font-weight: 700;
}
.stat-label {
font-size: 11px;
color: #94a3b8;
}
.follow-btn {
display: block;
margin: 0 20px;
padding: 10px;
background: #6366f1;
color: #fff;
border-radius: 10px;
text-align: center;
font-size: 14px;
font-weight: 600;
}
.bio {
font-size: 13px;
color: #64748b;
text-align: center;
margin: 14px 20px 0;
line-height: 1.4;
}
</style></code></pre>
</template>
<template data-content="source"><div data-source="HTML">
<div class="profile">
<div class="avatar"></div>
<div class="name">Sam Rivera</div>
<div class="handle">@samrivera</div>
</div>
<div class="stats">
<div><div class="stat-val">842</div><div class="stat-label">Posts</div></div>
<div><div class="stat-val">12.4k</div><div class="stat-label">Followers</div></div>
<div><div class="stat-val">381</div><div class="stat-label">Following</div></div>
</div>
<div class="follow-btn">Follow</div>
<div class="bio">Designer & developer. Building things for the web.</div>
</div>
<style data-source="CSS">
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
padding: 16px;
box-sizing: border-box;
}
.profile {
text-align: center;
padding: 20px 0 16px;
}
.avatar {
width: 72px;
height: 72px;
border-radius: 50%;
background: linear-gradient(135deg, #f97316, #ec4899);
margin: 0 auto 12px;
}
.name {
font-size: 18px;
font-weight: 700;
}
.handle {
font-size: 13px;
color: #94a3b8;
}
.stats {
display: flex;
justify-content: center;
gap: 24px;
margin: 16px 0;
}
.stat-val {
font-size: 17px;
font-weight: 700;
}
.stat-label {
font-size: 11px;
color: #94a3b8;
}
.follow-btn {
display: block;
margin: 0 20px;
padding: 10px;
background: #6366f1;
color: #fff;
border-radius: 10px;
text-align: center;
font-size: 14px;
font-weight: 600;
}
.bio {
font-size: 13px;
color: #64748b;
text-align: center;
margin: 14px 20px 0;
line-height: 1.4;
}
</style></template>
</rf-sandbox>
</div>
<div data-name="home-indicator" class="rf-mockup__home-indicator"></div>
</div>
</div>
</div>Drop the device chrome
device="none" draws a plain dashed border instead of a device.
{% mockup device="none" %}
Content without any device chrome.
{% /mockup %}<div data-rune="mockup" data-rune-fields="{"device":"none","color":"dark","fit":"auto"}">
<div data-name="frame">
<div data-name="viewport">
<p>Content without any device chrome.</p>
</div>
</div>
</div><div class="rf-mockup rf-mockup--none rf-mockup--dark" data-device="none" data-color="dark" data-fit="auto" data-elevation="flush" data-rune="mockup" data-density="compact">
<div data-name="frame" class="rf-mockup__frame">
<div data-name="viewport" class="rf-mockup__viewport" data-media="hero">
<p>Content without any device chrome.</p>
</div>
</div>
</div>Put a mockup in a card or bento
A mockup works as the media of a card or a bento cell, and scales its frame and content to fit. Media guests shows it in both.
Attributes
| Attribute | Type | Required | Description |
|---|---|---|---|
device | "iphone-15" | "iphone-se" | "pixel" | "phone" | "ipad" | "tablet" | "browser" | "browser-dark" | "macbook" | "watch" | "none" | — | Device frame to render around the content (e.g. iphone-15, browser, macbook). |
label | string | — | Caption text shown below the device mockup. |
color | "dark" | "light" | "auto" | — | Device chrome color scheme: dark, light, or auto to match the page. |
statusBar | boolean | — | Enable/disable the status bar on phone and tablet device frames. |
url | string | — | URL displayed in the browser address bar for browser-type devices. |
scale | number | — | Scaling factor for the mockup size (1 = default, 0.5 = half size). |
fit | "auto" | "none" | — | Content fitting mode: auto scales to fill the viewport, none uses natural size. |
Universal attributes
bg
The background layer: image, video, gradient, flat overlay wash and legibility scrim, in a single injected layer behind the rune's content.
| Attribute | Type | Required | Description |
|---|---|---|---|
bg | string | — | Background preset applied to this block |
bg-from | string | — | Gradient start colour — a semantic token name (→ var(--rf-color-*)) |
bg-gradient | "to-t" | "to-b" | "to-l" | "to-r" | "to-tr" | "to-br" | "to-bl" | "to-tl" | — | Gradient direction (bounded named set) |
bg-gradient-type | "linear" | "radial" | "conic" | — | Gradient type |
bg-to | string | — | Gradient end colour — a semantic token name |
bg-via | string | — | Optional middle gradient stop — a semantic token name |
scrim | "top" | "bottom" | "left" | "right" | "none" | — | Scrim direction (heaviest edge); presence turns the scrim on, "none" opts out of the default cover scrim |
scrim-blur | "none" | "sm" | "md" | "lg" | — | Frost scrim blur amount |
scrim-strength | "sm" | "md" | "lg" | — | Gradient scrim strength |
scrim-tone | "dark" | "light" | — | Whether the scrim darkens (for light text) or lightens (for dark text) |
scrim-type | "gradient" | "frost" | — | Scrim treatment: gradient (default) or frost (backdrop blur) |
elevation
How far the rune sits off the page, from sunken to overlay. The theme decides what each step looks like.
| Attribute | Type | Required | Description |
|---|---|---|---|
elevation | "sunken" | "flush" | "flat" | "raised" | "floating" | "overlay" | "none" | "sm" | "md" | "lg" | — | Surface depth, from sunken to overlay. Deprecated: none, sm, md and lg (read as flat, raised, raised and floating) |
inset
Internal padding override.
| Attribute | Type | Required | Description |
|---|---|---|---|
inset | "flush" | "tight" | "default" | "loose" | "breathe" | — | Inner padding of this block |
motion
Scroll-reveal entrance. You choose its character; the theme decides how it moves.
| Attribute | Type | Required | Description |
|---|---|---|---|
reveal | "none" | "fade" | "slide" | "scale" | "blur" | — | Scroll-reveal entrance character (none|fade|slide|scale|blur); the theme owns the choreography |
stagger | boolean | — | Cascade this block's items in as it reveals (no-op on single-child runes) |
spacing
Block-level rhythm override.
| Attribute | Type | Required | Description |
|---|---|---|---|
spacing | "flush" | "tight" | "default" | "loose" | "breathe" | — | Vertical spacing above and below this block |
substrate
Generated pattern fills behind the content, drawn by the theme.
| Attribute | Type | Required | Description |
|---|---|---|---|
substrate | "dots" | "grid" | "lines" | "cross" | "checker" | "none" | — | Generated surface pattern |
substrate-fill | "inherit" | "inset" | — | Surface fill the pattern sits on (full colour stays with tint) |
substrate-opacity | "sm" | "md" | "lg" | — | Pattern ink strength |
substrate-size | "sm" | "md" | "lg" | — | Pattern cell size |
substrate-target | "self" | "media" | — | Which surface the pattern fills (overrides the rune/theme default) |
tint
Per-rune colour override: a named tint from the theme registry, with inline per-token overrides layered on top.
| Attribute | Type | Required | Description |
|---|---|---|---|
tint | string | — | Color tint preset applied to this block |
tint-mode | "auto" | "dark" | "light" | — | Whether the tint adapts to auto, dark, or light mode |
width
The track a block rune occupies.
| Attribute | Type | Required | Description |
|---|---|---|---|
width | "compact" | "narrow" | "content" | "wide" | "full" | — | Maximum width constraint for this block |
| Not available | Why |
|---|---|
| dropcap, reading | this rune declares no prose body |
| frame | this rune declares neither a `frameTarget` nor a media section |
| prominence | this rune has no page-section header or featured quotation |