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.
ui_kits/android/index.html
View on GitHub<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>RIPDPI · Android UI kit</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 {
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 .grid {
display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px;
font: var(--rdp-type-mono-small);
}
.info .grid b { font: var(--rdp-type-small-label); color: var(--rdp-muted-foreground); }
.info .grid span { color: var(--rdp-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 {
display: flex; flex-direction: column; gap: 16px;
max-width: 380px;
align-self: flex-start;
position: sticky;
top: 40px;
}
.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); }
@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 · Android UI kit</div>
<h1>Engineering-tool register, not consumer-brand register.</h1>
<p>Pixel-fidelity recreations of the live Compose components at <code>ui/components/</code>. Click through the screens; toggle dark mode; flip the connection actuator; run a diagnostic. The visuals come from the same token contract as production.</p>
<div class="grid">
<b>Type</b><span>Geist Sans · Geist Mono</span>
<b>Corner</b><span>16dp default · 28dp pill · 48dp hero · CircleShape</span>
<b>Stroke</b><span>1dp Thin · 0.5dp Hairline #666 · no shadows</span>
<b>Touch</b><span>48dp floor everywhere</span>
<b>Motion</b><span>quick 120 · state 220 · emphasized 320 · route 260</span>
</div>
<p style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground)">Components are in <code>RipDpiComponents.jsx</code>. Screens are in <code>RipDpiScreens.jsx</code>. The tokens are in <code>RDP</code> at the top of components.</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 · pixel ratio 1 · Android compact width class</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="RipDpiComponents.jsx"></script>
<script type="text/babel" src="RipDpiScreens.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>
);
}
const initialState = {
route: 'onboarding',
dark: false,
bypass: { active: false },
vpn: { connected: false, connecting: false },
diagnostic: { running: false, stage: 1 },
uptime: '00:00:00', uptimePct: '0.0', rtt: '—', rx: '0 B', tx: '0 B',
errorBanner: false,
// Strategy form state
strategy: 'tlsrec_split_host',
server: 'relay.example:443',
args: '--desync=fake,split2 --ttl=8',
autoReconnect: true,
recordPcap: false,
};
function reducer(state, action) {
switch (action.type) {
case 'nav': return { ...state, route: action.to };
case 'toggleDark': return { ...state, dark: !state.dark };
case 'set': return { ...state, [action.key]: action.value };
case 'enableBypass': return { ...state, bypass: { active: true }, uptime: '00:00:18', uptimePct: '99.4', rtt: '12', rx: '14 KiB', tx: '2 KiB' };
case 'disableBypass': return { ...state, bypass: { active: false }, uptime: '00:00:00', rtt: '—' };
case 'connectVpn': return { ...state, vpn: { connected: false, connecting: true } };
case 'connectVpnDone': return { ...state, vpn: { connected: true, connecting: false }, uptime: '00:00:42', uptimePct: '99.6', rtt: '18', rx: '128 KiB', tx: '12 KiB' };
case 'connectVpnFail': return { ...state, vpn: { connected: false, connecting: false }, errorBanner: true };
case 'disconnectVpn': return { ...state, vpn: { connected: false, connecting: false } };
case 'disconnectAll': return { ...state, vpn: { connected: false, connecting: false }, bypass: { active: false }, uptime: '00:00:00' };
case 'runDiagnostic': return { ...state, diagnostic: { running: true, stage: 1 } };
case 'tickDiagnostic': return { ...state, diagnostic: { ...state.diagnostic, stage: Math.min(4, state.diagnostic.stage + 1) } };
case 'finishDiagnostic': return { ...state, diagnostic: { running: false, stage: 1 } };
case 'dismissError': return { ...state, errorBanner: false };
case 'applyStrategy': return { ...state, strategy: action.strategy, route: 'home' };
default: return state;
}
}
function App() {
const [state, dispatch] = React.useReducer(reducer, initialState);
// Fake the VPN connection success after a beat
React.useEffect(() => {
if (state.vpn.connecting) {
const t = setTimeout(() => dispatch({ type: 'connectVpnDone' }), 1400);
return () => clearTimeout(t);
}
}, [state.vpn.connecting]);
// Fake diagnostic progression
React.useEffect(() => {
if (state.diagnostic.running) {
if (state.diagnostic.stage < 4) {
const t = setTimeout(() => dispatch({ type: 'tickDiagnostic' }), 1000);
return () => clearTimeout(t);
} else {
const t = setTimeout(() => dispatch({ type: 'finishDiagnostic' }), 800);
return () => clearTimeout(t);
}
}
}, [state.diagnostic.running, state.diagnostic.stage]);
const onBottomNav = (key) => dispatch({ type: 'nav', to: key });
const navItems = [
{ key: 'home', label: 'Home', icon: <svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor"><path d="M12 3l9 8h-2v9h-5v-6H10v6H5v-9H3z"/></svg> },
{ key: 'strategy', label: 'Config', icon: <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><circle cx="12" cy="12" r="3"/><path d="M21 12h-3M6 12H3M12 3v3M12 18v3"/></svg> },
{ key: 'logs', label: 'Logs', icon: <svg width="22" height="22" viewBox="0 0 24 24" fill="currentColor"><path d="M3 5h18v2H3zm0 6h18v2H3zm0 6h12v2H3z"/></svg> },
{ key: 'diagnostics', label: 'Diagnostics', icon: <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2"><path d="M3 11l9-7 9 7"/><path d="M5 10v10h14V10"/></svg> },
];
let body;
switch (state.route) {
case 'onboarding': body = <OnboardingScreen dispatch={dispatch}/>; break;
case 'diagnostics': body = <DiagnosticsScreen state={state} dispatch={dispatch}/>; break;
case 'strategy': body = <StrategyConfigScreen state={state} dispatch={dispatch}/>; break;
case 'vpnConfig': body = <VpnConfigScreen state={state} dispatch={dispatch}/>; break;
case 'logs': body = <LogsScreen state={state} dispatch={dispatch}/>; break;
case 'home':
default: body = <HomeScreen state={state} dispatch={dispatch}/>;
}
const showNav = ['home','diagnostics','strategy','logs','vpnConfig'].includes(state.route);
return (
<RipDpiTheme dark={state.dark}>
<FrameAndControls state={state} dispatch={dispatch}
body={body} showNav={showNav}
navItems={navItems} onBottomNav={onBottomNav}/>
</RipDpiTheme>
);
}
function FrameAndControls({ state, dispatch, body, showNav, navItems, onBottomNav }) {
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 }}>
{body}
</div>
{showNav && (
<BottomNavBar
selected={state.route === 'home' ? 'home' : state.route === 'strategy' ? 'strategy' : state.route === 'logs' ? 'logs' : state.route === 'diagnostics' ? 'diagnostics' : null}
onSelect={onBottomNav}
items={navItems}
/>
)}
<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 style={{ font: 'var(--rdp-type-section-title)', letterSpacing: 0.72, textTransform: 'uppercase', color: 'var(--rdp-muted-foreground)' }}>Theme</div>
<div className="row">
<button className={'ctrl-btn ' + (!state.dark ? 'sel' : '')} onClick={() => state.dark && dispatch({ type: 'toggleDark' })}>Light</button>
<button className={'ctrl-btn ' + (state.dark ? 'sel' : '')} onClick={() => !state.dark && dispatch({ type: 'toggleDark' })}>Dark</button>
</div>
</div>
<div>
<div style={{ font: 'var(--rdp-type-section-title)', letterSpacing: 0.72, textTransform: 'uppercase', color: 'var(--rdp-muted-foreground)' }}>Screen</div>
<div className="row">
{[
['onboarding','Onboarding'],
['home','Home'],
['diagnostics','Diagnostics'],
['strategy','Strategy'],
['vpnConfig','VPN config'],
['logs','Logs'],
].map(([k, lbl]) => (
<button key={k} className={'ctrl-btn ' + (state.route === k ? 'sel' : '')} onClick={() => dispatch({ type: 'nav', to: k })}>{lbl}</button>
))}
</div>
</div>
<div>
<div style={{ font: 'var(--rdp-type-section-title)', letterSpacing: 0.72, textTransform: 'uppercase', color: 'var(--rdp-muted-foreground)' }}>Simulate</div>
<div className="row">
<button className="ctrl-btn" onClick={() => dispatch({ type: 'connectVpnFail' })}>VPN fails</button>
<button className="ctrl-btn" onClick={() => dispatch({ type: 'enableBypass' })}>Bypass on</button>
<button className="ctrl-btn" onClick={() => dispatch({ type: 'disconnectAll' })}>Disconnect</button>
<button className="ctrl-btn" onClick={() => dispatch({ type: 'runDiagnostic' })}>Run scan</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 |