Modern glassmorphism
backdrop-filter + oklch() frosted glass card.
Live demos · copy CSS · copy LLM prompt · baseline badges. Filter by tag:
backdrop-filter + oklch() frosted glass card.
Checkbox-driven switch — no JavaScript at all.
animation-timeline: scroll() reading indicator.
Layout that responds to container width, not viewport.
Expand/collapse or highlight with the parent selector.
clamp() for scalable headings — no breakpoints.
Media card with consistent ratio and object-fit.
details / summary styled, no JS.
Tooltip tethered via anchor-name / anchor().
Aligned grid children with subgrid.
display: grid; place-items: center — the two-line centering trick.
The RAM pattern: repeat(auto-fill, minmax()) — zero media queries.
Multi-layer box-shadow with oklch for natural depth.
One function, two colors — auto dark mode switching.
@starting-style fade-up on page load — no JavaScript.
Hover underline slides in via background-size transition.
Every state: hover, focus-visible, active, disabled.
Shimmer animation placeholder while content loads.
Sticky nav with logo, links, and backdrop blur.
Keyboard-only focus rings — hidden on mouse click.
Footer always at the bottom — grid + min-height: 100dvh.
Gradient fill on text with background-clip: text.
Grid sidebar with fit-content() — responsive without queries.
Single-line and multi-line text truncation.
Horizontal scroll gallery with scroll-snap-type.
Frosted glass card with backdrop-filter: blur().
Custom input with focus ring, placeholder, and transitions.
Flex breadcrumb with ::before separators.
Flex-wrap tag group with consistent spacing.
Border-based spinner with prefers-reduced-motion respect.
Card with gradient border using background-clip.
Hidden link that appears on keyboard focus for accessibility.
Pure CSS tooltip on hover/focus — no JavaScript.
Overlapping circular avatars with negative margins.
No-JS dark mode switch with :has() on :root.
Table that stacks to cards on small containers.
Three-tier pricing with highlighted popular option.
Styled <progress> element with gradient fill.
Header + sidebars + content + footer with grid-template-areas.
Image + text side-by-side — the classic layout pattern.