aktonay/skillz / skills/design/react-bits
react-bits
VerifiedOver 215+ animated, interactive, copy-paste React micro-components and effects (text animations, interactive backgrounds, physics cards, custom cursors, blobs, and dock bars).
src/components/common/SearchDialog.css
View on GitHub.search-backdrop {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
justify-content: center;
padding-top: 12vh;
background: rgba(8, 6, 12, 0.56);
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
animation: search-fade-in 140ms var(--ease-out);
}
.search-dialog {
width: 100%;
max-width: 600px;
height: fit-content;
margin: 0 16px;
overflow: hidden;
border-radius: 16px;
background: var(--menu-bg);
box-shadow: var(--menu-shadow);
font-family: 'Geist', sans-serif;
transform-origin: 50% 0;
animation: search-rise 180ms var(--ease-out);
}
.search-input-row {
display: flex;
height: 56px;
align-items: center;
gap: 12px;
padding: 0 14px 0 18px;
}
.search-input-icon {
display: inline-flex;
flex: none;
color: var(--tool-muted);
}
.search-input {
flex: 1;
min-width: 0;
border: 0;
background: none;
color: var(--text-primary);
caret-color: var(--color-primary);
font-family: 'Geist', sans-serif;
font-size: 15px;
font-weight: 450;
letter-spacing: -0.01em;
outline: none;
}
.search-input::placeholder {
color: var(--tool-muted);
}
.search-kbd,
.search-hints kbd {
display: inline-flex;
flex: none;
align-items: center;
justify-content: center;
border-radius: 6px;
background: var(--tool-track);
color: var(--tool-muted);
font-family: 'Geist', sans-serif;
font-weight: 500;
}
.search-kbd {
height: 24px;
padding: 0 8px;
font-size: 11.5px;
cursor: pointer;
transition:
background-color var(--dur-menu) var(--ease-out),
color var(--dur-menu) var(--ease-out);
}
.search-kbd:hover {
background: var(--tool-track-hover);
color: var(--text-primary);
}
.search-results-wrapper {
position: relative;
border-top: 1px solid var(--inset-divider);
}
.search-results {
position: relative;
max-height: min(420px, 56vh);
overflow-y: auto;
padding: 4px 8px 8px;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: var(--tool-track-hover) transparent;
}
.search-highlight {
position: absolute;
top: 0;
right: 8px;
left: 8px;
border-radius: 10px;
background: var(--menu-highlight);
pointer-events: none;
}
.search-highlight[data-ready] {
transition:
transform 220ms var(--ease-out),
height 220ms var(--ease-out),
opacity 140ms var(--ease-out);
}
.search-group-label {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 12px 10px 6px;
color: var(--menu-label);
font-size: 12px;
font-weight: 500;
letter-spacing: -0.005em;
}
.search-group-label span {
color: var(--menu-label);
font-size: 11.5px;
font-weight: 450;
opacity: 0.8;
}
.search-row {
position: relative;
z-index: 1;
display: flex;
min-height: 52px;
align-items: center;
gap: 12px;
padding: 8px 10px;
border-radius: 10px;
cursor: pointer;
}
.search-row-icon {
display: grid;
width: 32px;
height: 32px;
flex: none;
place-items: center;
border-radius: 9px;
background: var(--tool-track);
color: var(--tool-muted);
transition:
background-color var(--dur-menu) var(--ease-out),
color var(--dur-menu) var(--ease-out);
}
.search-row[data-selected] .search-row-icon {
background: var(--tool-raised);
box-shadow: var(--tool-raised-shadow);
color: var(--text-primary);
}
.search-row-text {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
gap: 2px;
}
.search-row-title {
display: flex;
min-width: 0;
align-items: center;
gap: 8px;
overflow: hidden;
color: var(--text-primary);
font-size: 14px;
font-weight: 500;
letter-spacing: -0.01em;
text-overflow: ellipsis;
white-space: nowrap;
}
.search-row-meta {
overflow: hidden;
color: var(--tool-muted);
font-size: 12.5px;
text-overflow: ellipsis;
white-space: nowrap;
}
.search-row-badge {
flex: none;
padding: 2px 6px;
border-radius: 6px;
background: var(--new-badge-bg);
color: var(--new-badge-text);
font-size: 11px;
font-weight: 500;
line-height: 1.2;
}
.search-row-trail {
display: inline-flex;
flex: none;
color: var(--tool-muted);
opacity: 0;
transform: translateX(-3px);
transition:
opacity var(--dur-menu) var(--ease-out),
transform var(--dur-menu) var(--ease-out);
}
.search-row[data-selected] .search-row-trail {
opacity: 1;
transform: none;
}
.search-no-results {
margin: 0;
padding: 28px 16px 30px;
color: var(--tool-muted);
font-size: 13.5px;
text-align: center;
}
.search-no-results strong {
color: var(--text-primary);
font-weight: 500;
}
.search-footer {
display: flex;
height: 44px;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 0 14px 0 16px;
border-top: 1px solid var(--inset-divider);
}
.search-hints {
display: flex;
align-items: center;
gap: 16px;
color: var(--tool-muted);
font-size: 12px;
}
.search-hints span {
display: inline-flex;
align-items: center;
gap: 4px;
}
.search-hints kbd {
min-width: 20px;
height: 20px;
padding: 0 4px;
font-size: 11px;
}
.search-hints kbd:last-of-type {
margin-right: 3px;
}
.search-toggle {
position: relative;
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--tool-muted);
font-size: 12.5px;
font-weight: 500;
cursor: pointer;
user-select: none;
transition: color var(--dur-menu) var(--ease-out);
}
.search-toggle:hover {
color: var(--text-primary);
}
.search-toggle input {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
}
.search-switch {
position: relative;
width: 28px;
height: 16px;
border-radius: 999px;
background: var(--tool-track-hover);
transition: background-color var(--dur-menu) var(--ease-out);
}
.search-switch::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 12px;
height: 12px;
border-radius: 50%;
background: var(--switch-knob);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
transition:
transform var(--dur-menu) var(--ease-out),
background-color var(--dur-menu) var(--ease-out);
}
.search-toggle input:checked + .search-switch {
background: var(--switch-track-checked);
}
.search-toggle input:checked + .search-switch::after {
background: var(--switch-knob-checked);
transform: translateX(12px);
}
.search-toggle input:focus-visible + .search-switch {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
.search-gradient {
position: absolute;
right: 0;
left: 0;
z-index: 2;
pointer-events: none;
transition: opacity 0.3s;
}
.search-gradient-top {
top: 0;
height: 40px;
background: linear-gradient(to bottom, rgb(var(--menu-bg-rgb)), rgba(var(--menu-bg-rgb), 0));
}
.search-gradient-bottom {
bottom: 0;
height: 56px;
background: linear-gradient(to top, rgb(var(--menu-bg-rgb)), rgba(var(--menu-bg-rgb), 0));
}
:root[data-theme='light'] .search-backdrop {
background: rgba(24, 24, 27, 0.18);
}
@keyframes search-fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes search-rise {
from {
opacity: 0;
transform: translateY(-6px) scale(0.985);
}
to {
opacity: 1;
transform: none;
}
}
@media (max-width: 768px) {
.search-backdrop {
padding-top: 8vh;
}
.search-dialog {
max-width: none;
margin: 0 12px;
}
.search-hints {
display: none;
}
.search-footer {
justify-content: flex-end;
}
}
@media (prefers-reduced-motion: reduce) {
.search-backdrop,
.search-dialog {
animation: none;
}
.search-highlight[data-ready],
.search-row-trail,
.search-row-icon,
.search-gradient,
.search-kbd,
.search-toggle,
.search-switch,
.search-switch::after {
transition: none;
}
}
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: 319k | 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: 196k | 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: 196k | 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: 196k | Updated | Claude CodeCodex | Verified | Install |