Recent Items
A copy-paste command palette component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Command PaletteHTMLCSSany framework
- Open project2m ago
- Create branch12m ago
- Run tests1h ago
Copy into your project
HTML
<!-- Recent Items — clock icon + relative time per row -->
<ul class="nuda-recent">
<li class="nuda-recent__row">
<svg class="nuda-recent__icon" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="9" /><path d="M12 8 L12 12 L15 14" />
</svg>
<span class="nuda-recent__name">Open project</span>
<span class="nuda-recent__time">2m ago</span>
</li>
<!-- ...more rows -->
</ul>CSS
/* Recent Items
Recently-used commands list inside a palette.
Customize: --recent-accent */
.nuda-recent {
--recent-accent: #e4ff54;
list-style: none;
padding: 6px;
margin: 0;
display: flex;
flex-direction: column;
gap: 2px;
width: 100%;
max-width: 320px;
}
.nuda-recent__row {
display: flex;
align-items: center;
gap: 10px;
padding: 7px 10px;
border-radius: 6px;
cursor: pointer;
transition: background 0.15s;
}
.nuda-recent__row:hover { background: rgba(255, 255, 255, 0.04); }
.nuda-recent__icon {
width: 15px;
height: 15px;
color: #63636e;
flex-shrink: 0;
}
.nuda-recent__row:hover .nuda-recent__icon { color: var(--recent-accent); }
.nuda-recent__name {
flex: 1;
font: 500 0.875rem ui-sans-serif, system-ui, sans-serif;
color: #a1a1aa;
}
.nuda-recent__row:hover .nuda-recent__name { color: #fafafa; }
.nuda-recent__time {
font: 600 0.7rem ui-monospace, monospace;
color: #63636e;
flex-shrink: 0;
}How to use Recent Items
Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.
Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.