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.
preview/gesture-swipe-actions.html
View on GitHub<!DOCTYPE html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=700"><link rel="stylesheet" href="preview.css"><style>html,body{min-height:440px}</style></head>
<body><div class="card">
<style>
.sw { padding: 18px; background: var(--rdp-card); border: 1px solid var(--rdp-card-border); border-radius: 16px; }
.sw .hd { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 0.5px solid var(--rdp-divider); margin-bottom: 16px; }
.sw .hd .t { font: var(--rdp-type-body-emphasis); }
.sw .hd .sub { font: var(--rdp-type-mono-small); color: var(--rdp-muted-foreground); }
.lbl { font: var(--rdp-type-mono-small); font-size: 10px; letter-spacing: 0.4px; text-transform: uppercase; color: var(--rdp-muted-foreground); margin: 12px 0 8px; }
.list {
border: 0.5px solid var(--rdp-divider);
border-radius: 10px;
overflow: hidden;
}
.row-wrap { position: relative; height: 64px; overflow: hidden; }
.row-wrap + .row-wrap { border-top: 0.5px solid var(--rdp-divider); }
.row-bg {
position: absolute; top: 0; bottom: 0;
width: 180px;
display: flex; align-items: center;
font: var(--rdp-type-mono-small); font-size: 11px;
font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase;
color: #fff;
padding: 0 18px;
z-index: 1;
}
.row-bg.left { left: 0; justify-content: flex-start; }
.row-bg.right { right: 0; justify-content: flex-end; }
.row-bg .ic { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.row-bg .ic svg { width: 14px; height: 14px; flex-shrink: 0; }
.row-bg.delete { background: var(--rdp-destructive); }
.row-bg.archive { background: var(--rdp-info); }
.row-bg.flag { background: var(--rdp-warning); }
.row-bg.mark { background: var(--rdp-success); }
.row {
position: relative; z-index: 2;
display: grid; grid-template-columns: 28px 1fr auto;
gap: 12px; align-items: center;
padding: 10px 14px;
background: var(--rdp-card);
height: 100%;
transition: transform 220ms cubic-bezier(0.2,0,0,1);
}
.row .ic {
width: 28px; height: 28px; border-radius: 6px;
background: var(--rdp-muted); display: grid; place-items: center;
color: var(--rdp-muted-foreground);
flex-shrink: 0;
}
.row .ic svg { width: 14px; height: 14px; }
.row .body { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; }
.row .ttl { font: var(--rdp-type-mono-value); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { font: var(--rdp-type-mono-small); font-size: 10.5px; color: var(--rdp-muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font: var(--rdp-type-mono-small); font-size: 10.5px; color: var(--rdp-muted-foreground); flex-shrink: 0; white-space: nowrap; }
/* Static snapshots of swipe states */
.row.swipe-l-short { transform: translateX(72px); }
.row.swipe-l-full { transform: translateX(180px); }
.row.swipe-r-short { transform: translateX(-72px); }
.row.swipe-r-full { transform: translateX(-180px); }
.indicators {
margin-top: 14px; padding-top: 12px; border-top: 0.5px solid var(--rdp-divider);
display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px;
font: var(--rdp-type-mono-small); font-size: 10.5px;
}
.indicators b { color: var(--rdp-muted-foreground); font-weight: 400; }
.indicators span { color: var(--rdp-foreground); }
.indicators code { font: var(--rdp-type-mono-inline); padding: 1px 5px; background: var(--rdp-accent); border-radius: 3px; }
</style>
<div class="sw">
<div class="hd">
<span class="t">Swipe row actions</span>
<span class="sub">Bi-directional · short + full reveals</span>
</div>
<div class="lbl">Default state · 4 example rows</div>
<div class="list">
<div class="row-wrap">
<div class="row-bg right delete"><span class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>Delete</span></div>
<div class="row swipe-r-short">
<span class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/></svg></span>
<div class="body"><div class="ttl">14:02 · MTU probe timeout</div><div class="sub">19 m · tlsrec_split_host</div></div>
<span class="meta">ERROR</span>
</div>
</div>
<div class="row-wrap">
<div class="row-bg right delete"><span class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/></svg>Delete</span></div>
<div class="row swipe-r-full">
<span class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="3 6 5 6 21 6"/><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"/></svg></span>
<div class="body"><div class="ttl">12:18 · SNI block · youtube.com</div><div class="sub">3 m · cleared by ECH</div></div>
<span class="meta">DPI</span>
</div>
</div>
<div class="row-wrap">
<div class="row-bg left archive"><span class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="21 8 21 21 3 21 3 8"/><rect x="1" y="3" width="22" height="5"/></svg>Archive</span></div>
<div class="row swipe-l-short">
<span class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="21 8 21 21 3 21 3 8"/></svg></span>
<div class="body"><div class="ttl">11:08 · Loss above threshold</div><div class="sub">42 s · auto-reconnected</div></div>
<span class="meta">WARN</span>
</div>
</div>
<div class="row-wrap">
<div class="row-bg left mark"><span class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>Mark resolved</span></div>
<div class="row">
<span class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/></svg></span>
<div class="body"><div class="ttl">02:14 · Manual reconnect</div><div class="sub">1.4 s · Cloudflare AMS</div></div>
<span class="meta">INFO</span>
</div>
</div>
</div>
<div class="indicators">
<b>Short reveal</b><span>72 px · single action · activates on tap</span>
<b>Full reveal</b><span>180 px · single action · activates on release if swipe past 40 % of width</span>
<b>Direction</b><span>right-to-left → destructive · left-to-right → constructive (archive, mark)</span>
<b>Threshold</b><span>40 % of row width OR velocity > 200 px/s · haptic tick at boundary</span>
<b>Cancel</b><span>Swipe back · row returns at <code>220 ms state</code></span>
</div>
</div>
<div style="font: var(--rdp-type-caption); color: var(--rdp-muted-foreground); margin-top: 10px">Swipe row actions · 4 representative rows in 4 swipe states · destructive on right (right-to-left), constructive on left · semantic background colour reveals the action immediately.</div>
</div></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 |