Bootstrap 5 Password Vault Dashboard with Grid and List View
A password-vault screen with an icon rail, search bar and account header, showing saved logins as cards that switch between grid and list and filter as you type.
<section class="wdw-stage">
<div class="container" style="max-width:1080px">
<div class="wdw-card overflow-hidden d-flex vt">
<nav class="vt-railbar wdw-aurora d-flex flex-column align-items-center gap-2 py-3" aria-label="Vault sections"><a class="vt-rail active" href="#" aria-label="Home" aria-current="page"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m3 11 9-8 9 8v10a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z"/></svg></a><a class="vt-rail" href="#" aria-label="Passwords"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="11" width="16" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/></svg></a><a class="vt-rail" href="#" aria-label="Notes"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/><path d="M14 3v6h6"/></svg></a><a class="vt-rail" href="#" aria-label="Payments"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="5" width="20" height="14" rx="2"/><path d="M2 10h20"/></svg></a><a class="vt-rail" href="#" aria-label="Security"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg></a></nav>
<div class="flex-grow-1 min-w-0">
<header class="d-flex align-items-center gap-3 p-3 border-bottom">
<div class="position-relative flex-grow-1" style="max-width:420px">
<span class="position-absolute top-50 translate-middle-y ms-3 text-body-secondary" aria-hidden="true"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg></span>
<input type="search" class="form-control rounded-pill ps-5 bg-body-tertiary border-0" id="vtSearch" placeholder="Search my vault" aria-label="Search my vault">
</div>
<div class="d-none d-sm-flex align-items-center gap-2 ms-auto">
<img class="rounded-circle" src="https://i.pravatar.cc/72?img=5" width="36" height="36" alt="">
<div class="lh-sm small"><div class="fw-semibold">[email protected]</div><div class="text-body-secondary">Premium user</div></div>
</div>
</header>
<div class="p-3 p-md-4">
<div class="d-flex align-items-center justify-content-between mb-3">
<h1 class="h4 wdw-heading mb-0">All items <span class="badge rounded-pill bg-primary-subtle text-primary-emphasis align-middle ms-1" id="vtCount">12</span></h1>
<div class="btn-group" role="group" aria-label="Layout">
<input type="radio" class="btn-check" name="vtView" id="vtGrid" autocomplete="off" checked>
<label class="btn btn-outline-primary rounded-start-pill px-3" for="vtGrid" aria-label="Grid view"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="3" width="7" height="7" rx="1"/><rect x="14" y="3" width="7" height="7" rx="1"/><rect x="3" y="14" width="7" height="7" rx="1"/><rect x="14" y="14" width="7" height="7" rx="1"/></svg></label>
<input type="radio" class="btn-check" name="vtView" id="vtList" autocomplete="off">
<label class="btn btn-outline-primary rounded-end-pill px-3" for="vtList" aria-label="List view"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"/></svg></label>
</div>
</div>
<ul class="list-unstyled vt-grid mb-0" id="vtItems">
<li class="vt-item" data-name="amazon"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="9" cy="20" r="1.5"/><circle cx="18" cy="20" r="1.5"/><path d="M2 3h3l2.7 12.4a1 1 0 0 0 1 .8h8.8a1 1 0 0 0 1-.8L20 8H6"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Amazon</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Shopping</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Amazon"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="apple id"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="6" y="2" width="12" height="20" rx="3"/><path d="M11 18h2"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Apple ID</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Account</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Apple ID"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="bank account"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 10 12 4l9 6"/><path d="M5 10v8M10 10v8M14 10v8M19 10v8M3 21h18"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Bank Account</span><span class="d-block small text-body-secondary text-truncate vt-sub">Ending in 1234</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">Ending in 1234</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Finance</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Bank Account"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="behance"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Behance</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Social</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Behance"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="codepen"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m8 8-5 4 5 4M16 8l5 4-5 4M14 5l-4 14"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">CodePen</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Dev</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for CodePen"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="coinbase"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 7V5a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15v12H5a2 2 0 0 1-2-2V6"/><circle cx="16.5" cy="14" r="1"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Coinbase</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Finance</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Coinbase"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="credit card"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="5" width="20" height="14" rx="2"/><path d="M2 10h20M6 15h3"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Credit Card</span><span class="d-block small text-body-secondary text-truncate vt-sub">Ending in 1234</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">Ending in 1234</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Finance</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Credit Card"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="discord"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12a8 8 0 0 1-11.6 7.1L3 21l1.9-5.4A8 8 0 1 1 21 12z"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Discord</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Social</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Discord"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="dropbox"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m21 8-9-5-9 5 9 5z"/><path d="M3 8v8l9 5 9-5V8M12 13v8"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Dropbox</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Storage</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Dropbox"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="gmail"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="5" width="18" height="14" rx="2"/><path d="m3 7 9 6 9-6"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Gmail</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Account</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Gmail"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="icloud"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M7 18a4.5 4.5 0 0 1-.6-9A6 6 0 0 1 18 9.5a4 4 0 0 1-.5 8.5z"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">iCloud</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Storage</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for iCloud"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
<li class="vt-item" data-name="zoom"><div class="vt-card d-flex align-items-center gap-3 p-3 position-relative"><a href="#" class="vt-main d-flex align-items-center gap-3 text-decoration-none min-w-0 flex-grow-1 stretched-link"><span class="wdw-icon vt-tile"><svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="6" width="13" height="12" rx="2"/><path d="m16 10 5-3v10l-5-3"/></svg></span><span class="min-w-0 vt-text"><span class="d-block fw-semibold text-body-emphasis text-truncate">Zoom</span><span class="d-block small text-body-secondary text-truncate vt-sub">[email protected]</span></span></a><span class="vt-user small text-body-secondary d-none text-truncate">[email protected]</span><span class="badge rounded-pill bg-body text-body-secondary border vt-cat d-none">Work</span><button type="button" class="btn btn-sm btn-light rounded-circle vt-copy position-relative" style="z-index:2;width:36px;padding:0" aria-label="Copy password for Zoom"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V6a2 2 0 0 1 2-2h9"/></svg></button></div></li>
</ul>
<div class="d-flex justify-content-end mt-3"><button type="button" class="btn btn-primary rounded-circle p-0" style="width:48px" aria-label="Add item"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button></div>
<p class="text-center text-body-secondary py-4 mb-0 d-none" id="vtEmpty">No items match your search.</p>
</div>
</div>
</div>
</div>
</section>
/* Web Designer Wall library style — shared base for every Bootstrap 5 snippet.
Indigo accent, Plus Jakarta Sans, soft cards, pill buttons. Works in light and dark. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");
:root,
[data-bs-theme="light"] {
--wdw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--bs-body-font-family: var(--wdw-font);
--bs-primary: #4f46e5;
--bs-primary-rgb: 79, 70, 229;
--bs-primary-text-emphasis: #3730a3;
--bs-primary-bg-subtle: #eef2ff;
--bs-primary-border-subtle: #c7d2fe;
--bs-link-color: #4f46e5;
--bs-link-color-rgb: 79, 70, 229;
--bs-link-hover-color: #4338ca;
--bs-link-hover-color-rgb: 67, 56, 202;
--bs-focus-ring-color: rgba(79, 70, 229, 0.25);
--bs-border-radius: 0.75rem;
--bs-border-radius-lg: 1rem;
--bs-border-radius-xl: 1.25rem;
--wdw-radius-card: 1.25rem;
--wdw-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 16px 40px -16px rgba(16, 24, 40, 0.22);
--wdw-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 12px -4px rgba(16, 24, 40, 0.12);
--wdw-stage: #f5f6fb;
}
[data-bs-theme="dark"] {
--bs-primary: #818cf8;
--bs-primary-rgb: 129, 140, 248;
--bs-primary-text-emphasis: #c7d2fe;
--bs-primary-bg-subtle: rgba(129, 140, 248, 0.14);
--bs-primary-border-subtle: rgba(129, 140, 248, 0.35);
--bs-link-color: #a5b4fc;
--bs-link-color-rgb: 165, 180, 252;
--bs-link-hover-color: #c7d2fe;
--bs-link-hover-color-rgb: 199, 210, 254;
--bs-focus-ring-color: rgba(129, 140, 248, 0.35);
--wdw-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
--wdw-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.5);
--wdw-stage: #0f1117;
}
body { font-family: var(--wdw-font); -webkit-font-smoothing: antialiased; }
/* Bootstrap compiles its blue into these components; point them at the accent. */
.btn-primary {
--bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: #4338ca; --bs-btn-hover-border-color: #4338ca;
--bs-btn-active-bg: #3730a3; --bs-btn-active-border-color: #3730a3;
--bs-btn-disabled-bg: var(--bs-primary); --bs-btn-disabled-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
[data-bs-theme="dark"] .btn-primary { --bs-btn-color: #0f1117; --bs-btn-hover-bg: #a5b4fc; --bs-btn-hover-border-color: #a5b4fc; --bs-btn-hover-color: #0f1117; --bs-btn-active-color: #0f1117; }
.btn-outline-primary {
--bs-btn-color: var(--bs-primary); --bs-btn-border-color: var(--bs-primary);
--bs-btn-hover-bg: var(--bs-primary); --bs-btn-hover-border-color: var(--bs-primary);
--bs-btn-active-bg: var(--bs-primary); --bs-btn-active-border-color: var(--bs-primary);
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}
.btn { --bs-btn-font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-sm { min-height: 36px; }
.form-control, .form-select { min-height: 44px; border-radius: .75rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--bs-primary-rgb), .6); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--bs-primary); }
.nav { --bs-nav-link-color: var(--bs-secondary-color); --bs-nav-link-hover-color: var(--bs-emphasis-color); }
.pagination { --bs-pagination-active-bg: var(--bs-primary); --bs-pagination-active-border-color: var(--bs-primary); --bs-pagination-color: var(--bs-body-color); --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.progress, .progress-stacked { --bs-progress-bar-bg: var(--bs-primary); }
.list-group { --bs-list-group-active-bg: var(--bs-primary); --bs-list-group-active-border-color: var(--bs-primary); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--bs-primary); border-radius: .875rem; box-shadow: var(--wdw-shadow-sm); }
.accordion { --bs-accordion-active-bg: var(--bs-primary-bg-subtle); --bs-accordion-active-color: var(--bs-primary-text-emphasis); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); }
.badge { font-weight: 600; }
/* Library building blocks — use these instead of re-inventing them per snippet. */
.wdw-stage { min-height: 100vh; display: flex; align-items: center; background: var(--wdw-stage); padding-block: 3rem; }
.wdw-card { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: var(--wdw-radius-card); box-shadow: var(--wdw-shadow); }
.wdw-card-sm { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color-translucent); border-radius: 1rem; box-shadow: var(--wdw-shadow-sm); }
.wdw-aurora { position: relative; color: #fff; background: radial-gradient(60% 55% at 100% 0, #818cf8 0, transparent 70%), radial-gradient(65% 60% at 0 100%, #ec4899 0, transparent 65%), #1e1b4b; }
.wdw-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-primary); }
.wdw-heading { font-weight: 800; letter-spacing: -.02em; color: var(--bs-emphasis-color); }
.wdw-muted { color: var(--bs-secondary-color); }
.wdw-icon { width: 2.75rem; height: 2.75rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: .875rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }
/* Component */
.vt { min-height: 600px; }
.min-w-0 { min-width: 0; }
.vt-railbar { width: 64px; flex: none; border-right: 1px solid var(--bs-border-color); }
.vt-rail { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: .875rem; color: rgba(255,255,255,.7); }
.vt-rail:hover { color: #fff; background: rgba(255,255,255,.12); }
.vt-rail.active { color: #fff; background: rgba(255,255,255,.2); }
.vt-rail:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.vt-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.vt-grid.is-list { grid-template-columns: 1fr; gap: .5rem; }
.vt-main { color: inherit; }
.vt-copy { opacity: 0; transition: opacity .15s; color: var(--bs-secondary-color); }
.vt-card:hover .vt-copy, .vt-card:focus-within .vt-copy, .vt-copy:focus-visible { opacity: 1; }
@media (hover: none) { .vt-copy { opacity: 1; } }
.vt-copy.done { color: var(--bs-success); opacity: 1; }
.is-list .vt-user { display: none; }
@media (min-width: 768px) { .is-list .vt-user { display: block; flex: 0 0 34%; } .is-list .vt-sub { display: none !important; } }
.is-list .vt-card { padding-block: .5rem !important; }
.vt-card { background: var(--bs-tertiary-bg); border: 1px solid transparent; border-radius: 1rem; transition: border-color .15s, transform .15s, box-shadow .15s; }
.vt-card:hover { border-color: var(--bs-primary-border-subtle); transform: translateY(-1px); box-shadow: var(--wdw-shadow-sm); }
.vt-card:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
@media (max-width: 575.98px) { .vt-railbar { width: 52px; } .vt-grid { grid-template-columns: 1fr; } }
@media (min-width: 992px) { .is-list .vt-cat { display: inline-block !important; } }
.vt-card { min-width: 0; }
function initVaultView() {
const list = document.getElementById('vtItems');
if (!list) return;
document.querySelectorAll('input[name="vtView"]').forEach((r) =>
r.addEventListener('change', () => list.classList.toggle('is-list', r.id === 'vtList' && r.checked)));
}
function initVaultSearch() {
const input = document.getElementById('vtSearch');
const items = document.querySelectorAll('.vt-item');
const count = document.getElementById('vtCount');
const empty = document.getElementById('vtEmpty');
if (!input || !items.length) return;
input.addEventListener('input', () => {
const q = input.value.trim().toLowerCase();
let n = 0;
items.forEach((li) => { const hit = li.dataset.name.includes(q); li.hidden = !hit; if (hit) n++; });
if (count) count.textContent = n;
if (empty) empty.classList.toggle('d-none', n > 0);
});
}
initVaultView();
initVaultSearch();
function initVaultCopy() {
const btns = document.querySelectorAll('.vt-copy');
if (!btns.length) return;
btns.forEach((b) => b.addEventListener('click', () => {
b.classList.add('done');
setTimeout(() => b.classList.remove('done'), 1200);
}));
}
initVaultCopy();
Built on Bootstrap 5.3.8 with plain JavaScript — no jQuery. Supports light and dark mode via data-bs-theme.