Skip to content

po4yka/RIPDPI / docs/design/rds

ripdpi-design

Verified

Use 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.

FileKindSize
COVERAGE.mdmarkdown23.0 KB
README.mdmarkdown19.6 KB
SKILL.mdskill md4.0 KB
assets/ic_launcher.pngbinary9.7 KB
assets/ic_launcher.svgother3.0 KB
assets/icons/ic_article_outline.svgother315 B
assets/icons/ic_launcher_foreground_ripdpi_clean.svgother3.0 KB
assets/icons/ic_launcher_foreground_ripdpi_cracked.svgother6.6 KB
assets/icons/ic_launcher_foreground_ripdpi_disintegrate.svgother9.5 KB
assets/icons/ic_launcher_foreground_ripdpi_glitch.svgother8.4 KB
assets/icons/ic_launcher_foreground_ripdpi_rubble.svgother7.8 KB
assets/icons/ic_launcher_foreground_ripdpi_stitch.svgother13.3 KB
assets/icons/ic_launcher_monochrome_ripdpi.svgother3.0 KB
assets/icons/ic_notification.svgother270 B
assets/icons/ic_settings_outline.svgother1.0 KB
assets/icons/ic_stop_outline.svgother153 B
assets/icons/ic_tune_outline.svgother244 B
assets/icons/ic_vpn_key_outline.svgother296 B
assets/icons/ripdpi_wordmark.svgother34.6 KB
assets/raw/ic_article_outline.xmlconfig552 B
assets/raw/ic_launcher_foreground_ripdpi_clean.xmlconfig3.4 KB
assets/raw/ic_launcher_foreground_ripdpi_cracked.xmlconfig7.0 KB
assets/raw/ic_launcher_foreground_ripdpi_disintegrate.xmlconfig10.1 KB
assets/raw/ic_launcher_foreground_ripdpi_glitch.xmlconfig8.7 KB
assets/raw/ic_launcher_foreground_ripdpi_rubble.xmlconfig8.4 KB
assets/raw/ic_launcher_foreground_ripdpi_stitch.xmlconfig13.5 KB
assets/raw/ic_launcher_monochrome_ripdpi.xmlconfig3.4 KB
assets/raw/ic_notification.xmlconfig3.4 KB
assets/raw/ic_settings_outline.xmlconfig1.2 KB
assets/raw/ic_stop_outline.xmlconfig338 B
assets/raw/ic_tune_outline.xmlconfig429 B
assets/raw/ic_vpn_key_outline.xmlconfig481 B
colors_and_type.cssother12.2 KB
diagnostic-reports-index.htmlother4.8 KB
fonts/geist_mono_bold.ttfbinary146.8 KB
fonts/geist_mono_medium.ttfbinary145.7 KB
fonts/geist_mono_regular.ttfbinary144.9 KB
fonts/geist_sans_bold.ttfbinary125.7 KB
fonts/geist_sans_medium.ttfbinary124.6 KB
fonts/geist_sans_regular.ttfbinary123.0 KB
mobile-diagnostic-report.htmlother12.0 KB
mobile-elements-showcase.htmlother19.3 KB
mobile-vpn-connection.htmlother12.2 KB
preview/a11y-color-contrast.htmlother8.3 KB
preview/a11y-focus-rings.htmlother6.5 KB
preview/android-crash-screen.htmlother2.3 KB
preview/android-customization.htmlother3.0 KB
preview/android-glance-widget.htmlother4.0 KB
preview/android-history.htmlother2.3 KB
preview/android-nav-bar.htmlother1.6 KB
preview/android-nav-rail.htmlother3.2 KB
preview/android-notif-foreground.htmlother3.4 KB
preview/android-notif-heads-up.htmlother2.5 KB
preview/android-notif-lock-screen.htmlother2.3 KB
preview/android-permission-rationale.htmlother3.0 KB
preview/android-qs-tile.htmlother2.3 KB
preview/android-scanner.htmlother1.9 KB
preview/android-splash.htmlother1.4 KB
preview/android-split-columns.htmlother2.1 KB
preview/android-status-bar.htmlother2.9 KB
preview/android-vpn-permission.htmlother2.0 KB
preview/brand-launcher-variants.htmlother4.7 KB
preview/brand-mark.htmlother3.4 KB
preview/color-anchors.htmlother2.0 KB
preview/color-destructive.htmlother1.9 KB
preview/color-edges.htmlother3.4 KB
preview/color-info.htmlother1.8 KB
preview/color-neutrals.htmlother3.3 KB
preview/color-restricted.htmlother1.9 KB
preview/color-success.htmlother1.8 KB
preview/color-warning.htmlother1.8 KB
preview/components-accordion.htmlother6.2 KB
preview/components-actuator-states.htmlother8.8 KB
preview/components-actuator.htmlother6.6 KB
preview/components-analysis-progress.htmlother2.1 KB
preview/components-bottom-nav.htmlother2.1 KB
preview/components-bottom-sheet.htmlother2.0 KB
preview/components-brand-badge.htmlother2.6 KB
preview/components-buttons.htmlother2.5 KB
preview/components-card.htmlother2.1 KB
preview/components-chips.htmlother1.6 KB
preview/components-cidr-input.htmlother5.0 KB
preview/components-combobox.htmlother6.8 KB
preview/components-command-palette.htmlother7.3 KB
preview/components-dialog.htmlother2.1 KB
preview/components-diff-viewer.htmlother6.6 KB
preview/components-dropdown.htmlother2.6 KB
preview/components-empty-state.htmlother1.5 KB
preview/components-filter-bar.htmlother5.9 KB
preview/components-heartbeat-indicator.htmlother6.4 KB
preview/components-icon-buttons.htmlother3.9 KB
preview/components-json-tree.htmlother7.7 KB
preview/components-kbd-shortcut.htmlother4.2 KB
preview/components-live-counter.htmlother7.3 KB
preview/components-log-row.htmlother2.5 KB
preview/components-log-stream.htmlother7.5 KB
preview/components-metric-pill.htmlother1.7 KB
preview/components-page-indicators.htmlother1.4 KB
preview/components-preset-card.htmlother2.0 KB
preview/components-progress-bar.htmlother4.8 KB
preview/components-section-header.htmlother1.7 KB
preview/components-segmented.htmlother4.3 KB
preview/components-settings-row.htmlother2.0 KB
preview/components-shimmer.htmlother3.9 KB
preview/components-slider.htmlother6.6 KB
preview/components-snackbar.htmlother3.0 KB
preview/components-spinner.htmlother1.8 KB
preview/components-stage-progress.htmlother1.9 KB
preview/components-stale-data-badge.htmlother5.8 KB
preview/components-status-indicator.htmlother1.9 KB
preview/components-stepper.htmlother7.0 KB
preview/components-switch.htmlother1.8 KB
preview/components-tabs.htmlother4.6 KB
preview/components-text-action.htmlother2.2 KB
preview/components-text-field.htmlother1.8 KB
preview/components-toggle-alternatives.htmlother2.4 KB
preview/components-tooltip.htmlother2.0 KB
preview/components-top-app-bar.htmlother2.3 KB
preview/components-warning-banner.htmlother3.1 KB
preview/diagnostic-censorship-signature.htmlother8.1 KB
preview/diagnostic-dns-resolvers.htmlother10.1 KB
preview/diagnostic-hop-trace.htmlother7.1 KB
preview/diagnostic-mtu-scan.htmlother7.4 KB
preview/diagnostic-port-matrix.htmlother7.5 KB
preview/diagnostic-report-summary.htmlother5.2 KB
preview/gesture-long-press-menu.htmlother6.9 KB
preview/gesture-pull-to-refresh.htmlother8.5 KB
preview/gesture-swipe-actions.htmlother7.4 KB
preview/icon-set.htmlother2.9 KB
preview/motion-connection-states.htmlother7.5 KB
preview/motion-data-ticker.htmlother5.5 KB
preview/motion-easing-curves.htmlother4.6 KB
preview/motion-page-transitions.htmlother6.0 KB
preview/motion-probe-pulse.htmlother5.4 KB
preview/motion-reduced-motion.htmlother6.7 KB
preview/motion-skeleton-shimmer.htmlother5.8 KB
preview/motion-toast-choreography.htmlother8.4 KB
preview/motion-tokens.htmlother2.8 KB
preview/onboarding-coach-mark.htmlother7.6 KB
preview/onboarding-tour-cards.htmlother5.6 KB
preview/preview.cssother1.9 KB
preview/radii.htmlother3.8 KB
preview/share-bottom-sheet.htmlother5.6 KB
preview/share-link-preview.htmlother5.1 KB
preview/share-qr-code.htmlother5.2 KB
preview/share-result-viewer.htmlother3.5 KB
preview/share-stats-card.htmlother3.5 KB
preview/spacing-scale.htmlother3.6 KB
preview/strokes.htmlother1.3 KB
preview/touch-targets.htmlother1.9 KB
preview/type-body.htmlother1.4 KB
preview/type-brand.htmlother1.1 KB
preview/type-display.htmlother1.4 KB
preview/type-mono.htmlother1.4 KB
preview/type-section-title.htmlother1.3 KB
preview/vpn-awg-editor.htmlother12.6 KB
preview/vpn-block-check.htmlother3.5 KB
preview/vpn-confirm-disconnect.htmlother2.4 KB
preview/vpn-data-transparency.htmlother3.9 KB
preview/vpn-degradation-strip.htmlother5.5 KB
preview/vpn-detection-check.htmlother3.7 KB
preview/vpn-dns-picker.htmlother3.4 KB
preview/vpn-export-consent.htmlother3.6 KB
preview/vpn-first-run-test.htmlother5.1 KB
preview/vpn-handshake-timeline.htmlother9.7 KB
preview/vpn-identity-card.htmlother2.8 KB
preview/vpn-in-app-browser.htmlother3.9 KB
preview/vpn-kill-switch.htmlother3.7 KB
preview/vpn-latency-graph.htmlother2.9 KB
preview/vpn-network-change.htmlother2.9 KB
preview/vpn-oom-recovery.htmlother2.4 KB
preview/vpn-pcap-viewer.htmlother3.1 KB
preview/vpn-per-app-routing.htmlother3.9 KB
preview/vpn-permission-summary.htmlother3.4 KB
preview/vpn-presets-gallery.htmlother3.3 KB
preview/vpn-probe-live.htmlother3.0 KB
preview/vpn-profile-switcher.htmlother2.9 KB
preview/vpn-quick-vs-advanced.htmlother3.0 KB
preview/vpn-reconnect-toast.htmlother5.9 KB
preview/vpn-relay-picker.htmlother4.0 KB
preview/vpn-replay-failure.htmlother3.6 KB
preview/vpn-session-card.htmlother7.2 KB
preview/vpn-snooze.htmlother2.9 KB
preview/vpn-state-history.htmlother9.2 KB
preview/vpn-state-machine.htmlother11.4 KB
preview/vpn-strategy-ab.htmlother5.0 KB
preview/vpn-strategy-editor.htmlother4.2 KB
preview/vpn-strategy-import.htmlother3.6 KB
preview/vpn-strategy-probe-wizard.htmlother3.8 KB
preview/vpn-throughput-graph.htmlother3.5 KB
preview/whats-new-card.htmlother6.1 KB
ui_kits/android/MobileDiagnosticReport.jsxother33.4 KB
ui_kits/android/MobileElements.jsxother34.1 KB
ui_kits/android/MobileVpnConnection.jsxother36.6 KB
ui_kits/android/README.mdmarkdown3.5 KB
ui_kits/android/RipDpiComponents.jsxother27.1 KB
ui_kits/android/RipDpiScreens.jsxother17.7 KB
ui_kits/android/android-frame.jsxother9.2 KB
ui_kits/android/index.htmlother14.2 KB

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>
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall