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-elements-showcase.html
View on GitHub<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>RIPDPI · Mobile element library</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; }
.info ol li b { font-weight: 500; }
.info ol li span { color: var(--rdp-muted-foreground); }
.info code { font: var(--rdp-type-mono-small); }
.frame-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.frame {
width: 412px; height: 892px;
border-radius: 48px;
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 { 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);
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; opacity: 0.5; }
.frame .scroll { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; }
.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;
}
.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); }
@keyframes mePulse { 0% { transform: translate(-50%,-50%) scale(0.6); opacity: 0.6; } 100% { transform: translate(-50%,-50%) scale(2); opacity: 0; } }
@keyframes meShimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes meIndet { 0% { left: -35%; } 60% { left: 100%; } 100% { left: 100%; } }
@keyframes meArrive { from { opacity: 0; transform: translateY(-2px); background: var(--rdp-accent); } to { opacity: 1; transform: translateY(0); } }
@keyframes meCoachPulse { 0% { transform: translate(-50%,-50%) scale(1); opacity: 1; } 100% { transform: translate(-50%,-50%) scale(1.18); opacity: 0; } }
@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>Element library, on a phone.</h1>
<p>Mobile recomposition of the new RDS primitives — each composed naturally inside a real app screen, not isolated on a spec card.</p>
<ol>
<li><b>Live state</b> <span>— heartbeat, live counter, stale badge, progress bar, shimmer</span></li>
<li><b>Search & filter</b> <span>— command palette, kbd, filter bar, combobox</span></li>
<li><b>Inputs</b> <span>— slider, segmented, tabs, CIDR input, stepper</span></li>
<li><b>Data surfaces</b> <span>— log stream, JSON tree, unified diff, accordion</span></li>
<li><b>Onboarding</b> <span>— coach mark overlay, what's-new sheet</span></li>
</ol>
<p style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground)">Motion specs (easing curves, probe pulse, toast choreography…) and a11y specs (focus rings, contrast pairs) are universal — they apply across every mobile surface and are already manifest in existing mobile screens.</p>
<p style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground)">Gestures (pull-to-refresh, swipe-actions, long-press) are mobile-native by definition — see the previews under Design System → Gestures.</p>
<p style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground)">Source: <code>ui_kits/android/MobileElements.jsx</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/MobileElements.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 Screen() {
const { c } = useTheme();
const [tab, setTab] = React.useState('overview');
const [timeRange, setTimeRange] = React.useState('24 h');
const [coach, setCoach] = React.useState(false);
const [whatsNew, setWhatsNew] = React.useState(false);
return (
<>
{/* Top bar */}
<div style={{ padding: '12px 20px 14px', display: 'flex', alignItems: 'center', gap: 12, borderBottom: `0.5px solid ${c.divider}` }}>
<div style={{ flex: 1 }}>
<div style={{ font: `500 18px/22px ${RDP.type.sans}` }}>Elements</div>
<div style={{ font: `400 12px/16px ${RDP.type.mono}`, color: c.mutedForeground }}>RIPDPI v3.2 · mobile library</div>
</div>
<RipDpiIconButton variant="ghost"
onClick={() => setWhatsNew(true)}
icon={<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>}/>
<RipDpiIconButton variant="ghost"
onClick={() => setCoach(true)}
icon={<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>}/>
</div>
<MTabsUnderline tabs={[
{ id: 'overview', label: 'Overview' },
{ id: 'logs', label: 'Logs', badge: '1.5k' },
{ id: 'tune', label: 'Tune' },
{ id: 'inspect', label: 'Inspect', badge: '3', badgeTone: 'warn' },
{ id: 'issues', label: 'Issues', badge: '2', badgeTone: 'bad' },
]} selected={tab} onSelect={setTab}/>
{tab === 'overview' && (
<div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
<SectionHeader>Live state</SectionHeader>
<RipDpiCard variant="status">
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<span style={{ display: 'inline-flex', alignItems: 'center', gap: 8 }}>
<MHeartbeat tone="tunl"/>
<span style={{ font: `500 13px/16px ${RDP.type.sans}` }}>Tunneling</span>
</span>
<MStaleBadge ageMin={0.05}/>
</div>
<div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 16, paddingTop: 8 }}>
<div>
<div style={{ font: `400 9.5px ${RDP.type.mono}`, letterSpacing: 0.4, textTransform: 'uppercase', color: c.mutedForeground }}>RTT p50</div>
<MLiveCounter value="32" unit="ms"/>
</div>
<div>
<div style={{ font: `400 9.5px ${RDP.type.mono}`, letterSpacing: 0.4, textTransform: 'uppercase', color: c.mutedForeground }}>Throughput</div>
<MLiveCounter value="2.4" unit="MB/s"/>
</div>
</div>
<MProgressBar label="Quota used this month" value={68} tone="default" sub="6.8 of 10 GB · resets May 31"/>
</RipDpiCard>
<SectionHeader>Loading skeleton</SectionHeader>
<RipDpiCard>
<div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>
<MShimmer height={14} width="60%"/>
<MShimmer height={10} width="40%"/>
<div style={{ display: 'grid', gridTemplateColumns: '40px 1fr 60px', gap: 12, alignItems: 'center', paddingTop: 6 }}>
<MShimmer height={40} width={40} style={{ borderRadius: 9999 }}/>
<div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>
<MShimmer height={11} width="70%"/>
<MShimmer height={9} width="50%"/>
</div>
<MShimmer height={14}/>
</div>
</div>
</RipDpiCard>
<SectionHeader>Inline progress</SectionHeader>
<RipDpiCard>
<MProgressBar label="Probe wizard" value={64} sub="3 of 5 hosts checked"/>
<MProgressBar indet label="Searching relays" sub="cycling through 47 known"/>
</RipDpiCard>
</div>
)}
{tab === 'logs' && (
<div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
<MFilterBar/>
<MLogStream/>
<SectionHeader>Recent transitions</SectionHeader>
<MAccordion items={[
{ title: 'SNI block · youtube.com', sub: 'tls.sni · 0.94 conf', tone: 'bad', meta: '2 evidence', body: 'ClientHello with target SNI dropped silently. Same target with echo SNI completes.' },
{ title: 'RST injection', sub: 'tcp.rst · 0.97 conf', tone: 'bad', meta: '2 evidence' },
{ title: 'QUIC throttling', sub: 'udp.qos · 0.62', tone: 'warn', meta: 'trace' },
{ title: 'ECH accepted', sub: 'tls.ech · 0.88', tone: 'ok', meta: 'bypassed' },
]} openIdx={0}/>
</div>
)}
{tab === 'tune' && (
<div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
<SectionHeader>Strategy parameters</SectionHeader>
<RipDpiCard>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<span style={{ font: `400 11px ${RDP.type.mono}`, color: c.mutedForeground }}>Window</span>
<MSegmented options={['1 h', '6 h', timeRange, '7 d'].filter((v, i, a) => a.indexOf(v) === i)} selected={timeRange} onSelect={setTimeRange}/>
</div>
<MSlider label="MTU floor" value={1380} unit="b" min={576} max={1500}
ticks={[{v: 576, label: '576'}, {v: 1000, label: '1000'}, {v: 1280, label: '1280'}, {v: 1500, label: '1500'}]}/>
<MSlider label="Probe timeout" value={2.5} unit="s" min={0} max={10}
tone="warn"
snaps={[{v:0},{v:1},{v:2},{v:2.5},{v:5},{v:10}]}
ticks={[{v: 0, label: '0 s'}, {v: 2.5, label: '2.5 s'}, {v: 5, label: '5 s'}, {v: 10, label: '10 s'}]}/>
</RipDpiCard>
<SectionHeader>Custom relay</SectionHeader>
<RipDpiCard>
<MCombobox/>
<MCidrInput label="Source CIDR · /24" octets={['192','168','1','0']} mask={24}/>
<MCidrInput label="DNS server" octets={['1','1','1','1']} mask={32}/>
</RipDpiCard>
<SectionHeader>Probe wizard</SectionHeader>
<RipDpiCard>
<MStepper steps={[
{ name: 'Pick host', desc: 'cloudflare-dns.com · 24 ms' },
{ name: 'TLS ClientHello', desc: 'ECH outer · 192 ms' },
{ name: 'MTU probe', desc: 'binary search · attempt 2 of 5' },
{ name: 'First packet', desc: 'timeout · 8 s budget', failed: true },
{ name: 'Establish', desc: 'awaiting · blocked by step 4' },
]} current={2}/>
</RipDpiCard>
</div>
)}
{tab === 'inspect' && (
<div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
<SectionHeader>Diagnostic JSON</SectionHeader>
<div style={{ font: `400 10px ${RDP.type.mono}`, color: c.mutedForeground }}>path · <span style={{ color: c.foreground }}>.diagnostic.signatures[0]</span></div>
<MJsonTree/>
<SectionHeader>Strategy diff</SectionHeader>
<div style={{ font: `400 10px ${RDP.type.mono}`, color: c.mutedForeground }}>tlsrec_split_host.toml · <span style={{ color: c.success }}>+3</span> · <span style={{ color: c.destructive }}>−2</span></div>
<MDiffViewer/>
</div>
)}
{tab === 'issues' && (
<div style={{ padding: '14px 20px 24px', display: 'flex', flexDirection: 'column', gap: 16 }}>
<SectionHeader>Open issues</SectionHeader>
<MAccordion items={[
{ title: 'High loss on QUIC', sub: '21.4% · 30 s window', tone: 'bad', meta: 'open', body: 'Loss above kill-switch threshold. Tunnel will tear down unless a new strategy is applied.' },
{ title: 'Stale DNS cache', sub: 'TTL exceeded by 4 m', tone: 'warn', meta: 'open' },
]}/>
<SectionHeader>Shortcuts</SectionHeader>
<RipDpiCard>
{[
{ lbl: 'Reconnect tunnel', kbd: ['⌘', 'R'] },
{ lbl: 'Disconnect (confirm)', kbd: ['⌘', '⇧', 'D'] },
{ lbl: 'Open command palette', kbd: ['⌘', 'K'] },
{ lbl: 'Toggle log stream', kbd: ['⌘', 'L'] },
].map((s, i) => (
<div key={s.lbl} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '10px 0', borderTop: i === 0 ? 'none' : `0.5px solid ${c.divider}` }}>
<span style={{ font: `400 12px ${RDP.type.mono}` }}>{s.lbl}</span>
<span style={{ display: 'inline-flex', gap: 4 }}>{s.kbd.map(k => <MKbd key={k} size="sm">{k}</MKbd>)}</span>
</div>
))}
</RipDpiCard>
<SectionHeader>Command palette · ⌘ K</SectionHeader>
<MCommandPalette/>
</div>
)}
{coach && <MCoachMark targetTop={160}/>}
{whatsNew && (
<div style={{ position: 'absolute', inset: 0, background: 'rgba(0,0,0,0.4)', display: 'flex', alignItems: 'flex-end', zIndex: 6 }} onClick={() => setWhatsNew(false)}>
<div style={{ width: '100%', padding: 16 }} onClick={e => e.stopPropagation()}>
<MWhatsNewSheet/>
</div>
</div>
)}
{(coach || whatsNew) && (
<div onClick={() => { setCoach(false); setWhatsNew(false); }}
style={{ position: 'absolute', inset: 0, zIndex: coach && !whatsNew ? 7 : 0, background: 'transparent' }}/>
)}
</>
);
}
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 }}>
<Screen/>
</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">Coverage</div>
<ul style={{ margin: 0, paddingLeft: 18, font: 'var(--rdp-type-mono-small)', color: 'var(--rdp-muted-foreground)', lineHeight: 1.7 }}>
<li><b style={{color:'var(--rdp-foreground)'}}>Live state</b> — Overview tab</li>
<li><b style={{color:'var(--rdp-foreground)'}}>Search · filter</b> — Logs tab</li>
<li><b style={{color:'var(--rdp-foreground)'}}>Inputs · slider · stepper</b> — Tune tab</li>
<li><b style={{color:'var(--rdp-foreground)'}}>JSON · diff · accordion</b> — Inspect tab</li>
<li><b style={{color:'var(--rdp-foreground)'}}>Command palette · kbd</b> — Issues tab</li>
<li><b style={{color:'var(--rdp-foreground)'}}>Coach mark</b> — ? icon in top bar</li>
<li><b style={{color:'var(--rdp-foreground)'}}>What's new sheet</b> — ⓘ icon in top bar</li>
</ul>
</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 |