Search Settings Input
A copy-paste settings & preferences component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.
Settings & PreferencesHTMLCSSany framework
Copy into your project
HTML
<label class="nuda-set-search">
<svg class="nuda-set-search__icon" viewBox="0 0 16 16" fill="none" aria-hidden="true">
<circle cx="7" cy="7" r="5" stroke="currentColor" stroke-width="1.5" />
<path d="m11 11 3 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
</svg>
<input type="search" placeholder="Search settings..." />
<kbd class="nuda-set-search__kbd">⌘K</kbd>
</label>CSS
/* Search Settings Input
A search field with leading icon and trailing keyboard hint.
Customize: --search-bg, --search-accent */
.nuda-set-search {
--search-bg: #0c0c10;
--search-accent: rgba(228, 255, 84, 0.4);
display: flex;
align-items: center;
gap: 0.625rem;
padding: 0 0.875rem;
background: var(--search-bg);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
width: 100%;
max-width: 420px;
transition: border-color 0.2s ease, background 0.2s ease;
}
.nuda-set-search:focus-within {
border-color: var(--search-accent);
background: #111114;
}
.nuda-set-search__icon {
width: 16px;
height: 16px;
color: #63636e;
flex-shrink: 0;
}
.nuda-set-search input {
flex: 1;
background: transparent;
border: 0;
outline: 0;
color: #fafafa;
font-size: 0.875rem;
padding: 0.625rem 0;
font-family: inherit;
}
.nuda-set-search input::placeholder {
color: #63636e;
}
.nuda-set-search__kbd {
font-family: inherit;
font-size: 0.6875rem;
color: #a0a0a8;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 5px;
padding: 0.125rem 0.375rem;
flex-shrink: 0;
letter-spacing: 0.04em;
}
@media (prefers-reduced-motion: reduce) {
.nuda-set-search {
transition: none;
}
}How to use Search Settings Input
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.