3D Press Button
Button with 3D pressed effect on click using box-shadow and translateY with no JavaScript.
CSS UI component snippets: buttons, forms, navigation, cards, tooltips, and more. Every snippet includes a live demo, copyable CSS, and an LLM-ready prompt.
Button with 3D pressed effect on click using box-shadow and translateY with no JavaScript.
404 page snippet with a live demo, copyable CSS, and implementation prompt.
500 error page snippet with a live demo, copyable CSS, and implementation prompt.
details/summary styled accordion, no JS.
Action list snippet with a live demo, copyable CSS, and implementation prompt.
Activity feed snippet with a live demo, copyable CSS, and implementation prompt.
Button with multi-stage hover animation: background sweep, icon shift, and shadow lift. Pure CSS transitions, no JavaScript.
Style elements based on ARIA attributes using CSS attribute selectors — disabled, expanded, selected states without extra classes.
Overlapping circular avatars using negative margins and z-index stacking.
Style user avatars with CSS border-radius, object-fit, and size variants for profile pictures and user icons.
Small colored badge dots and status indicators for online, away, busy, and offline states. Semantic, accessible, oklch-powered.
A versatile card component with image, title, description, and hover lift effect. The foundation of any card-based UI.
A CSS blog post card with gradient image placeholder, meta line, title, excerpt, and read-more link. Pure CSS, no JavaScript.
Breadcrumb trail snippet with a live demo, copyable CSS, and implementation prompt.
A breadcrumb navigation with CSS flexbox and pseudo-element separators.
A horizontal group of connected buttons sharing borders — built with flexbox and border-radius overrides.
A button with a notification badge count positioned top-right using CSS absolute positioning. No JavaScript required.
Shimmer loading skeleton for cards using CSS animations.
Compact chip/tag component with optional close button. Ideal for filters, categories, and selected items.
Coming soon page snippet with a live demo, copyable CSS, and implementation prompt.
Checkbox-driven toggle switch with no JavaScript.
A styled checkbox using appearance: none with custom check mark, smooth transition, and accessible focus ring.
Custom-styled radio buttons with animated selection dot. Uses appearance: none and pseudo-elements, fully keyboard-accessible.
Style elements by their data-* attribute values using CSS — tabs, toggles, and state machines without JavaScript classes.
Create a decorative multi-layer border using outline + outline-offset and box-shadow to add visual depth to cards and buttons without extra markup.
A danger/destructive action button in red oklch() tones — for delete, remove, or irreversible actions.
A native HTML dialog element with styled backdrop, centered content, and smooth open animation. Accessible by default.
CSS for disabled button states using :disabled and aria-disabled. Reduced opacity, cursor: not-allowed, and no hover effects. Accessible by default.
Create double border effects on cards and containers using outline-offset, box-shadow, or border-style: double.
A file download card with icon, filename, size, tags, and a primary download button. Use it for releases, assets, and resources pages.
A CSS dropdown menu using :hover and :focus-within. Smooth reveal animation, keyboard accessible, no JavaScript required.
Empty inbox snippet with a live demo, copyable CSS, and implementation prompt.
Event card snippet with a live demo, copyable CSS, and implementation prompt.
Card that expands to reveal additional content using the details/summary HTML elements. Smooth height transition, no JavaScript.
Auto-append an external link icon to any anchor with href starting with http using CSS attribute selectors — no JavaScript required.
Use @supports to progressively enhance components — show a solid fallback for older browsers while unlocking advanced CSS features for modern ones.
A CSS feature card grid with icon, heading, and description. Three columns, card backgrounds, border-radius, and padding. Copy and go.
A styled file upload dropzone with dashed border, hover accent, and hidden input. Built with a label wrapping a hidden file input — no JavaScript.
Circular FAB with position:fixed, drop shadow, and hover scale effect.
A CSS floating label input that animates from placeholder position to the top-left on focus or when filled. No JavaScript.
Style accessible focus rings using :focus-visible, outline-offset, and oklch() for keyboard navigation indicators.
A transparent button with border outline that fills on hover. All states covered: hover, focus-visible, active, disabled.
Button with CSS gradient background using oklch() colors, with smooth hover shift.
CSS-only hamburger toggle that morphs into an X. Three bars animate to a close icon using transforms, no JavaScript required.
Style a parent when a child is open using :has().
Card layout where image/media sits on the left and content on the right using CSS Grid.
A square button with a centered icon. Accessible with aria-label, complete state coverage, keyboard-friendly.
Accessible icon-only button with visible focus ring, tooltip on hover, and proper ARIA labeling. Pure CSS, no JavaScript.
Build responsive image cards with CSS grid, aspect-ratio, and object-fit for consistent media display.
A card with a gradient overlay on an image — title and text overlaid at the bottom using CSS absolute positioning. No JavaScript required.
A polished text input with focus-visible state, placeholder, and oklch colors.
Make entire cards clickable using CSS ::after pseudo-element stretching with accessible link semantics.
Job listing card snippet with a live demo, copyable CSS, and implementation prompt.
Key-value list snippet with a live demo, copyable CSS, and implementation prompt.
Use the :lang() pseudo-class to adapt typography, quotes, and direction per language. Pure CSS internationalization. Copy and go.
A large button style with generous padding and bigger font-size for hero sections and primary calls-to-action. Copy-ready CSS.
A button with a CSS spinner that appears during loading state, using animation and pseudo-elements only.
Maintenance page snippet with a live demo, copyable CSS, and implementation prompt.
Meter snippet with a live demo, copyable CSS, and implementation prompt.
A fully styled native <select> element with appearance: none, custom SVG arrow, oklch border, and keyboard focus ring. No JavaScript.
No connection snippet with a live demo, copyable CSS, and implementation prompt.
No results snippet with a live demo, copyable CSS, and implementation prompt.
Cut notched corners on UI elements using CSS clip-path polygon for a modern geometric look.
Notification card snippet with a live demo, copyable CSS, and implementation prompt.
Notification list snippet with a live demo, copyable CSS, and implementation prompt.
Ghost/outline button with visible border and transparent background, with hover fill effect.
A focus ring with a visible gap between the element and the ring, using outline combined with outline-offset for clean keyboard navigation styling.
A scrollable container with overflow: auto, custom scrollbar styling, and scroll-shadow fade edges.
Highlight a parent container when any child receives focus using :has(:focus-visible). No JavaScript needed.
Button with fully rounded corners (border-radius: 9999px) in various sizes and styles.
Create pill-shaped UI elements like tags and badges using border-radius: 9999px for perfectly rounded ends.
Native HTML popover with CSS styling — positioned tooltip-style content that dismisses on outside click. No JavaScript needed.
A pricing tier card with a highlighted popular option using scale transform and oklch accent colors.
Production-ready primary button with hover, focus, active, and disabled states.
E-commerce product card with image, title, price, rating stars, and add-to-cart button. Responsive, accessible, pure CSS layout.
A centered profile card with circular avatar, name, role, and social links row. Pure CSS, dark-mode ready.
A styled progress element with animated fill using pseudo-elements and an accent-color fallback.
A styled CSS range input with custom track and thumb. Uses appearance: none with webkit and moz vendor prefixes. No JavaScript.
Recipe card snippet with a live demo, copyable CSS, and implementation prompt.
Apply consistent rounded corners to UI elements using border-radius with CSS custom properties.
A styled search input with magnifying glass icon and animated focus ring. Clean, accessible, dark-mode ready.
Secondary button style with subtle background and muted text, the perfect complement to a primary CTA.
Style section dividers and separators using CSS borders, pseudo-elements, and oklch() accent colors.
Skeleton loading placeholder with animated shimmer gradient. Shows content shape while data loads, pure CSS animation.
Build loading skeleton placeholder cards with CSS shimmer animation using linear-gradient and keyframes.
A compact small button style with reduced padding and font-size. Copy-ready CSS for primary, secondary, and ghost variants at a smaller scale.
A split button with a primary action and a dropdown arrow — two clickable zones separated by a vertical divider.
Stat row snippet with a live demo, copyable CSS, and implementation prompt.
Dashboard stat card showing a large number, label, and trend indicator. Responsive, accessible, pure CSS with oklch() colors.
Step indicator snippet with a live demo, copyable CSS, and implementation prompt.
An iOS-style toggle switch built with a hidden checkbox and CSS. Smooth thumb animation, accessible, zero JavaScript.
A flex-wrap tag cloud with consistent chip styling using oklch colors.
Customer testimonial card with avatar, quote, name, and role. Quotation marks via ::before pseudo-element, pure CSS.
Styled textarea with focus ring, character count hint, and auto-resize behavior. Dark-mode ready, accessible, pure CSS.
Vertical timeline with connected dots and alternating content cards. Pure CSS using border and pseudo-elements.
A fixed-position notification that slides in from the bottom-right with auto-dismiss animation. Pure CSS keyframes.
A CSS-only toggle switch using a hidden checkbox and label. Smooth sliding knob transition with no JavaScript required.
CSS Anchor Positioning tooltip — tethered via anchor-name / anchor().
A pure CSS tooltip using ::after and attr() that appears on hover with a smooth transition.
Responsive top nav with logo, links, and sticky positioning.
Tree view snippet with a live demo, copyable CSS, and implementation prompt.
Style HTML inputs differently by type using CSS attribute selectors for text, email, password, and number fields.
Under construction snippet with a live demo, copyable CSS, and implementation prompt.
CSS form validation states using :valid, :invalid, and :user-invalid pseudo-classes. Green and red oklch borders with transitions. No JavaScript.
A responsive video preview card with aspect-ratio thumbnail, play overlay, and metadata row. Pure CSS—use it for feeds, tutorials, and playlists.
Four semantic alert variants — info, success, warning, and error — built with CSS custom properties and oklch() colors. No JavaScript required.
A smooth expanding accordion built with the HTML details/summary elements — no JavaScript, fully accessible, animated with CSS transitions.