po4yka/RIPDPI / docs/design/rds
ripdpi-design
VerifiedUse this skill to generate well-branded interfaces and assets for RIPDPI (an Android-native, Compose-first VPN and DPI-bypass app), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, brand-ship icons, and an interactive UI kit of every public composable from the live ui/components tree.
mobile-diagnostic-report.html
View on GitHub<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>RIPDPI · Mobile diagnostic report</title>
<meta name="viewport" content="width=1180, initial-scale=1">
<link rel="stylesheet" href="colors_and_type.css">
<style>
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body {
background: var(--rdp-background);
color: var(--rdp-foreground);
font: var(--rdp-type-body);
padding: 40px 24px;
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
gap: 24px;
align-items: flex-start;
}
.info, .controls {
max-width: 380px;
display: flex;
flex-direction: column;
gap: 16px;
align-self: flex-start;
position: sticky;
top: 40px;
}
.info .label {
font: var(--rdp-type-section-title);
letter-spacing: 0.72px;
text-transform: uppercase;
color: var(--rdp-muted-foreground);
}
.info h1 { font: var(--rdp-type-screen-title); margin: 0; }
.info p { color: var(--rdp-muted-foreground); font: var(--rdp-type-body); margin: 0; }
.info ol {
margin: 0;
padding-left: 20px;
display: flex;
flex-direction: column;
gap: 4px;
color: var(--rdp-foreground);
font: var(--rdp-type-body);
}
.info ol li b { font-weight: 500; }
.info ol li span { color: var(--rdp-muted-foreground); }
.frame-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.frame {
width: 412px;
height: 892px;
border-radius: 48px;
background: #FAFAFA;
border: 10px solid #1A1A1A;
box-shadow: 0 30px 80px rgba(0,0,0,0.25);
overflow: hidden;
display: flex; flex-direction: column;
position: relative;
}
.frame.dark { background: #121212; border-color: #2A2A2A; }
.frame .notch {
position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
width: 22px; height: 22px; border-radius: 99px; background: #2E2E2E; z-index: 10;
}
.frame .statusbar {
height: 36px; padding: 10px 24px;
display: flex; align-items: center; justify-content: space-between;
font: var(--rdp-type-mono-small);
color: var(--rdp-foreground);
flex-shrink: 0;
}
.frame .gesturebar {
height: 28px; display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.frame .gesturebar .pill {
width: 108px; height: 4px; border-radius: 99px;
background: var(--rdp-foreground); opacity: 0.5;
}
.frame .scroll {
flex: 1; overflow-y: auto; overflow-x: hidden;
}
.frame .scroll::-webkit-scrollbar { width: 0; }
.controls > div {
background: var(--rdp-card);
border: 1px solid var(--rdp-card-border);
border-radius: 16px;
padding: 16px;
display: flex; flex-direction: column; gap: 12px;
}
.controls .row { display: flex; gap: 8px; flex-wrap: wrap; }
.ctrl-btn {
padding: 8px 14px; min-height: 36px;
border: 1px solid var(--rdp-border);
background: transparent; color: var(--rdp-foreground);
border-radius: 12px;
font: var(--rdp-type-small-label);
cursor: pointer;
transition: background-color 220ms cubic-bezier(0.2,0,0,1);
}
.ctrl-btn.sel { background: var(--rdp-foreground); color: var(--rdp-background); border-color: var(--rdp-foreground); }
.ctrl-btn:hover:not(.sel) { background: var(--rdp-accent); }
.controls .ttl {
font: var(--rdp-type-section-title);
letter-spacing: 0.72px;
text-transform: uppercase;
color: var(--rdp-muted-foreground);
}
.controls .legend {
display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px;
font: var(--rdp-type-mono-small);
}
.controls .legend b { font: var(--rdp-type-small-label); color: var(--rdp-muted-foreground); font-weight: 400; }
.controls .legend span { color: var(--rdp-foreground); }
@keyframes rdpSpin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
body { grid-template-columns: 1fr; place-items: center; }
.info, .controls { position: static; max-width: 100%; }
}
</style>
</head>
<body>
<div class="info">
<div class="label">RIPDPI · Mobile adoption</div>
<h1>Diagnostic report, on a phone.</h1>
<p>The six diagnostic-report preview elements adopted into the Android UI kit. Every section is composed out of existing kit components — <code>RipDpiCard</code>, <code>MetricPill</code>, <code>SectionHeader</code>, <code>RipDpiChip</code>, <code>RipDpiButton</code>, <code>WarningBanner</code> — with view-specific bits drawn from the same token contract.</p>
<ol>
<li><b>Report summary</b> <span>— 2-column KPI grid, stage strip, two-button footer</span></li>
<li><b>Hop trace</b> <span>— vertical rail, ASN under each IP, right-aligned RTT + bar</span></li>
<li><b>Path-MTU scan</b> <span>— compact scale, ladder shrunk to 5 most informative rows</span></li>
<li><b>Port matrix</b> <span>— per-target chunks of 6-wide tile grids (no 12-col table on mobile)</span></li>
<li><b>Interference signatures</b> <span>— one card per signature, confidence meter inline</span></li>
<li><b>DNS resolvers</b> <span>— per-resolver card, success bar + tip banner</span></li>
</ol>
<p style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground)">Source: <code>ui_kits/android/MobileDiagnosticReport.jsx</code>. Web previews remain at <code>preview/diagnostic-*.html</code>.</p>
</div>
<div class="frame-wrap">
<div id="frame-host"></div>
<div style="font: var(--rdp-type-mono-small); color: var(--rdp-muted-foreground)">412 × 892 · Android compact width</div>
</div>
<div id="controls-host"></div>
<script src="https://unpkg.com/react@18.3.1/umd/react.development.js" integrity="sha384-hD6/rw4ppMLGNu3tX5cjIb+uRZ7UkRJ6BPkLpg4hAu/6onKUg4lLsHAs9EBPT82L" crossorigin="anonymous"></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js" integrity="sha384-u6aeetuaXnQ38mYT8rp6sbXaQe3NL9t+IBXmnYxwkUI2Hw4bsp2Wvmx4yRQF1uAm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@babel/standalone@7.29.0/babel.min.js" integrity="sha384-m08KidiNqLdpJqLq95G/LEi8Qvjl/xUYll3QILypMoQ65QorJ9Lvtp2RXYGBFj1y" crossorigin="anonymous"></script>
<script type="text/babel" src="ui_kits/android/RipDpiComponents.jsx"></script>
<script type="text/babel" src="ui_kits/android/MobileDiagnosticReport.jsx"></script>
<script type="text/babel">
function StatusBarChrome({ dark }) {
return (
<div className="statusbar" style={{ color: dark ? '#E8E8E8' : '#1A1A1A' }}>
<span>9:30</span>
<span style={{ display: 'inline-flex', gap: 8, alignItems: 'center' }}>
<svg width="14" height="14" viewBox="0 0 16 16"><path d="M8 13.3L.67 5.97a10.37 10.37 0 0114.66 0L8 13.3z" fill="currentColor"/></svg>
<svg width="14" height="14" viewBox="0 0 16 16"><path d="M14.67 14.67V1.33L1.33 14.67h13.34z" fill="currentColor"/></svg>
<svg width="18" height="12" viewBox="0 0 18 12"><rect x="0.5" y="0.5" width="13" height="11" rx="2" fill="none" stroke="currentColor"/><rect x="2" y="2" width="9" height="8" rx="1" fill="currentColor"/><rect x="14" y="4" width="2" height="4" rx="1" fill="currentColor"/></svg>
</span>
</div>
);
}
function ReportHeader({ onBack }) {
const { c } = useTheme();
return (
<div style={{
padding: '12px 20px 16px',
display: 'flex', alignItems: 'center', gap: 12,
borderBottom: `0.5px solid ${c.divider}`,
}}>
<RipDpiIconButton variant="ghost" onClick={onBack}
icon={
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<polyline points="15 18 9 12 15 6"/>
</svg>
}/>
<div style={{ flex: 1, display: 'flex', flexDirection: 'column' }}>
<div style={{ font: `500 18px/22px ${RDP.type.sans}` }}>Diagnostic report</div>
<div style={{ font: `400 12px/16px ${RDP.type.mono}`, color: c.mutedForeground }}>2026-05-23 · 18:42 UTC</div>
</div>
<RipDpiIconButton variant="tonal"
icon={
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<path d="M4 12v7a1 1 0 001 1h14a1 1 0 001-1v-7"/>
<polyline points="16 6 12 2 8 6"/>
<line x1="12" y1="2" x2="12" y2="15"/>
</svg>
}/>
</div>
);
}
function ReportFooter({ onRerun }) {
const { c } = useTheme();
return (
<div style={{
padding: '12px 20px 16px',
display: 'flex', gap: 8,
borderTop: `0.5px solid ${c.divider}`,
background: c.background,
}}>
<RipDpiButton text="Re-run scan" variant="outline" onClick={onRerun} style={{ flex: 1 }}/>
<RipDpiButton text="Find a strategy" style={{ flex: 1.4 }}/>
</div>
);
}
const initialState = { dark: false };
function App() {
const [state, setState] = React.useState(initialState);
return (
<RipDpiTheme dark={state.dark}>
<Host state={state} setState={setState}/>
</RipDpiTheme>
);
}
function Host({ state, setState }) {
const { c, dark } = useTheme();
return (
<>
{ReactDOM.createPortal(
<div className={'frame' + (dark ? ' dark' : '')} style={{ background: c.background }}>
<div className="notch"/>
<StatusBarChrome dark={dark}/>
<div className="scroll" style={{ background: c.background, color: c.foreground }}>
<ReportHeader onBack={() => {}}/>
<div style={{ display: 'flex', flexDirection: 'column', gap: 16, padding: '16px 20px 24px' }}>
<MobileReportSummary/>
<SectionHeader>Hop trace</SectionHeader>
<MobileHopTrace/>
<SectionHeader>Path MTU</SectionHeader>
<MobileMtuScan/>
<SectionHeader>Port reachability</SectionHeader>
<MobilePortMatrix/>
<MobileSignatures/>
<MobileDnsResolvers/>
</div>
<ReportFooter/>
</div>
<div className="gesturebar" style={{ background: c.background }}>
<div className="pill" style={{ background: c.foreground }}/>
</div>
</div>,
document.getElementById('frame-host')
)}
{ReactDOM.createPortal(
<div className="controls">
<div>
<div className="ttl">Theme</div>
<div className="row">
<button className={'ctrl-btn ' + (!state.dark ? 'sel' : '')} onClick={() => setState(s => ({...s, dark: false}))}>Light</button>
<button className={'ctrl-btn ' + (state.dark ? 'sel' : '')} onClick={() => setState(s => ({...s, dark: true}))}>Dark</button>
</div>
</div>
<div>
<div className="ttl">Adoption notes</div>
<div className="legend">
<b>Card</b><span><code>RipDpiCard</code> · variant <code>outlined</code> / <code>status</code></span>
<b>Pills</b><span><code>MetricPill</code> · 4 tones</span>
<b>Section</b><span><code>SectionHeader</code> · upper-case mono</span>
<b>Banner</b><span><code>WarningBanner</code> · info tone for tips</span>
<b>Buttons</b><span><code>RipDpiButton</code> · 48 px floor</span>
<b>Touch</b><span>port tiles 44 px min · resolver row probe 36 px tap</span>
</div>
</div>
<div>
<div className="ttl">Section anchors</div>
<div className="row">
{['Summary','Hops','MTU','Ports','DPI','DNS'].map((s, i) => (
<button key={s} className="ctrl-btn" onClick={() => {
const scroll = document.querySelector('.frame .scroll');
if (!scroll) return;
const targets = [0, 540, 1200, 1620, 2200, 2880];
scroll.scrollTo({ top: targets[i], behavior: 'smooth' });
}}>{s}</button>
))}
</div>
</div>
</div>,
document.getElementById('controls-host')
)}
</>
);
}
ReactDOM.createRoot(document.body.appendChild(document.createElement('div'))).render(<App/>);
</script>
</body>
</html>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |