{
  "name": "copy CSS",
  "url": "https://copy-css.com/",
  "description": "Free UI snippets in plain HTML and CSS. Free for personal and commercial use. No signup, no attribution required.",
  "count": 428,
  "categories": [
    {
      "id": "buttons",
      "name": "Buttons",
      "title": "CSS Buttons",
      "description": "Hover effects, 3D presses and gradient buttons you can drop into any project.",
      "url": "https://copy-css.com/category/buttons",
      "count": 55
    },
    {
      "id": "gradients",
      "name": "Gradients",
      "title": "CSS Gradients & Patterns",
      "description": "Linear, radial, conic, mesh and animated gradient backgrounds, plus pure CSS patterns.",
      "url": "https://copy-css.com/category/gradients",
      "count": 23
    },
    {
      "id": "shadows",
      "name": "Shadows",
      "title": "CSS Box Shadows",
      "description": "Soft layered, neumorphic, glowing and retro box-shadow recipes.",
      "url": "https://copy-css.com/category/shadows",
      "count": 35
    },
    {
      "id": "loaders",
      "name": "Loaders",
      "title": "CSS Loaders & Spinners",
      "description": "Pure CSS spinners, dots, progress bars and skeleton screens. No JavaScript required.",
      "url": "https://copy-css.com/category/loaders",
      "count": 50
    },
    {
      "id": "text",
      "name": "Text",
      "title": "CSS Text Effects",
      "description": "Gradient text, neon glows, outlines, typewriters and animated underlines.",
      "url": "https://copy-css.com/category/text",
      "count": 50
    },
    {
      "id": "cards",
      "name": "Cards",
      "title": "CSS Cards",
      "description": "Glassmorphism, hover lift, glowing borders and 3D flip cards.",
      "url": "https://copy-css.com/category/cards",
      "count": 49
    },
    {
      "id": "forms",
      "name": "Forms",
      "title": "CSS Form Elements",
      "description": "Floating labels, toggle switches, custom checkboxes, selects, ratings and more.",
      "url": "https://copy-css.com/category/forms",
      "count": 50
    },
    {
      "id": "navigation",
      "name": "Navigation",
      "title": "CSS Navigation",
      "description": "Tabs, breadcrumbs, pagination, dropdowns and nav bars, built with plain HTML and CSS.",
      "url": "https://copy-css.com/category/navigation",
      "count": 35
    },
    {
      "id": "layouts",
      "name": "Layouts",
      "title": "CSS Layouts",
      "description": "Flexbox and Grid recipes: centering, responsive grids, sidebars, bento boxes and masonry.",
      "url": "https://copy-css.com/category/layouts",
      "count": 35
    },
    {
      "id": "effects",
      "name": "Effects",
      "title": "CSS Effects",
      "description": "Tooltips, morphing blobs, hamburger menus and other small delights.",
      "url": "https://copy-css.com/category/effects",
      "count": 46
    }
  ],
  "snippets": [
    {
      "id": "glow-button",
      "name": "Glow Button",
      "category": "buttons",
      "tags": [
        "gradient",
        "hover",
        "shadow",
        "cta"
      ],
      "description": "A gradient call-to-action button with a soft colored glow that lifts on hover.",
      "url": "https://copy-css.com/snippets/glow-button",
      "markdown": "https://copy-css.com/snippets/glow-button.md",
      "html": "<button class=\"btn-glow\">Get started</button>",
      "css": ".btn-glow {\n  padding: 14px 32px;\n  border: 0;\n  border-radius: 12px;\n  font: 600 16px/1 system-ui, sans-serif;\n  color: #fff;\n  background: linear-gradient(135deg, #6366f1, #a855f7);\n  box-shadow: 0 10px 24px -8px rgba(139, 92, 246, 0.7);\n  cursor: pointer;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n}\n\n.btn-glow:hover {\n  transform: translateY(-2px);\n  box-shadow: 0 16px 32px -8px rgba(139, 92, 246, 0.85);\n}\n\n.btn-glow:active {\n  transform: translateY(0);\n}",
      "features": [
        "transitions",
        "transforms",
        "linear gradients",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "fill-button",
      "name": "Fill on Hover Button",
      "category": "buttons",
      "tags": [
        "outline",
        "hover",
        "pill",
        "animation"
      ],
      "description": "An outlined pill button that fills with color from left to right on hover.",
      "url": "https://copy-css.com/snippets/fill-button",
      "markdown": "https://copy-css.com/snippets/fill-button.md",
      "html": "<button class=\"btn-fill\">Hover me</button>",
      "css": ".btn-fill {\n  position: relative;\n  z-index: 0;\n  overflow: hidden;\n  padding: 14px 32px;\n  border: 2px solid #0284c7;\n  border-radius: 999px;\n  background: transparent;\n  color: #0284c7;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: color 0.3s ease;\n}\n\n.btn-fill::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: #0284c7;\n  transform: scaleX(0);\n  transform-origin: left;\n  transition: transform 0.3s ease;\n}\n\n.btn-fill:hover {\n  color: #fff;\n}\n\n.btn-fill:hover::before {\n  transform: scaleX(1);\n}",
      "features": [
        "transitions",
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "pushable-3d-button",
      "name": "3D Push Button",
      "category": "buttons",
      "tags": [
        "3d",
        "active",
        "press",
        "click"
      ],
      "description": "A chunky, tactile button that physically sinks down when you press it.",
      "url": "https://copy-css.com/snippets/pushable-3d-button",
      "markdown": "https://copy-css.com/snippets/pushable-3d-button.md",
      "html": "<button class=\"btn-3d\">Press me</button>",
      "css": ".btn-3d {\n  padding: 14px 32px;\n  border: 0;\n  border-radius: 12px;\n  background: #f43f5e;\n  color: #fff;\n  font: 700 16px/1 system-ui, sans-serif;\n  box-shadow: 0 6px 0 #be123c;\n  cursor: pointer;\n  transition: transform 0.1s ease, box-shadow 0.1s ease;\n}\n\n.btn-3d:hover {\n  filter: brightness(1.05);\n}\n\n.btn-3d:active {\n  transform: translateY(6px);\n  box-shadow: 0 0 0 #be123c;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "filters"
      ],
      "customProperties": []
    },
    {
      "id": "brutalist-button",
      "name": "Neo-Brutalist Button",
      "category": "buttons",
      "tags": [
        "brutalism",
        "retro",
        "bold",
        "offset shadow"
      ],
      "description": "A bold neo-brutalist button with a thick border and a hard offset shadow.",
      "url": "https://copy-css.com/snippets/brutalist-button",
      "markdown": "https://copy-css.com/snippets/brutalist-button.md",
      "html": "<button class=\"btn-brutal\">Click me</button>",
      "css": ".btn-brutal {\n  padding: 14px 28px;\n  border: 3px solid #111;\n  background: #facc15;\n  color: #111;\n  font: 800 16px/1 system-ui, sans-serif;\n  box-shadow: 5px 5px 0 #111;\n  cursor: pointer;\n  transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n\n.btn-brutal:hover {\n  transform: translate(-2px, -2px);\n  box-shadow: 7px 7px 0 #111;\n}\n\n.btn-brutal:active {\n  transform: translate(5px, 5px);\n  box-shadow: 0 0 0 #111;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "shine-button",
      "name": "Shine Sweep Button",
      "category": "buttons",
      "tags": [
        "shine",
        "shimmer",
        "dark",
        "animation"
      ],
      "description": "A dark button with a light streak that sweeps across it on a loop.",
      "url": "https://copy-css.com/snippets/shine-button",
      "markdown": "https://copy-css.com/snippets/shine-button.md",
      "html": "<button class=\"btn-shine\">Upgrade now</button>",
      "css": ".btn-shine {\n  position: relative;\n  overflow: hidden;\n  padding: 14px 32px;\n  border: 0;\n  border-radius: 10px;\n  background: #111827;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-shine::after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: -75%;\n  width: 50%;\n  height: 100%;\n  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);\n  transform: skewX(-20deg);\n  animation: shine 2.8s ease-in-out infinite;\n}\n\n@keyframes shine {\n  60%, 100% { left: 125%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-shine::after {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "linear gradients",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "gradient-border-button",
      "name": "Gradient Border Button",
      "category": "buttons",
      "tags": [
        "gradient",
        "border",
        "outline"
      ],
      "description": "A clean button with a multi-color gradient border, no extra elements needed.",
      "url": "https://copy-css.com/snippets/gradient-border-button",
      "markdown": "https://copy-css.com/snippets/gradient-border-button.md",
      "html": "<button class=\"btn-gradient-border\">Learn more</button>",
      "css": ".btn-gradient-border {\n  padding: 14px 32px;\n  border: 2px solid transparent;\n  border-radius: 12px;\n  background:\n    linear-gradient(#fff, #fff) padding-box,\n    linear-gradient(90deg, #f97316, #ec4899, #8b5cf6) border-box;\n  color: #111;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: transform 0.2s ease;\n}\n\n.btn-gradient-border:hover {\n  transform: translateY(-2px);\n}",
      "features": [
        "transitions",
        "transforms",
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "arrow-button",
      "name": "Arrow Slide Button",
      "category": "buttons",
      "tags": [
        "arrow",
        "hover",
        "pill",
        "cta",
        "dark"
      ],
      "description": "A dark pill button whose arrow nudges forward on hover, inviting the next click.",
      "url": "https://copy-css.com/snippets/arrow-button",
      "markdown": "https://copy-css.com/snippets/arrow-button.md",
      "html": "<button class=\"btn-arrow\">Continue <span aria-hidden=\"true\">→</span></button>",
      "css": ".btn-arrow {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  padding: 14px 24px;\n  border: 0;\n  border-radius: 999px;\n  background: #111;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.btn-arrow span {\n  transition: transform 0.25s ease;\n}\n\n.btn-arrow:hover {\n  background: #2a2a2a;\n}\n\n.btn-arrow:hover span {\n  transform: translateX(4px);\n}",
      "features": [
        "transitions",
        "transforms",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "pulse-button",
      "name": "Pulsing CTA Button",
      "category": "buttons",
      "tags": [
        "pulse",
        "cta",
        "attention",
        "animation",
        "green"
      ],
      "description": "A call-to-action button that sends out a soft pulse to draw the eye.",
      "url": "https://copy-css.com/snippets/pulse-button",
      "markdown": "https://copy-css.com/snippets/pulse-button.md",
      "html": "<button class=\"btn-pulse\">Start free trial</button>",
      "css": ".btn-pulse {\n  padding: 14px 30px;\n  border: 0;\n  border-radius: 999px;\n  background: #16a34a;\n  color: #fff;\n  font: 700 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  animation: btn-pulse 2s infinite;\n}\n\n@keyframes btn-pulse {\n  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }\n  70% { box-shadow: 0 0 0 16px rgba(22, 163, 74, 0); }\n  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-pulse {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "box shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "glass-button",
      "name": "Glass Button",
      "category": "buttons",
      "tags": [
        "glass",
        "glassmorphism",
        "blur",
        "frosted",
        "backdrop-filter"
      ],
      "description": "A frosted glass button for colorful hero sections and image backgrounds.",
      "url": "https://copy-css.com/snippets/glass-button",
      "markdown": "https://copy-css.com/snippets/glass-button.md",
      "html": "<button class=\"btn-glass\">Explore</button>",
      "css": ".btn-glass {\n  padding: 14px 32px;\n  border: 1px solid rgba(255, 255, 255, 0.45);\n  border-radius: 14px;\n  background: rgba(255, 255, 255, 0.18);\n  -webkit-backdrop-filter: blur(10px);\n  backdrop-filter: blur(10px);\n  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.btn-glass:hover {\n  background: rgba(255, 255, 255, 0.28);\n}",
      "features": [
        "transitions",
        "box shadows",
        "backdrop filters"
      ],
      "customProperties": []
    },
    {
      "id": "loading-button",
      "name": "Loading Button",
      "category": "buttons",
      "tags": [
        "loading",
        "spinner",
        "state",
        "submit",
        "form"
      ],
      "description": "A button with a built-in spinner. Add the is-loading class while a request runs.",
      "url": "https://copy-css.com/snippets/loading-button",
      "markdown": "https://copy-css.com/snippets/loading-button.md",
      "html": "<button class=\"btn-loading is-loading\">Saving…</button>",
      "css": ".btn-loading {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  padding: 14px 26px;\n  border: 0;\n  border-radius: 12px;\n  background: #2563eb;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-loading.is-loading {\n  cursor: progress;\n  opacity: 0.9;\n}\n\n.btn-loading.is-loading::before {\n  content: \"\";\n  width: 16px;\n  height: 16px;\n  border: 2.5px solid rgba(255, 255, 255, 0.4);\n  border-top-color: #fff;\n  border-radius: 50%;\n  animation: btn-spin 0.7s linear infinite;\n}\n\n@keyframes btn-spin {\n  to { transform: rotate(360deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-loading.is-loading::before {\n    animation-duration: 2s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "text-roll-button",
      "name": "Text Roll Button",
      "category": "buttons",
      "tags": [
        "hover",
        "text",
        "slide",
        "roll",
        "outline"
      ],
      "description": "On hover the label rolls up and a colored copy rolls in from below.",
      "url": "https://copy-css.com/snippets/text-roll-button",
      "markdown": "https://copy-css.com/snippets/text-roll-button.md",
      "html": "<button class=\"btn-roll\"><span data-text=\"Let’s talk\">Let’s talk</span></button>",
      "css": ".btn-roll {\n  overflow: hidden;\n  padding: 14px 30px;\n  border: 2px solid #111;\n  border-radius: 10px;\n  background: #fff;\n  color: #111;\n  font: 700 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-roll span {\n  position: relative;\n  display: inline-block;\n  transition: transform 0.3s ease;\n}\n\n.btn-roll span::after {\n  content: attr(data-text);\n  position: absolute;\n  top: calc(100% + 20px);\n  left: 0;\n  color: #7c3aed;\n}\n\n.btn-roll:hover span {\n  transform: translateY(calc(-100% - 20px));\n}",
      "features": [
        "transitions",
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "corner-brackets-button",
      "name": "Corner Brackets Button",
      "category": "buttons",
      "tags": [
        "brackets",
        "corners",
        "hover",
        "outline",
        "minimal"
      ],
      "description": "A minimal button with corner brackets that slide out to frame it on hover.",
      "url": "https://copy-css.com/snippets/corner-brackets-button",
      "markdown": "https://copy-css.com/snippets/corner-brackets-button.md",
      "html": "<button class=\"btn-brackets\">Explore</button>",
      "css": ".btn-brackets {\n  position: relative;\n  padding: 14px 30px;\n  border: 0;\n  background: transparent;\n  color: #1c1917;\n  font: 700 15px/1 system-ui, sans-serif;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n  cursor: pointer;\n}\n\n.btn-brackets::before,\n.btn-brackets::after {\n  content: \"\";\n  position: absolute;\n  width: 12px;\n  height: 12px;\n  border: 2px solid #ea580c;\n  transition: all 0.25s ease;\n}\n\n.btn-brackets::before {\n  top: 4px;\n  left: 4px;\n  border-right: 0;\n  border-bottom: 0;\n}\n\n.btn-brackets::after {\n  right: 4px;\n  bottom: 4px;\n  border-left: 0;\n  border-top: 0;\n}\n\n.btn-brackets:hover::before,\n.btn-brackets:hover::after {\n  width: calc(100% - 8px);\n  height: calc(100% - 8px);\n}",
      "features": [
        "transitions"
      ],
      "customProperties": []
    },
    {
      "id": "split-button",
      "name": "Split Button",
      "category": "buttons",
      "tags": [
        "split",
        "dropdown",
        "group",
        "caret",
        "actions"
      ],
      "description": "A primary action joined to a caret segment for extra options.",
      "url": "https://copy-css.com/snippets/split-button",
      "markdown": "https://copy-css.com/snippets/split-button.md",
      "html": "<div class=\"btn-split\">\n  <button type=\"button\">Save draft</button>\n  <button type=\"button\" aria-label=\"More save options\">\n    <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"/></svg>\n  </button>\n</div>",
      "css": ".btn-split {\n  display: inline-flex;\n  border-radius: 10px;\n  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);\n}\n\n.btn-split button {\n  display: inline-grid;\n  place-items: center;\n  padding: 12px 18px;\n  border: 0;\n  background: #0f766e;\n  color: #fff;\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background 0.15s ease;\n}\n\n.btn-split button:first-child {\n  border-radius: 10px 0 0 10px;\n}\n\n.btn-split button:last-child {\n  padding-inline: 12px;\n  border-left: 1px solid rgba(255, 255, 255, 0.28);\n  border-radius: 0 10px 10px 0;\n}\n\n.btn-split button:hover {\n  background: #115e59;\n}\n\n.btn-split button:focus-visible {\n  position: relative;\n  outline: 2px solid #0f766e;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "offset-frame-button",
      "name": "Offset Frame Button",
      "category": "buttons",
      "tags": [
        "offset",
        "frame",
        "border",
        "hover",
        "editorial"
      ],
      "description": "A solid button with an offset outline frame that snaps into place on hover.",
      "url": "https://copy-css.com/snippets/offset-frame-button",
      "markdown": "https://copy-css.com/snippets/offset-frame-button.md",
      "html": "<button class=\"btn-frame\">Read more</button>",
      "css": ".btn-frame {\n  position: relative;\n  padding: 14px 30px;\n  border: 0;\n  background: #86198f;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-frame::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border: 2px solid #86198f;\n  transform: translate(7px, 7px);\n  transition: transform 0.2s ease;\n  pointer-events: none;\n}\n\n.btn-frame:hover::after {\n  transform: translate(0, 0);\n}",
      "features": [
        "transitions",
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "neon-button",
      "name": "Neon Button",
      "category": "buttons",
      "tags": [
        "neon",
        "glow",
        "outline",
        "dark",
        "cyberpunk",
        "hover"
      ],
      "description": "An outlined neon button that glows softly and lights up fully on hover.",
      "url": "https://copy-css.com/snippets/neon-button",
      "markdown": "https://copy-css.com/snippets/neon-button.md",
      "html": "<button class=\"btn-neon\">Play now</button>",
      "css": ".btn-neon {\n  padding: 14px 34px;\n  border: 2px solid #22d3ee;\n  border-radius: 10px;\n  background: transparent;\n  color: #a5f3fc;\n  font: 700 15px/1 system-ui, sans-serif;\n  letter-spacing: 0.12em;\n  text-transform: uppercase;\n  text-shadow: 0 0 8px rgba(34, 211, 238, 0.8);\n  box-shadow:\n    0 0 12px rgba(34, 211, 238, 0.45),\n    inset 0 0 12px rgba(34, 211, 238, 0.35);\n  cursor: pointer;\n  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;\n}\n\n.btn-neon:hover {\n  background: #22d3ee;\n  color: #083344;\n  text-shadow: none;\n  box-shadow:\n    0 0 24px rgba(34, 211, 238, 0.9),\n    0 0 64px rgba(34, 211, 238, 0.5);\n}\n\n.btn-neon:focus-visible {\n  outline: 2px solid #a5f3fc;\n  outline-offset: 4px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "text shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "ripple-button",
      "name": "Ripple Button",
      "category": "buttons",
      "tags": [
        "ripple",
        "material",
        "click",
        "press",
        "feedback"
      ],
      "description": "A Material-style ripple that spreads from the center when you click. Pure CSS, no JavaScript.",
      "url": "https://copy-css.com/snippets/ripple-button",
      "markdown": "https://copy-css.com/snippets/ripple-button.md",
      "html": "<button class=\"btn-ripple\">Click me</button>",
      "css": ".btn-ripple {\n  --c: #7c3aed;\n  padding: 14px 32px;\n  border: 0;\n  border-radius: 10px;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  background: var(--c) radial-gradient(circle, transparent 1%, var(--c) 1%) center / 15000%;\n  box-shadow: 0 6px 16px -6px rgba(124, 58, 237, 0.6);\n  cursor: pointer;\n  transition: background 0.8s;\n}\n\n.btn-ripple:hover {\n  --c: #6d28d9;\n}\n\n/* The ripple: shrink the gradient instantly, then let it grow back */\n.btn-ripple:active {\n  background-color: #c4b5fd;\n  background-size: 100%;\n  transition: background 0s;\n}\n\n.btn-ripple:focus-visible {\n  outline: 2px solid #7c3aed;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "radial gradients",
        "box shadows",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--c",
          "value": "#7c3aed"
        }
      ]
    },
    {
      "id": "draw-border-button",
      "name": "Draw Border Button",
      "category": "buttons",
      "tags": [
        "border",
        "draw",
        "outline",
        "hover",
        "animation",
        "line"
      ],
      "description": "A border that draws itself around the button, one side after another, on hover.",
      "url": "https://copy-css.com/snippets/draw-border-button",
      "markdown": "https://copy-css.com/snippets/draw-border-button.md",
      "html": "<button class=\"btn-draw\">Hover me</button>",
      "css": ".btn-draw {\n  position: relative;\n  padding: 14px 32px;\n  border: 0;\n  background: transparent;\n  box-shadow: inset 0 0 0 2px #e2e8f0;\n  color: #0f172a;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-draw::before,\n.btn-draw::after {\n  content: \"\";\n  position: absolute;\n  box-sizing: border-box;\n  width: 0;\n  height: 0;\n  border: 2px solid transparent;\n}\n\n.btn-draw::before {\n  top: 0;\n  left: 0;\n}\n\n.btn-draw::after {\n  right: 0;\n  bottom: 0;\n}\n\n.btn-draw:hover::before,\n.btn-draw:hover::after,\n.btn-draw:focus-visible::before,\n.btn-draw:focus-visible::after {\n  width: 100%;\n  height: 100%;\n}\n\n/* Top, then right... */\n.btn-draw:hover::before,\n.btn-draw:focus-visible::before {\n  border-top-color: #6366f1;\n  border-right-color: #6366f1;\n  transition: width 0.2s ease-out, height 0.2s ease-out 0.2s;\n}\n\n/* ...then bottom, then left */\n.btn-draw:hover::after,\n.btn-draw:focus-visible::after {\n  border-bottom-color: #6366f1;\n  border-left-color: #6366f1;\n  transition: border-color 0s 0.4s, width 0.2s ease-out 0.4s, height 0.2s ease-out 0.6s;\n}\n\n.btn-draw:focus-visible {\n  outline: none;\n}",
      "features": [
        "transitions",
        "box shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "clay-button",
      "name": "Clay Button",
      "category": "buttons",
      "tags": [
        "claymorphism",
        "clay",
        "3d",
        "soft",
        "puffy",
        "inset"
      ],
      "description": "A puffy claymorphism button made from inner highlights, inner shade and a soft drop shadow.",
      "url": "https://copy-css.com/snippets/clay-button",
      "markdown": "https://copy-css.com/snippets/clay-button.md",
      "html": "<button class=\"btn-clay\">Let’s play</button>",
      "css": ".btn-clay {\n  padding: 16px 34px;\n  border: 0;\n  border-radius: 20px;\n  background: #a78bfa;\n  color: #fff;\n  font: 700 16px/1 system-ui, sans-serif;\n  text-shadow: 0 1px 1px rgba(76, 29, 149, 0.4);\n  box-shadow:\n    inset 0 -6px 10px rgba(76, 29, 149, 0.35),\n    inset 0 6px 10px rgba(255, 255, 255, 0.45),\n    0 12px 24px -8px rgba(124, 58, 237, 0.55);\n  cursor: pointer;\n  transition: transform 0.15s ease, box-shadow 0.15s ease;\n}\n\n.btn-clay:hover {\n  transform: translateY(-2px);\n  box-shadow:\n    inset 0 -6px 10px rgba(76, 29, 149, 0.35),\n    inset 0 6px 10px rgba(255, 255, 255, 0.45),\n    0 16px 30px -8px rgba(124, 58, 237, 0.6);\n}\n\n.btn-clay:active {\n  transform: translateY(1px) scale(0.98);\n  box-shadow:\n    inset 0 -3px 8px rgba(76, 29, 149, 0.35),\n    inset 0 4px 8px rgba(255, 255, 255, 0.4),\n    0 6px 12px -6px rgba(124, 58, 237, 0.5);\n}\n\n.btn-clay:focus-visible {\n  outline: 2px solid #7c3aed;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "text shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "animated-gradient-button",
      "name": "Animated Gradient Button",
      "category": "buttons",
      "tags": [
        "moving",
        "background-position",
        "colorful",
        "cta",
        "hover"
      ],
      "description": "A pill button whose multi-color gradient drifts slowly and speeds up when you hover it.",
      "url": "https://copy-css.com/snippets/animated-gradient-button",
      "markdown": "https://copy-css.com/snippets/animated-gradient-button.md",
      "html": "<button class=\"btn-shift\">Start creating</button>",
      "css": ".btn-shift {\n  padding: 14px 32px;\n  border: 0;\n  border-radius: 999px;\n  background: linear-gradient(90deg, #c2410c, #db2777, #7c3aed, #c2410c);\n  background-size: 300% 100%;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  animation: btn-shift-move 8s linear infinite;\n}\n\n.btn-shift:hover {\n  animation-duration: 2.5s;\n}\n\n.btn-shift:focus-visible {\n  outline: 3px solid #7c3aed;\n  outline-offset: 3px;\n}\n\n@keyframes btn-shift-move {\n  to { background-position: 300% 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-shift { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "jelly-button",
      "name": "Jelly Button",
      "category": "buttons",
      "tags": [
        "squish",
        "elastic",
        "bounce",
        "playful",
        "hover"
      ],
      "description": "A playful button that squashes and stretches like jelly when hovered or focused.",
      "url": "https://copy-css.com/snippets/jelly-button",
      "markdown": "https://copy-css.com/snippets/jelly-button.md",
      "html": "<button class=\"btn-jelly\">Boing!</button>",
      "css": ".btn-jelly {\n  padding: 14px 34px;\n  border: 0;\n  border-radius: 16px;\n  background: #e11d48;\n  color: #fff;\n  font: 700 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-jelly:hover,\n.btn-jelly:focus-visible {\n  animation: btn-jelly-squish 0.6s ease;\n}\n\n.btn-jelly:focus-visible {\n  outline: 3px solid #e11d48;\n  outline-offset: 4px;\n}\n\n@keyframes btn-jelly-squish {\n  0%, 100% { transform: scale(1, 1); }\n  25% { transform: scale(1.15, 0.85); }\n  50% { transform: scale(0.9, 1.1); }\n  75% { transform: scale(1.05, 0.95); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-jelly:hover,\n  .btn-jelly:focus-visible { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "skewed-button",
      "name": "Skewed Button",
      "category": "buttons",
      "tags": [
        "parallelogram",
        "slanted",
        "sporty",
        "uppercase",
        "hover"
      ],
      "description": "A sporty slanted button that straightens out and changes color on hover, with upright text.",
      "url": "https://copy-css.com/snippets/skewed-button",
      "markdown": "https://copy-css.com/snippets/skewed-button.md",
      "html": "<button class=\"btn-skew\">Play now</button>",
      "css": ".btn-skew {\n  position: relative;\n  isolation: isolate;\n  padding: 15px 36px;\n  border: 0;\n  background: transparent;\n  color: #fff;\n  font: 800 15px/1 system-ui, sans-serif;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n  cursor: pointer;\n}\n\n/* Only the background is skewed, so the text stays upright */\n.btn-skew::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: #0f172a;\n  transform: skewX(-16deg);\n  transition: transform 0.25s ease, background-color 0.25s ease;\n}\n\n.btn-skew:hover::before {\n  background: #2563eb;\n  transform: skewX(0);\n}\n\n.btn-skew:focus-visible {\n  outline: 3px solid #2563eb;\n  outline-offset: 4px;\n}",
      "features": [
        "transitions",
        "transforms",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "circle-reveal-button",
      "name": "Circle Reveal Button",
      "category": "buttons",
      "tags": [
        "clip-path",
        "radial",
        "expand",
        "fill",
        "hover"
      ],
      "description": "An outlined button that fills with a circle growing out from its center on hover.",
      "url": "https://copy-css.com/snippets/circle-reveal-button",
      "markdown": "https://copy-css.com/snippets/circle-reveal-button.md",
      "html": "<button class=\"btn-reveal\">Discover more</button>",
      "css": ".btn-reveal {\n  position: relative;\n  isolation: isolate;\n  overflow: hidden;\n  padding: 14px 32px;\n  border: 2px solid #0f766e;\n  border-radius: 12px;\n  background: #fff;\n  color: #0f766e;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: color 0.4s ease;\n}\n\n.btn-reveal::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: #0f766e;\n  clip-path: circle(0% at 50% 50%);\n  transition: clip-path 0.45s ease;\n}\n\n.btn-reveal:hover,\n.btn-reveal:focus-visible {\n  color: #fff;\n}\n\n.btn-reveal:hover::before,\n.btn-reveal:focus-visible::before {\n  clip-path: circle(100% at 50% 50%);\n}\n\n.btn-reveal:focus-visible {\n  outline: 3px solid #5eead4;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "clip paths",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "stacked-layers-button",
      "name": "Stacked Layers Button",
      "category": "buttons",
      "tags": [
        "offset",
        "depth",
        "playful",
        "retro",
        "box-shadow"
      ],
      "description": "A bold outlined button that fans out two colored layers behind it on hover, then snaps flat on click.",
      "url": "https://copy-css.com/snippets/stacked-layers-button",
      "markdown": "https://copy-css.com/snippets/stacked-layers-button.md",
      "html": "<button class=\"btn-stack\">Join the club</button>",
      "css": ".btn-stack {\n  padding: 14px 32px;\n  border: 2px solid #111827;\n  border-radius: 10px;\n  background: #fde047;\n  color: #111827;\n  font: 700 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  /* Each layer = a colored shadow inset by 2px over a dark one (the outline) */\n  box-shadow:\n    0 0 0 -2px #f472b6, 0 0 0 0 #111827,\n    0 0 0 -2px #60a5fa, 0 0 0 0 #111827;\n  transition: box-shadow 0.2s ease;\n}\n\n.btn-stack:hover,\n.btn-stack:focus-visible {\n  box-shadow:\n    5px 5px 0 -2px #f472b6, 5px 5px 0 0 #111827,\n    10px 10px 0 -2px #60a5fa, 10px 10px 0 0 #111827;\n}\n\n.btn-stack:active {\n  box-shadow:\n    0 0 0 -2px #f472b6, 0 0 0 0 #111827,\n    0 0 0 -2px #60a5fa, 0 0 0 0 #111827;\n}\n\n.btn-stack:focus-visible {\n  outline: 3px solid #2563eb;\n  outline-offset: 14px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "spinning-border-button",
      "name": "Spinning Border Button",
      "category": "buttons",
      "tags": [
        "conic-gradient",
        "rotating",
        "glow",
        "dark",
        "ai"
      ],
      "description": "A dark button with a beam of light that travels around its border, the look used for AI features.",
      "url": "https://copy-css.com/snippets/spinning-border-button",
      "markdown": "https://copy-css.com/snippets/spinning-border-button.md",
      "html": "<button class=\"btn-spin-border\">Ask AI</button>",
      "css": ".btn-spin-border {\n  position: relative;\n  isolation: isolate;\n  overflow: hidden;\n  padding: 14px 34px;\n  border: 0;\n  border-radius: 12px;\n  background: #1e293b;\n  color: #e2e8f0;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n/* A large rotating conic gradient, clipped by the button */\n.btn-spin-border::before {\n  content: \"\";\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  z-index: -2;\n  width: 200%;\n  aspect-ratio: 1;\n  background: conic-gradient(#0000 0 65%, #38bdf8, #a78bfa, #0000 95%);\n  transform: translate(-50%, -50%);\n  animation: btn-spin-border-rotate 3s linear infinite;\n}\n\n/* The inner fill covers everything except a 2px ring */\n.btn-spin-border::after {\n  content: \"\";\n  position: absolute;\n  inset: 2px;\n  z-index: -1;\n  border-radius: 10px;\n  background: #0b1120;\n}\n\n.btn-spin-border:focus-visible {\n  outline: 2px solid #38bdf8;\n  outline-offset: 3px;\n}\n\n@keyframes btn-spin-border-rotate {\n  to { transform: translate(-50%, -50%) rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-spin-border::before { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "conic gradients",
        "aspect-ratio",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "3d-flip-button",
      "name": "3D Flip Button",
      "category": "buttons",
      "tags": [
        "rotate",
        "perspective",
        "cube",
        "reveal",
        "hover"
      ],
      "description": "A button that flips over in 3D on hover to show a second label on its back face.",
      "url": "https://copy-css.com/snippets/3d-flip-button",
      "markdown": "https://copy-css.com/snippets/3d-flip-button.md",
      "html": "<button class=\"btn-flip\">\n  <span class=\"btn-flip-front\">Get started</span>\n  <span class=\"btn-flip-back\" aria-hidden=\"true\">Let’s go →</span>\n</button>",
      "css": ".btn-flip {\n  position: relative;\n  padding: 0;\n  border: 0;\n  border-radius: 12px;\n  background: none;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  perspective: 600px;\n}\n\n.btn-flip-front,\n.btn-flip-back {\n  display: grid;\n  place-items: center;\n  padding: 15px 34px;\n  border-radius: 12px;\n  color: #fff;\n  backface-visibility: hidden;\n  -webkit-backface-visibility: hidden;\n  transition: transform 0.5s ease;\n}\n\n.btn-flip-front {\n  background: #4f46e5;\n}\n\n.btn-flip-back {\n  position: absolute;\n  inset: 0;\n  padding: 0;\n  background: #0f172a;\n  transform: rotateX(-180deg);\n}\n\n.btn-flip:hover .btn-flip-front,\n.btn-flip:focus-visible .btn-flip-front {\n  transform: rotateX(180deg);\n}\n\n.btn-flip:hover .btn-flip-back,\n.btn-flip:focus-visible .btn-flip-back {\n  transform: rotateX(0);\n}\n\n.btn-flip:focus-visible {\n  outline: 3px solid #4f46e5;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-flip-front,\n  .btn-flip-back { transition: none; }\n}",
      "features": [
        "transitions",
        "3D transforms",
        "transforms",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "isometric-button",
      "name": "Isometric Button",
      "category": "buttons",
      "tags": [
        "3d",
        "extrude",
        "skew",
        "depth",
        "press"
      ],
      "description": "An isometric block button with skewed side faces that pushes into the page when clicked.",
      "url": "https://copy-css.com/snippets/isometric-button",
      "markdown": "https://copy-css.com/snippets/isometric-button.md",
      "html": "<button class=\"btn-iso\">Build it</button>",
      "css": ".btn-iso {\n  --depth: 8px;\n  position: relative;\n  padding: 15px 34px;\n  border: 0;\n  background: #f59e0b;\n  color: #1c1917;\n  font: 800 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: transform 0.12s ease;\n}\n\n/* Bottom face */\n.btn-iso::before {\n  content: \"\";\n  position: absolute;\n  top: 100%;\n  left: 0;\n  width: 100%;\n  height: var(--depth);\n  background: #b45309;\n  transform: skewX(45deg);\n  transform-origin: top;\n  transition: height 0.12s ease;\n}\n\n/* Right face */\n.btn-iso::after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 100%;\n  width: var(--depth);\n  height: 100%;\n  background: #d97706;\n  transform: skewY(45deg);\n  transform-origin: left;\n  transition: width 0.12s ease;\n}\n\n.btn-iso:active {\n  transform: translate(var(--depth), var(--depth));\n}\n\n.btn-iso:active::before {\n  height: 0;\n}\n\n.btn-iso:active::after {\n  width: 0;\n}\n\n.btn-iso:focus-visible {\n  outline: 3px solid #1c1917;\n  outline-offset: 14px;\n}",
      "features": [
        "transitions",
        "transforms",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--depth",
          "value": "8px"
        }
      ]
    },
    {
      "id": "arcade-button",
      "name": "Arcade Button",
      "category": "buttons",
      "tags": [
        "round",
        "retro",
        "game",
        "glossy",
        "press"
      ],
      "description": "A glossy round arcade button that sinks into its base when you press it.",
      "url": "https://copy-css.com/snippets/arcade-button",
      "markdown": "https://copy-css.com/snippets/arcade-button.md",
      "html": "<button class=\"btn-arcade\">Push</button>",
      "css": ".btn-arcade {\n  width: 96px;\n  height: 96px;\n  border: 0;\n  border-radius: 50%;\n  background: radial-gradient(circle at 35% 30%, #f87171 0 12%, #dc2626 45%, #b91c1c 100%);\n  color: #fff;\n  font: 800 14px/1 system-ui, sans-serif;\n  letter-spacing: 0.12em;\n  text-transform: uppercase;\n  text-shadow: 0 1px 0 #7f1d1d;\n  box-shadow:\n    0 8px 0 #7f1d1d,\n    0 8px 0 6px #111827,\n    0 16px 20px 6px #00000080;\n  cursor: pointer;\n  transition: transform 0.08s ease, box-shadow 0.08s ease;\n}\n\n.btn-arcade:active {\n  transform: translateY(6px);\n  box-shadow:\n    0 2px 0 #7f1d1d,\n    0 2px 0 6px #111827,\n    0 8px 12px 6px #00000080;\n}\n\n.btn-arcade:focus-visible {\n  outline: 3px solid #fde047;\n  outline-offset: 12px;\n}",
      "features": [
        "transitions",
        "transforms",
        "radial gradients",
        "box shadows",
        "text shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "retro-bevel-button",
      "name": "Retro Bevel Button",
      "category": "buttons",
      "tags": [
        "windows 95",
        "classic",
        "inset",
        "pixel",
        "vintage"
      ],
      "description": "A classic Windows 95 style gray button with beveled edges that invert when pressed.",
      "url": "https://copy-css.com/snippets/retro-bevel-button",
      "markdown": "https://copy-css.com/snippets/retro-bevel-button.md",
      "html": "<button class=\"btn-bevel\">OK</button>",
      "css": ".btn-bevel {\n  min-width: 88px;\n  padding: 7px 20px;\n  border: 0;\n  border-radius: 0;\n  background: #c0c0c0;\n  color: #000;\n  font: 14px/1.2 Tahoma, \"MS Sans Serif\", Geneva, sans-serif;\n  box-shadow:\n    inset -1px -1px #0a0a0a,\n    inset 1px 1px #fff,\n    inset -2px -2px #808080,\n    inset 2px 2px #dfdfdf;\n  cursor: pointer;\n}\n\n.btn-bevel:active {\n  padding: 8px 19px 6px 21px;\n  box-shadow:\n    inset -1px -1px #fff,\n    inset 1px 1px #0a0a0a,\n    inset -2px -2px #dfdfdf,\n    inset 2px 2px #808080;\n}\n\n.btn-bevel:focus-visible {\n  outline: 1px dotted #000;\n  outline-offset: -5px;\n}",
      "features": [
        "box shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "glossy-button",
      "name": "Glossy Button",
      "category": "buttons",
      "tags": [
        "aqua",
        "gel",
        "web 2.0",
        "shiny",
        "skeuomorphic"
      ],
      "description": "A shiny gel pill button with a glass highlight on top, inspired by early-2000s interfaces.",
      "url": "https://copy-css.com/snippets/glossy-button",
      "markdown": "https://copy-css.com/snippets/glossy-button.md",
      "html": "<button class=\"btn-glossy\">Download</button>",
      "css": ".btn-glossy {\n  position: relative;\n  padding: 15px 40px;\n  border: 1px solid #1e40af;\n  border-radius: 999px;\n  background: linear-gradient(#3b82f6, #1d4ed8 60%, #1e40af);\n  color: #fff;\n  font: 700 16px/1 system-ui, sans-serif;\n  text-shadow: 0 -1px 0 #1e3a8a;\n  box-shadow:\n    inset 0 -3px 6px #60a5fa,\n    0 6px 12px -4px #1e40af;\n  cursor: pointer;\n  transition: filter 0.2s ease;\n}\n\n/* The glass highlight */\n.btn-glossy::before {\n  content: \"\";\n  position: absolute;\n  top: 2px;\n  left: 10%;\n  right: 10%;\n  height: 42%;\n  border-radius: 999px;\n  background: linear-gradient(#ffffffb3, #ffffff14);\n  pointer-events: none;\n}\n\n.btn-glossy:hover {\n  filter: brightness(1.1) saturate(1.1);\n}\n\n.btn-glossy:active {\n  box-shadow:\n    inset 0 2px 6px #1e3a8a,\n    0 2px 6px -2px #1e40af;\n}\n\n.btn-glossy:focus-visible {\n  outline: 3px solid #1d4ed8;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "linear gradients",
        "box shadows",
        "text shadows",
        "filters",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "round-icon-button",
      "name": "Round Icon Button",
      "category": "buttons",
      "tags": [
        "icon only",
        "circle",
        "svg",
        "aria-label",
        "toolbar"
      ],
      "description": "Circular icon-only buttons in solid, soft and outline styles, each with an accessible label.",
      "url": "https://copy-css.com/snippets/round-icon-button",
      "markdown": "https://copy-css.com/snippets/round-icon-button.md",
      "html": "<button class=\"btn-icon\" aria-label=\"Add\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"/></svg>\n</button>\n<button class=\"btn-icon btn-icon-soft\" aria-label=\"Search\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/></svg>\n</button>\n<button class=\"btn-icon btn-icon-outline\" aria-label=\"Notifications\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\"/><path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\"/></svg>\n</button>",
      "css": ".btn-icon {\n  display: inline-grid;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  padding: 0;\n  border: 1.5px solid transparent;\n  border-radius: 50%;\n  background: #4f46e5;\n  color: #fff;\n  cursor: pointer;\n  transition: background-color 0.2s ease, transform 0.2s ease;\n}\n\n.btn-icon svg {\n  width: 22px;\n  height: 22px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.btn-icon:hover {\n  background: #4338ca;\n}\n\n.btn-icon:active {\n  transform: scale(0.94);\n}\n\n.btn-icon-soft {\n  background: #eef2ff;\n  color: #4338ca;\n}\n\n.btn-icon-soft:hover {\n  background: #e0e7ff;\n}\n\n.btn-icon-outline {\n  border-color: #d4d4d8;\n  background: #fff;\n  color: #3f3f46;\n}\n\n.btn-icon-outline:hover {\n  background: #f4f4f5;\n}\n\n.btn-icon:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "icon-label-button",
      "name": "Icon Label Button",
      "category": "buttons",
      "tags": [
        "leading icon",
        "trailing icon",
        "svg",
        "inline-flex",
        "action"
      ],
      "description": "Buttons with an SVG icon beside the label, perfectly aligned with flexbox and gap.",
      "url": "https://copy-css.com/snippets/icon-label-button",
      "markdown": "https://copy-css.com/snippets/icon-label-button.md",
      "html": "<button class=\"btn-icon-label\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"/></svg>\n  New project\n</button>\n<button class=\"btn-icon-label btn-icon-label-light\">\n  Export\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 3v12\"/><path d=\"m7 10 5 5 5-5\"/><path d=\"M5 21h14\"/></svg>\n</button>",
      "css": ".btn-icon-label {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  padding: 12px 20px;\n  border: 1px solid transparent;\n  border-radius: 10px;\n  background: #0f172a;\n  color: #fff;\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background-color 0.2s ease;\n}\n\n.btn-icon-label svg {\n  flex: none;\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.btn-icon-label:hover {\n  background: #1e293b;\n}\n\n.btn-icon-label-light {\n  border-color: #cbd5e1;\n  background: #fff;\n  color: #0f172a;\n}\n\n.btn-icon-label-light:hover {\n  background: #f1f5f9;\n}\n\n.btn-icon-label:focus-visible {\n  outline: 2px solid #0f172a;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "expanding-icon-button",
      "name": "Expanding Icon Button",
      "category": "buttons",
      "tags": [
        "reveal label",
        "compact",
        "circle",
        "width",
        "hover"
      ],
      "description": "A compact round icon button that slides open to reveal its text label on hover or focus.",
      "url": "https://copy-css.com/snippets/expanding-icon-button",
      "markdown": "https://copy-css.com/snippets/expanding-icon-button.md",
      "html": "<button class=\"btn-expand\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"/></svg>\n  <span class=\"btn-expand-label\">Add item</span>\n</button>",
      "css": ".btn-expand {\n  display: inline-flex;\n  align-items: center;\n  height: 48px;\n  padding: 0 13px;\n  border: 0;\n  border-radius: 999px;\n  background: #18181b;\n  color: #fff;\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: padding 0.35s ease;\n}\n\n.btn-expand svg {\n  flex: none;\n  width: 22px;\n  height: 22px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.2;\n  stroke-linecap: round;\n}\n\n/* The label stays in the accessibility tree, it is only clipped */\n.btn-expand-label {\n  max-width: 0;\n  overflow: hidden;\n  white-space: nowrap;\n  opacity: 0;\n  transition: max-width 0.35s ease, margin 0.35s ease, opacity 0.2s ease;\n}\n\n.btn-expand:hover,\n.btn-expand:focus-visible {\n  padding-right: 20px;\n}\n\n.btn-expand:hover .btn-expand-label,\n.btn-expand:focus-visible .btn-expand-label {\n  max-width: 140px;\n  margin-left: 8px;\n  opacity: 1;\n}\n\n.btn-expand:focus-visible {\n  outline: 2px solid #18181b;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "download-button",
      "name": "Download Button",
      "category": "buttons",
      "tags": [
        "file",
        "arrow",
        "file size",
        "bounce",
        "cta"
      ],
      "description": "A download button with an icon badge, file type and size, and an arrow that bounces on hover.",
      "url": "https://copy-css.com/snippets/download-button",
      "markdown": "https://copy-css.com/snippets/download-button.md",
      "html": "<button class=\"btn-download\" type=\"button\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n    <g class=\"btn-download-arrow\"><path d=\"M12 4v10\"/><path d=\"m8 10 4 4 4-4\"/></g>\n    <path d=\"M5 19h14\"/>\n  </svg>\n  <span>Download <small>PDF · 2.4 MB</small></span>\n</button>",
      "css": ".btn-download {\n  display: inline-flex;\n  align-items: center;\n  gap: 12px;\n  padding: 8px 22px 8px 8px;\n  border: 0;\n  border-radius: 14px;\n  background: #047857;\n  color: #fff;\n  font: 600 16px/1.2 system-ui, sans-serif;\n  text-align: left;\n  cursor: pointer;\n  transition: background-color 0.2s ease;\n}\n\n.btn-download svg {\n  flex: none;\n  width: 40px;\n  height: 40px;\n  padding: 9px;\n  border-radius: 10px;\n  background: #065f46;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  box-sizing: border-box;\n}\n\n.btn-download small {\n  display: block;\n  font-size: 12px;\n  font-weight: 500;\n  color: #d1fae5;\n}\n\n.btn-download:hover {\n  background: #065f46;\n}\n\n.btn-download:hover .btn-download-arrow {\n  animation: btn-download-bounce 0.8s ease-in-out infinite;\n}\n\n.btn-download:focus-visible {\n  outline: 3px solid #047857;\n  outline-offset: 3px;\n}\n\n@keyframes btn-download-bounce {\n  50% { transform: translateY(3px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-download:hover .btn-download-arrow { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transitions",
        "transforms",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "floating-action-button",
      "name": "Floating Action Button",
      "category": "buttons",
      "tags": [
        "fab",
        "material",
        "plus",
        "fixed",
        "mobile"
      ],
      "description": "A Material-style floating action button pinned to the corner, with a plus icon that turns on hover.",
      "url": "https://copy-css.com/snippets/floating-action-button",
      "markdown": "https://copy-css.com/snippets/floating-action-button.md",
      "html": "<button class=\"btn-fab\" aria-label=\"Create new\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"/></svg>\n</button>",
      "css": ".btn-fab {\n  position: fixed;\n  right: 24px;\n  bottom: 24px;\n  z-index: 10;\n  display: grid;\n  place-items: center;\n  width: 56px;\n  height: 56px;\n  padding: 0;\n  border: 0;\n  border-radius: 16px;\n  background: #7c3aed;\n  color: #fff;\n  box-shadow:\n    0 4px 8px -2px #4c1d9566,\n    0 10px 24px -6px #7c3aed99;\n  cursor: pointer;\n  transition: box-shadow 0.2s ease, background-color 0.2s ease;\n}\n\n.btn-fab svg {\n  width: 26px;\n  height: 26px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.4;\n  stroke-linecap: round;\n  transition: transform 0.3s ease;\n}\n\n.btn-fab:hover {\n  background: #6d28d9;\n  box-shadow:\n    0 6px 12px -2px #4c1d9566,\n    0 16px 32px -8px #7c3aed99;\n}\n\n.btn-fab:hover svg {\n  transform: rotate(90deg);\n}\n\n.btn-fab:focus-visible {\n  outline: 3px solid #c4b5fd;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "close-button",
      "name": "Close Button",
      "category": "buttons",
      "tags": [
        "x icon",
        "dismiss",
        "modal",
        "dialog",
        "cross"
      ],
      "description": "An accessible X close button for modals, toasts and banners, with a soft hover background.",
      "url": "https://copy-css.com/snippets/close-button",
      "markdown": "https://copy-css.com/snippets/close-button.md",
      "html": "<button class=\"btn-close\" aria-label=\"Close\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M6 6l12 12M18 6 6 18\"/></svg>\n</button>",
      "css": ".btn-close {\n  display: inline-grid;\n  place-items: center;\n  width: 36px;\n  height: 36px;\n  padding: 0;\n  border: 0;\n  border-radius: 10px;\n  background: transparent;\n  color: #52525b;\n  cursor: pointer;\n  transition: background-color 0.15s ease, color 0.15s ease;\n}\n\n.btn-close svg {\n  width: 20px;\n  height: 20px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.2;\n  stroke-linecap: round;\n}\n\n.btn-close:hover {\n  background: #f4f4f5;\n  color: #18181b;\n}\n\n.btn-close:active {\n  background: #e4e4e7;\n}\n\n.btn-close:focus-visible {\n  outline: 2px solid #18181b;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "spinner-overlay-button",
      "name": "Spinner Overlay Button",
      "category": "buttons",
      "tags": [
        "loading",
        "aria-busy",
        "no layout shift",
        "submit",
        "state"
      ],
      "description": "A loading button that swaps its label for a centered spinner without changing width, driven by aria-busy.",
      "url": "https://copy-css.com/snippets/spinner-overlay-button",
      "markdown": "https://copy-css.com/snippets/spinner-overlay-button.md",
      "html": "<button class=\"btn-busy\">Save changes</button>\n<button class=\"btn-busy\" aria-busy=\"true\">Save changes</button>",
      "css": ".btn-busy {\n  position: relative;\n  padding: 14px 28px;\n  border: 0;\n  border-radius: 10px;\n  background: #4f46e5;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-busy:hover {\n  background: #4338ca;\n}\n\n/* The label keeps its space, so the button never changes size */\n.btn-busy[aria-busy=\"true\"] {\n  color: transparent;\n  pointer-events: none;\n}\n\n.btn-busy[aria-busy=\"true\"]::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  width: 18px;\n  height: 18px;\n  margin: auto;\n  border: 2.5px solid #ffffff66;\n  border-top-color: #fff;\n  border-radius: 50%;\n  animation: btn-busy-spin 0.7s linear infinite;\n}\n\n.btn-busy:focus-visible {\n  outline: 3px solid #a5b4fc;\n  outline-offset: 3px;\n}\n\n@keyframes btn-busy-spin {\n  to { transform: rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-busy[aria-busy=\"true\"]::after { animation-duration: 2s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "progress-button",
      "name": "Progress Button",
      "category": "buttons",
      "tags": [
        "upload",
        "fill",
        "percentage",
        "loading",
        "custom property"
      ],
      "description": "A button that fills from left to right to show upload progress, set with one custom property.",
      "url": "https://copy-css.com/snippets/progress-button",
      "markdown": "https://copy-css.com/snippets/progress-button.md",
      "html": "<button class=\"btn-progress\" style=\"--progress: 65%\" aria-busy=\"true\">Uploading… 65%</button>",
      "css": ".btn-progress {\n  --progress: 0%;\n  position: relative;\n  isolation: isolate;\n  overflow: hidden;\n  min-width: 220px;\n  padding: 14px 28px;\n  border: 0;\n  border-radius: 10px;\n  background: #1e3a8a;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  font-variant-numeric: tabular-nums;\n  cursor: pointer;\n}\n\n.btn-progress::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  width: var(--progress);\n  background: #2563eb;\n  transition: width 0.3s ease;\n}\n\n.btn-progress[aria-busy=\"true\"] {\n  cursor: progress;\n}\n\n.btn-progress:focus-visible {\n  outline: 3px solid #2563eb;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--progress",
          "value": "0%"
        }
      ]
    },
    {
      "id": "loading-dots-button",
      "name": "Loading Dots Button",
      "category": "buttons",
      "tags": [
        "three dots",
        "pending",
        "aria-busy",
        "submit",
        "sending"
      ],
      "description": "A pill button that shows three bouncing dots after its label while a request is pending.",
      "url": "https://copy-css.com/snippets/loading-dots-button",
      "markdown": "https://copy-css.com/snippets/loading-dots-button.md",
      "html": "<button class=\"btn-dots\" aria-busy=\"true\">\n  Sending\n  <span class=\"btn-dots-anim\" aria-hidden=\"true\"><span></span><span></span><span></span></span>\n</button>",
      "css": ".btn-dots {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  padding: 14px 28px;\n  border: 0;\n  border-radius: 999px;\n  background: #18181b;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-dots-anim {\n  display: none;\n  gap: 4px;\n}\n\n.btn-dots[aria-busy=\"true\"] {\n  cursor: progress;\n}\n\n.btn-dots[aria-busy=\"true\"] .btn-dots-anim {\n  display: inline-flex;\n}\n\n.btn-dots-anim span {\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  background: currentColor;\n  animation: btn-dots-bounce 1s ease-in-out infinite;\n}\n\n.btn-dots-anim span:nth-child(2) {\n  animation-delay: 0.15s;\n}\n\n.btn-dots-anim span:nth-child(3) {\n  animation-delay: 0.3s;\n}\n\n.btn-dots:focus-visible {\n  outline: 3px solid #18181b;\n  outline-offset: 3px;\n}\n\n@keyframes btn-dots-bounce {\n  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }\n  30% { transform: translateY(-5px); opacity: 1; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-dots-anim span { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "success-state-button",
      "name": "Success State Button",
      "category": "buttons",
      "tags": [
        "checkmark",
        "done",
        "submitted",
        "feedback",
        "confirmation"
      ],
      "description": "A submit button that turns green and draws a checkmark when its data-state is set to done.",
      "url": "https://copy-css.com/snippets/success-state-button",
      "markdown": "https://copy-css.com/snippets/success-state-button.md",
      "html": "<button class=\"btn-success\" type=\"button\">Submit</button>\n<button class=\"btn-success\" type=\"button\" data-state=\"done\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M5 12.5l4.5 4.5L19 7.5\"/></svg>\n  Submitted\n</button>",
      "css": ".btn-success {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  padding: 14px 28px;\n  border: 0;\n  border-radius: 10px;\n  background: #2563eb;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background-color 0.3s ease;\n}\n\n.btn-success svg {\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 3;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-dasharray: 24;\n}\n\n.btn-success[data-state=\"done\"] {\n  background: #15803d;\n  animation: btn-success-pop 0.35s ease;\n}\n\n.btn-success[data-state=\"done\"] svg {\n  animation: btn-success-draw 0.4s 0.15s ease-out backwards;\n}\n\n.btn-success:focus-visible {\n  outline: 3px solid #93c5fd;\n  outline-offset: 3px;\n}\n\n@keyframes btn-success-pop {\n  50% { transform: scale(1.06); }\n}\n\n@keyframes btn-success-draw {\n  from { stroke-dashoffset: 24; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-success[data-state=\"done\"],\n  .btn-success[data-state=\"done\"] svg { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transitions",
        "transforms",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "striped-processing-button",
      "name": "Striped Processing Button",
      "category": "buttons",
      "tags": [
        "barber pole",
        "pending",
        "busy",
        "payment",
        "animated stripes"
      ],
      "description": "A button with moving diagonal stripes that signal a payment or task is still processing.",
      "url": "https://copy-css.com/snippets/striped-processing-button",
      "markdown": "https://copy-css.com/snippets/striped-processing-button.md",
      "html": "<button class=\"btn-stripes\" aria-busy=\"true\">Processing payment…</button>",
      "css": ".btn-stripes {\n  padding: 14px 28px;\n  border: 0;\n  border-radius: 10px;\n  background-color: #6d28d9;\n  color: #fff;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.btn-stripes[aria-busy=\"true\"] {\n  background-image: linear-gradient(\n    -45deg,\n    #7c3aed 25%, #6d28d9 25% 50%,\n    #7c3aed 50% 75%, #6d28d9 75%\n  );\n  background-size: 32px 32px;\n  cursor: progress;\n  animation: btn-stripes-move 0.8s linear infinite;\n}\n\n.btn-stripes:focus-visible {\n  outline: 3px solid #a78bfa;\n  outline-offset: 3px;\n}\n\n@keyframes btn-stripes-move {\n  to { background-position: 32px 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-stripes[aria-busy=\"true\"] { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "ghost-button",
      "name": "Ghost Button",
      "category": "buttons",
      "tags": [
        "transparent",
        "secondary",
        "hero",
        "currentcolor",
        "subtle"
      ],
      "description": "A transparent ghost button that takes its border and hover tint from currentColor, so it suits any background.",
      "url": "https://copy-css.com/snippets/ghost-button",
      "markdown": "https://copy-css.com/snippets/ghost-button.md",
      "html": "<button class=\"btn-ghost\">Learn more</button>",
      "css": ".btn-ghost {\n  padding: 13px 30px;\n  border: 1.5px solid color-mix(in srgb, currentColor 40%, transparent);\n  border-radius: 10px;\n  background: transparent;\n  color: #f8fafc;\n  font: 600 16px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background-color 0.2s ease, border-color 0.2s ease;\n}\n\n.btn-ghost:hover {\n  border-color: currentColor;\n  background: color-mix(in srgb, currentColor 10%, transparent);\n}\n\n.btn-ghost:active {\n  background: color-mix(in srgb, currentColor 18%, transparent);\n}\n\n.btn-ghost:focus-visible {\n  outline: 2px solid currentColor;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "outline-button-set",
      "name": "Outline Button Set",
      "category": "buttons",
      "tags": [
        "outlined",
        "primary",
        "danger",
        "variants",
        "custom property"
      ],
      "description": "Outlined buttons in primary, neutral and danger colors that fill solid on hover, themed with one variable.",
      "url": "https://copy-css.com/snippets/outline-button-set",
      "markdown": "https://copy-css.com/snippets/outline-button-set.md",
      "html": "<button class=\"btn-outline\">Save</button>\n<button class=\"btn-outline btn-outline-neutral\">Cancel</button>\n<button class=\"btn-outline btn-outline-danger\">Delete</button>",
      "css": ".btn-outline {\n  --btn-color: #2563eb;\n  padding: 12px 24px;\n  border: 2px solid var(--btn-color);\n  border-radius: 10px;\n  background: transparent;\n  color: var(--btn-color);\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background-color 0.2s ease, color 0.2s ease;\n}\n\n.btn-outline:hover {\n  background: var(--btn-color);\n  color: #fff;\n}\n\n.btn-outline:focus-visible {\n  outline: 3px solid var(--btn-color);\n  outline-offset: 3px;\n}\n\n.btn-outline-neutral {\n  --btn-color: #3f3f46;\n}\n\n.btn-outline-danger {\n  --btn-color: #dc2626;\n}",
      "features": [
        "transitions",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--btn-color",
          "value": "#2563eb"
        }
      ]
    },
    {
      "id": "dashed-add-button",
      "name": "Dashed Add Button",
      "category": "buttons",
      "tags": [
        "dashed border",
        "plus",
        "empty state",
        "new item",
        "placeholder"
      ],
      "description": "A wide dashed placeholder button for adding a new item to a list, board or empty state.",
      "url": "https://copy-css.com/snippets/dashed-add-button",
      "markdown": "https://copy-css.com/snippets/dashed-add-button.md",
      "html": "<button class=\"btn-dashed\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 5v14M5 12h14\"/></svg>\n  Add new card\n</button>",
      "css": ".btn-dashed {\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  gap: 8px;\n  width: 260px;\n  padding: 18px;\n  border: 2px dashed #cbd5e1;\n  border-radius: 14px;\n  background: transparent;\n  color: #475569;\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;\n}\n\n.btn-dashed svg {\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.4;\n  stroke-linecap: round;\n}\n\n.btn-dashed:hover {\n  border-color: #6366f1;\n  background: #eef2ff;\n  color: #4338ca;\n}\n\n.btn-dashed:focus-visible {\n  outline: 2px solid #6366f1;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "double-border-button",
      "name": "Double Border Button",
      "category": "buttons",
      "tags": [
        "outline-offset",
        "elegant",
        "serif",
        "luxury",
        "ring"
      ],
      "description": "An elegant outlined button with a second thin ring that closes in and fills on hover.",
      "url": "https://copy-css.com/snippets/double-border-button",
      "markdown": "https://copy-css.com/snippets/double-border-button.md",
      "html": "<button class=\"btn-double\">Book a table</button>",
      "css": ".btn-double {\n  padding: 15px 34px;\n  border: 1.5px solid #9f1239;\n  border-radius: 2px;\n  background: transparent;\n  color: #9f1239;\n  font: 600 14px/1 Georgia, \"Times New Roman\", serif;\n  letter-spacing: 0.12em;\n  text-transform: uppercase;\n  white-space: nowrap;\n  outline: 1px solid #9f1239;\n  outline-offset: 5px;\n  cursor: pointer;\n  transition: outline-offset 0.3s ease, background-color 0.3s ease, color 0.3s ease;\n}\n\n.btn-double:hover {\n  outline-offset: 0;\n  background: #9f1239;\n  color: #fff;\n}\n\n.btn-double:focus-visible {\n  outline: 2px solid #e11d48;\n  outline-offset: 8px;\n}",
      "features": [
        "transitions",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "text-link-button",
      "name": "Text Link Button",
      "category": "buttons",
      "tags": [
        "tertiary",
        "underline",
        "minimal",
        "arrow",
        "subtle"
      ],
      "description": "A minimal tertiary button styled like a link, with an underline that tightens and an arrow that nudges.",
      "url": "https://copy-css.com/snippets/text-link-button",
      "markdown": "https://copy-css.com/snippets/text-link-button.md",
      "html": "<button class=\"btn-text\">View all projects <span aria-hidden=\"true\">→</span></button>",
      "css": ".btn-text {\n  padding: 6px 2px;\n  border: 0;\n  background: none;\n  color: #4338ca;\n  font: 600 16px/1.3 system-ui, sans-serif;\n  text-decoration: underline;\n  text-decoration-color: #c7d2fe;\n  text-decoration-thickness: 2px;\n  text-underline-offset: 6px;\n  cursor: pointer;\n  transition: text-decoration-color 0.2s ease, text-underline-offset 0.2s ease;\n}\n\n.btn-text span {\n  display: inline-block;\n  transition: transform 0.2s ease;\n}\n\n.btn-text:hover {\n  text-decoration-color: currentColor;\n  text-underline-offset: 3px;\n}\n\n.btn-text:hover span {\n  transform: translateX(4px);\n}\n\n.btn-text:focus-visible {\n  border-radius: 4px;\n  outline: 2px solid #4338ca;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "transforms",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "outline-button-group",
      "name": "Outline Button Group",
      "category": "buttons",
      "tags": [
        "joined",
        "toolbar",
        "calendar",
        "attached",
        "actions"
      ],
      "description": "A row of joined outline buttons that share borders, ideal for calendar or pager controls.",
      "url": "https://copy-css.com/snippets/outline-button-group",
      "markdown": "https://copy-css.com/snippets/outline-button-group.md",
      "html": "<div class=\"btn-group\" role=\"group\" aria-label=\"Calendar navigation\">\n  <button type=\"button\" aria-label=\"Previous month\">‹</button>\n  <button type=\"button\">Today</button>\n  <button type=\"button\" aria-label=\"Next month\">›</button>\n</div>",
      "css": ".btn-group {\n  display: inline-flex;\n}\n\n.btn-group button {\n  min-width: 44px;\n  padding: 10px 16px;\n  border: 1px solid #d4d4d8;\n  background: #fff;\n  color: #27272a;\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background-color 0.15s ease;\n}\n\n/* Overlap the borders so they look like one line */\n.btn-group button + button {\n  margin-left: -1px;\n}\n\n.btn-group button:first-child {\n  border-radius: 10px 0 0 10px;\n}\n\n.btn-group button:last-child {\n  border-radius: 0 10px 10px 0;\n}\n\n.btn-group button:hover {\n  background: #f4f4f5;\n}\n\n.btn-group button:focus-visible {\n  position: relative;\n  z-index: 1;\n  outline: 2px solid #2563eb;\n  outline-offset: -1px;\n}",
      "features": [
        "transitions",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "social-login-buttons",
      "name": "Social Login Buttons",
      "category": "buttons",
      "tags": [
        "google",
        "github",
        "sign in",
        "oauth",
        "auth"
      ],
      "description": "Full-width \"Continue with Google\" and \"Continue with GitHub\" sign-in buttons with brand logos.",
      "url": "https://copy-css.com/snippets/social-login-buttons",
      "markdown": "https://copy-css.com/snippets/social-login-buttons.md",
      "html": "<div class=\"social-login\">\n  <button class=\"btn-social btn-social-google\" type=\"button\">\n    <svg viewBox=\"0 0 48 48\" aria-hidden=\"true\"><path fill=\"#ea4335\" d=\"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z\"/><path fill=\"#4285f4\" d=\"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z\"/><path fill=\"#fbbc05\" d=\"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z\"/><path fill=\"#34a853\" d=\"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z\"/></svg>\n    Continue with Google\n  </button>\n  <button class=\"btn-social btn-social-github\" type=\"button\">\n    <svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path fill=\"currentColor\" d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z\"/></svg>\n    Continue with GitHub\n  </button>\n</div>",
      "css": ".social-login {\n  display: grid;\n  gap: 10px;\n  width: min(100%, 300px);\n}\n\n.btn-social {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  gap: 10px;\n  padding: 12px 16px;\n  border: 1px solid transparent;\n  border-radius: 10px;\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: background-color 0.15s ease, box-shadow 0.15s ease;\n}\n\n.btn-social svg {\n  flex: none;\n  width: 20px;\n  height: 20px;\n}\n\n.btn-social-google {\n  border-color: #dadce0;\n  background: #fff;\n  color: #3c4043;\n}\n\n.btn-social-google:hover {\n  background: #f8f9fa;\n  box-shadow: 0 1px 3px #3c40434d;\n}\n\n.btn-social-github {\n  background: #24292f;\n  color: #fff;\n}\n\n.btn-social-github:hover {\n  background: #32383f;\n}\n\n.btn-social:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "social-icon-buttons",
      "name": "Social Icon Buttons",
      "category": "buttons",
      "tags": [
        "x",
        "linkedin",
        "youtube",
        "brand colors",
        "footer"
      ],
      "description": "Round social media icon links for X, LinkedIn, GitHub and YouTube that fill with brand color on hover.",
      "url": "https://copy-css.com/snippets/social-icon-buttons",
      "markdown": "https://copy-css.com/snippets/social-icon-buttons.md",
      "html": "<ul class=\"social-icons\">\n  <li><a class=\"social-x\" href=\"#\" aria-label=\"X (Twitter)\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M18.9 1.15h3.68l-8.04 9.19L24 22.85h-7.41l-5.8-7.58-6.64 7.58H.47l8.6-9.83L0 1.15h7.59l5.24 6.93zm-1.29 19.5h2.04L6.49 3.24H4.3z\"/></svg></a></li>\n  <li><a class=\"social-linkedin\" href=\"#\" aria-label=\"LinkedIn\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z\"/></svg></a></li>\n  <li><a class=\"social-github\" href=\"#\" aria-label=\"GitHub\"><svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8z\"/></svg></a></li>\n  <li><a class=\"social-youtube\" href=\"#\" aria-label=\"YouTube\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M23.5 6.19a3.02 3.02 0 0 0-2.12-2.14C19.5 3.55 12 3.55 12 3.55s-7.5 0-9.38.5A3.02 3.02 0 0 0 .5 6.19C0 8.07 0 12 0 12s0 3.93.5 5.81a3.02 3.02 0 0 0 2.12 2.14c1.87.5 9.38.5 9.38.5s7.5 0 9.38-.5a3.02 3.02 0 0 0 2.12-2.14C24 15.93 24 12 24 12s0-3.93-.5-5.81zM9.55 15.57V8.43L15.82 12z\"/></svg></a></li>\n</ul>",
      "css": ".social-icons {\n  display: flex;\n  gap: 12px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n.social-icons a {\n  --brand: #18181b;\n  display: grid;\n  place-items: center;\n  width: 44px;\n  height: 44px;\n  border: 1.5px solid #e4e4e7;\n  border-radius: 50%;\n  color: #3f3f46;\n  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;\n}\n\n.social-icons svg {\n  width: 18px;\n  height: 18px;\n  fill: currentColor;\n}\n\n.social-icons a:hover {\n  border-color: var(--brand);\n  background: var(--brand);\n  color: #fff;\n  transform: translateY(-2px);\n}\n\n.social-icons a:focus-visible {\n  outline: 2px solid var(--brand);\n  outline-offset: 3px;\n}\n\n.social-x { --brand: #000; }\n.social-linkedin { --brand: #0a66c2; }\n.social-github { --brand: #181717; }\n.social-youtube { --brand: #ff0000; }",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--brand",
          "value": "#18181b"
        }
      ]
    },
    {
      "id": "share-menu-button",
      "name": "Share Menu Button",
      "category": "buttons",
      "tags": [
        "social share",
        "focus-within",
        "reveal",
        "links",
        "hover"
      ],
      "description": "A share button that slides out X, LinkedIn and email links on hover or keyboard focus, no JavaScript.",
      "url": "https://copy-css.com/snippets/share-menu-button",
      "markdown": "https://copy-css.com/snippets/share-menu-button.md",
      "html": "<div class=\"share-menu\">\n  <button class=\"share-menu-toggle\" type=\"button\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"18\" cy=\"5\" r=\"3\"/><circle cx=\"6\" cy=\"12\" r=\"3\"/><circle cx=\"18\" cy=\"19\" r=\"3\"/><path d=\"m8.6 13.5 6.8 4M15.4 6.5l-6.8 4\"/></svg>\n    Share\n  </button>\n  <ul class=\"share-menu-list\">\n    <li><a href=\"#\" aria-label=\"Share on X\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M18.9 1.15h3.68l-8.04 9.19L24 22.85h-7.41l-5.8-7.58-6.64 7.58H.47l8.6-9.83L0 1.15h7.59l5.24 6.93zm-1.29 19.5h2.04L6.49 3.24H4.3z\"/></svg></a></li>\n    <li><a href=\"#\" aria-label=\"Share on LinkedIn\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M20.45 20.45h-3.56v-5.57c0-1.33-.02-3.04-1.85-3.04-1.85 0-2.14 1.45-2.14 2.94v5.67H9.35V9h3.41v1.56h.05c.48-.9 1.64-1.85 3.37-1.85 3.6 0 4.27 2.37 4.27 5.46zM5.34 7.43a2.06 2.06 0 1 1 0-4.13 2.06 2.06 0 0 1 0 4.13zM7.12 20.45H3.56V9h3.56zM22.22 0H1.77C.79 0 0 .77 0 1.73v20.54C0 23.23.79 24 1.77 24h20.45c.98 0 1.78-.77 1.78-1.73V1.73C24 .77 23.2 0 22.22 0z\"/></svg></a></li>\n    <li><a href=\"#\" aria-label=\"Share by email\"><svg class=\"share-menu-stroke\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"m3 7 9 6 9-6\"/></svg></a></li>\n  </ul>\n</div>",
      "css": ".share-menu {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n}\n\n.share-menu-toggle {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  padding: 12px 20px;\n  border: 0;\n  border-radius: 999px;\n  background: #0369a1;\n  color: #fff;\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.share-menu-toggle svg,\n.share-menu-stroke {\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.share-menu-list {\n  display: flex;\n  gap: 6px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n/* Hidden links stay out of the tab order until the menu opens */\n.share-menu-list li {\n  opacity: 0;\n  visibility: hidden;\n  transform: translateX(-12px) scale(0.8);\n  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;\n}\n\n.share-menu:hover li,\n.share-menu:focus-within li {\n  opacity: 1;\n  visibility: visible;\n  transform: none;\n  transition-delay: 0s;\n}\n\n.share-menu li:nth-child(2) { transition-delay: 0.05s; }\n.share-menu li:nth-child(3) { transition-delay: 0.1s; }\n\n.share-menu-list a {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  border-radius: 50%;\n  background: #fff;\n  color: #0c4a6e;\n  box-shadow: 0 2px 8px #0c4a6e26;\n}\n\n.share-menu-list svg {\n  width: 16px;\n  height: 16px;\n  fill: currentColor;\n}\n\n.share-menu-list a:hover {\n  background: #e0f2fe;\n}\n\n.share-menu-toggle:focus-visible,\n.share-menu-list a:focus-visible {\n  outline: 2px solid #0369a1;\n  outline-offset: 2px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .share-menu-list li { transform: none; }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "follow-button",
      "name": "Follow Button",
      "category": "buttons",
      "tags": [
        "toggle",
        "checkbox",
        "following",
        "profile",
        "social"
      ],
      "description": "A Follow button that switches to an outlined Following state with a checkmark, using a checkbox.",
      "url": "https://copy-css.com/snippets/follow-button",
      "markdown": "https://copy-css.com/snippets/follow-button.md",
      "html": "<label class=\"btn-follow\">\n  <input type=\"checkbox\" aria-label=\"Follow\">\n  <span class=\"btn-follow-off\" aria-hidden=\"true\">+ Follow</span>\n  <span class=\"btn-follow-on\" aria-hidden=\"true\">✓ Following</span>\n</label>\n<label class=\"btn-follow\">\n  <input type=\"checkbox\" aria-label=\"Follow\" checked>\n  <span class=\"btn-follow-off\" aria-hidden=\"true\">+ Follow</span>\n  <span class=\"btn-follow-on\" aria-hidden=\"true\">✓ Following</span>\n</label>",
      "css": ".btn-follow {\n  position: relative;\n  display: inline-grid;\n  min-width: 128px;\n  padding: 11px 20px;\n  border: 1.5px solid #2563eb;\n  border-radius: 999px;\n  background: #2563eb;\n  color: #fff;\n  font: 600 15px/1 system-ui, sans-serif;\n  text-align: center;\n  cursor: pointer;\n  user-select: none;\n  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;\n}\n\n.btn-follow input {\n  position: absolute;\n  inset: 0;\n  margin: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n/* Both labels share one grid cell, so the width never jumps */\n.btn-follow span {\n  grid-area: 1 / 1;\n}\n\n.btn-follow-on {\n  visibility: hidden;\n}\n\n.btn-follow:hover {\n  background: #1d4ed8;\n}\n\n.btn-follow:has(input:checked) {\n  border-color: #d4d4d8;\n  background: #fff;\n  color: #18181b;\n}\n\n.btn-follow:has(input:checked):hover {\n  background: #f4f4f5;\n}\n\n.btn-follow input:checked ~ .btn-follow-off {\n  visibility: hidden;\n}\n\n.btn-follow input:checked ~ .btn-follow-on {\n  visibility: visible;\n}\n\n.btn-follow:has(input:focus-visible) {\n  outline: 2px solid #2563eb;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "star-count-button",
      "name": "Star Count Button",
      "category": "buttons",
      "tags": [
        "github",
        "counter",
        "split pill",
        "favorite",
        "open source"
      ],
      "description": "A GitHub-style Star button with an attached counter that toggles a filled star when checked.",
      "url": "https://copy-css.com/snippets/star-count-button",
      "markdown": "https://copy-css.com/snippets/star-count-button.md",
      "html": "<label class=\"btn-star\">\n  <input type=\"checkbox\" aria-label=\"Star this repository\">\n  <span class=\"btn-star-main\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z\"/></svg>Star</span>\n  <span class=\"btn-star-count\">12.4k</span>\n</label>",
      "css": ".btn-star {\n  position: relative;\n  display: inline-flex;\n  border: 1px solid #d0d7de;\n  border-radius: 8px;\n  background: #f6f8fa;\n  color: #24292f;\n  font: 600 14px/1 system-ui, sans-serif;\n  cursor: pointer;\n  user-select: none;\n}\n\n.btn-star input {\n  position: absolute;\n  inset: 0;\n  margin: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n.btn-star-main {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 8px 12px;\n}\n\n.btn-star svg {\n  width: 16px;\n  height: 16px;\n  fill: none;\n  stroke: #57606a;\n  stroke-width: 2;\n  stroke-linejoin: round;\n  transition: fill 0.15s ease, stroke 0.15s ease, transform 0.15s ease;\n}\n\n.btn-star-count {\n  padding: 8px 10px;\n  border-left: 1px solid #d0d7de;\n  font-variant-numeric: tabular-nums;\n}\n\n.btn-star:hover {\n  background: #eef1f4;\n}\n\n.btn-star input:checked + .btn-star-main svg {\n  fill: #e3b341;\n  stroke: #e3b341;\n  transform: scale(1.15);\n}\n\n.btn-star:has(input:focus-visible) {\n  outline: 2px solid #0969da;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "transforms",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "play-pause-button",
      "name": "Play Pause Button",
      "category": "buttons",
      "tags": [
        "media",
        "audio",
        "video",
        "clip-path",
        "morph",
        "toggle"
      ],
      "description": "A round media button whose play triangle morphs into pause bars when toggled, built on a checkbox.",
      "url": "https://copy-css.com/snippets/play-pause-button",
      "markdown": "https://copy-css.com/snippets/play-pause-button.md",
      "html": "<label class=\"btn-play\">\n  <input type=\"checkbox\" aria-label=\"Play\">\n  <span class=\"btn-play-icon\" aria-hidden=\"true\"></span>\n</label>",
      "css": ".btn-play {\n  position: relative;\n  display: inline-grid;\n  place-items: center;\n  width: 64px;\n  height: 64px;\n  border-radius: 50%;\n  background: #18181b;\n  color: #fff;\n  cursor: pointer;\n  transition: transform 0.15s ease;\n}\n\n.btn-play input {\n  position: absolute;\n  inset: 0;\n  margin: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n.btn-play-icon {\n  position: relative;\n  width: 22px;\n  height: 24px;\n  margin-left: 4px;\n  pointer-events: none;\n  transition: margin 0.25s ease;\n}\n\n/* Two halves of a triangle that become two bars */\n.btn-play-icon::before,\n.btn-play-icon::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: currentColor;\n  transition: clip-path 0.25s ease;\n}\n\n.btn-play-icon::before {\n  clip-path: polygon(0 0, 50% 25%, 50% 75%, 0 100%);\n}\n\n.btn-play-icon::after {\n  clip-path: polygon(50% 25%, 100% 50%, 100% 50%, 50% 75%);\n}\n\n.btn-play input:checked + .btn-play-icon {\n  margin-left: 0;\n}\n\n.btn-play input:checked + .btn-play-icon::before {\n  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%);\n}\n\n.btn-play input:checked + .btn-play-icon::after {\n  clip-path: polygon(65% 0, 100% 0, 100% 100%, 65% 100%);\n}\n\n.btn-play:active {\n  transform: scale(0.94);\n}\n\n.btn-play:has(input:focus-visible) {\n  outline: 3px solid #18181b;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .btn-play-icon::before,\n  .btn-play-icon::after { transition: none; }\n}",
      "features": [
        "transitions",
        "transforms",
        "clip paths",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "power-toggle-button",
      "name": "Power Toggle Button",
      "category": "buttons",
      "tags": [
        "on off",
        "glow",
        "checkbox",
        "switch",
        "dark"
      ],
      "description": "A round power button that lights up with a cyan glow when switched on, using a hidden checkbox.",
      "url": "https://copy-css.com/snippets/power-toggle-button",
      "markdown": "https://copy-css.com/snippets/power-toggle-button.md",
      "html": "<label class=\"btn-power\">\n  <input type=\"checkbox\" aria-label=\"Power\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 3v8\"/><path d=\"M6.3 6.8a8 8 0 1 0 11.4 0\"/></svg>\n</label>",
      "css": ".btn-power {\n  position: relative;\n  display: inline-grid;\n  place-items: center;\n  width: 84px;\n  height: 84px;\n  border-radius: 50%;\n  background: linear-gradient(145deg, #1f2937, #111827);\n  color: #4b5563;\n  box-shadow:\n    inset 0 1px 0 #374151,\n    0 10px 24px #00000099;\n  cursor: pointer;\n  transition: color 0.3s ease, box-shadow 0.3s ease;\n}\n\n.btn-power input {\n  position: absolute;\n  inset: 0;\n  margin: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n.btn-power svg {\n  width: 34px;\n  height: 34px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.4;\n  stroke-linecap: round;\n  pointer-events: none;\n  transition: filter 0.3s ease;\n}\n\n.btn-power:hover {\n  color: #6b7280;\n}\n\n.btn-power:has(input:checked) {\n  color: #22d3ee;\n  box-shadow:\n    inset 0 1px 0 #374151,\n    0 0 0 2px #22d3ee66,\n    0 0 32px #22d3ee66;\n}\n\n.btn-power:has(input:checked) svg {\n  filter: drop-shadow(0 0 6px #22d3ee);\n}\n\n.btn-power:has(input:focus-visible) {\n  outline: 2px solid #67e8f9;\n  outline-offset: 5px;\n}",
      "features": [
        "transitions",
        "linear gradients",
        "box shadows",
        "filters",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "format-toggle-buttons",
      "name": "Format Toggle Buttons",
      "category": "buttons",
      "tags": [
        "bold",
        "italic",
        "toolbar",
        "editor",
        "pressed",
        "checkbox"
      ],
      "description": "A text editor toolbar of bold, italic, underline and strike toggles that stay pressed when on.",
      "url": "https://copy-css.com/snippets/format-toggle-buttons",
      "markdown": "https://copy-css.com/snippets/format-toggle-buttons.md",
      "html": "<fieldset class=\"format-toggles\">\n  <legend class=\"format-toggles-legend\">Text style</legend>\n  <label><input type=\"checkbox\" aria-label=\"Bold\" checked><b aria-hidden=\"true\">B</b></label>\n  <label><input type=\"checkbox\" aria-label=\"Italic\"><i aria-hidden=\"true\">I</i></label>\n  <label><input type=\"checkbox\" aria-label=\"Underline\"><u aria-hidden=\"true\">U</u></label>\n  <label><input type=\"checkbox\" aria-label=\"Strikethrough\"><s aria-hidden=\"true\">S</s></label>\n</fieldset>",
      "css": ".format-toggles {\n  display: inline-flex;\n  gap: 2px;\n  margin: 0;\n  padding: 4px;\n  border: 1px solid #e2e8f0;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 1px 2px #0f172a14;\n}\n\n.format-toggles-legend {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n\n.format-toggles label {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 38px;\n  height: 38px;\n  border-radius: 8px;\n  color: #475569;\n  font: 17px/1 Georgia, \"Times New Roman\", serif;\n  cursor: pointer;\n  transition: background-color 0.15s ease, color 0.15s ease;\n}\n\n.format-toggles input {\n  position: absolute;\n  inset: 0;\n  margin: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n.format-toggles label:hover {\n  background: #f1f5f9;\n  color: #0f172a;\n}\n\n.format-toggles label:has(input:checked) {\n  background: #e0e7ff;\n  color: #3730a3;\n}\n\n.format-toggles label:has(input:focus-visible) {\n  outline: 2px solid #4f46e5;\n  outline-offset: 1px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "clip paths",
        "CSS Grid",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "show-more-button",
      "name": "Show More Button",
      "category": "buttons",
      "tags": [
        "details",
        "summary",
        "expand",
        "collapse",
        "read more",
        "chevron"
      ],
      "description": "A \"Show more\" toggle built on details and summary that flips to \"Show less\" and rotates its chevron.",
      "url": "https://copy-css.com/snippets/show-more-button",
      "markdown": "https://copy-css.com/snippets/show-more-button.md",
      "html": "<details class=\"show-more\">\n  <summary>\n    <span class=\"show-more-closed\">Show more</span>\n    <span class=\"show-more-open\">Show less</span>\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"m6 9 6 6 6-6\"/></svg>\n  </summary>\n  <p>Every plan includes unlimited projects, priority support and a 30-day money-back guarantee.</p>\n</details>",
      "css": ".show-more {\n  max-width: 320px;\n  font: 15px/1.5 system-ui, sans-serif;\n  color: #3f3f46;\n}\n\n.show-more summary {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 10px 18px;\n  border: 1.5px solid #e4e4e7;\n  border-radius: 999px;\n  color: #18181b;\n  font-weight: 600;\n  list-style: none;\n  cursor: pointer;\n  transition: background-color 0.15s ease;\n}\n\n.show-more summary::-webkit-details-marker {\n  display: none;\n}\n\n.show-more summary:hover {\n  background: #f4f4f5;\n}\n\n.show-more summary:focus-visible {\n  outline: 2px solid #18181b;\n  outline-offset: 2px;\n}\n\n.show-more svg {\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  transition: transform 0.2s ease;\n}\n\n.show-more-open,\n.show-more[open] .show-more-closed {\n  display: none;\n}\n\n.show-more[open] .show-more-open {\n  display: inline;\n}\n\n.show-more[open] svg {\n  transform: rotate(180deg);\n}\n\n.show-more p {\n  margin: 12px 0 0;\n}",
      "features": [
        "transitions",
        "transforms",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "sunset-gradient",
      "name": "Sunset Gradient",
      "category": "gradients",
      "tags": [
        "linear",
        "orange",
        "pink",
        "purple",
        "background"
      ],
      "description": "A warm three-stop linear gradient from orange through pink to violet.",
      "url": "https://copy-css.com/snippets/sunset-gradient",
      "markdown": "https://copy-css.com/snippets/sunset-gradient.md",
      "html": "<div class=\"gradient-sunset\"></div>",
      "css": ".gradient-sunset {\n  background: linear-gradient(135deg, #ff9a56 0%, #ff4f8b 50%, #7b5cff 100%);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "ocean-gradient",
      "name": "Ocean Gradient",
      "category": "gradients",
      "tags": [
        "linear",
        "blue",
        "cyan",
        "background"
      ],
      "description": "A crisp blue linear gradient that works great behind white text.",
      "url": "https://copy-css.com/snippets/ocean-gradient",
      "markdown": "https://copy-css.com/snippets/ocean-gradient.md",
      "html": "<div class=\"gradient-ocean\"></div>",
      "css": ".gradient-ocean {\n  background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "mint-gradient",
      "name": "Mint Gradient",
      "category": "gradients",
      "tags": [
        "linear",
        "green",
        "fresh",
        "background"
      ],
      "description": "A fresh, light green-to-aqua gradient for friendly hero sections.",
      "url": "https://copy-css.com/snippets/mint-gradient",
      "markdown": "https://copy-css.com/snippets/mint-gradient.md",
      "html": "<div class=\"gradient-mint\"></div>",
      "css": ".gradient-mint {\n  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "peach-gradient",
      "name": "Peach Gradient",
      "category": "gradients",
      "tags": [
        "linear",
        "yellow",
        "orange",
        "warm",
        "background"
      ],
      "description": "A soft golden peach gradient that feels warm without shouting.",
      "url": "https://copy-css.com/snippets/peach-gradient",
      "markdown": "https://copy-css.com/snippets/peach-gradient.md",
      "html": "<div class=\"gradient-peach\"></div>",
      "css": ".gradient-peach {\n  background: linear-gradient(120deg, #f6d365 0%, #fda085 100%);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "midnight-gradient",
      "name": "Midnight Gradient",
      "category": "gradients",
      "tags": [
        "linear",
        "dark",
        "navy",
        "purple",
        "background"
      ],
      "description": "A deep navy-to-purple gradient for dark, premium-feeling sections.",
      "url": "https://copy-css.com/snippets/midnight-gradient",
      "markdown": "https://copy-css.com/snippets/midnight-gradient.md",
      "html": "<div class=\"gradient-midnight\"></div>",
      "css": ".gradient-midnight {\n  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 55%, #581c87 100%);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "mesh-gradient",
      "name": "Mesh Gradient",
      "category": "gradients",
      "tags": [
        "mesh",
        "radial",
        "pastel",
        "background"
      ],
      "description": "A dreamy pastel mesh gradient built from layered radial gradients.",
      "url": "https://copy-css.com/snippets/mesh-gradient",
      "markdown": "https://copy-css.com/snippets/mesh-gradient.md",
      "html": "<div class=\"mesh-gradient\"></div>",
      "css": ".mesh-gradient {\n  background-color: #ff99cc;\n  background-image:\n    radial-gradient(at 15% 20%, #ffd3a5 0, transparent 55%),\n    radial-gradient(at 85% 15%, #a0c4ff 0, transparent 55%),\n    radial-gradient(at 75% 85%, #bdb2ff 0, transparent 55%),\n    radial-gradient(at 10% 90%, #9bf6ff 0, transparent 55%);\n}",
      "features": [
        "radial gradients"
      ],
      "customProperties": []
    },
    {
      "id": "animated-gradient",
      "name": "Animated Gradient",
      "category": "gradients",
      "tags": [
        "animation",
        "moving",
        "background",
        "hero"
      ],
      "description": "A slowly shifting multi-color gradient background, perfect for hero sections.",
      "url": "https://copy-css.com/snippets/animated-gradient",
      "markdown": "https://copy-css.com/snippets/animated-gradient.md",
      "html": "<div class=\"animated-gradient\"></div>",
      "css": ".animated-gradient {\n  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);\n  background-size: 400% 400%;\n  animation: gradient-shift 12s ease infinite;\n}\n\n@keyframes gradient-shift {\n  0%, 100% { background-position: 0% 50%; }\n  50% { background-position: 100% 50%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .animated-gradient {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "conic-gradient",
      "name": "Conic Rainbow",
      "category": "gradients",
      "tags": [
        "conic",
        "rainbow",
        "colorful",
        "background"
      ],
      "description": "A vivid rainbow conic gradient that sweeps around a center point.",
      "url": "https://copy-css.com/snippets/conic-gradient",
      "markdown": "https://copy-css.com/snippets/conic-gradient.md",
      "html": "<div class=\"conic-gradient\"></div>",
      "css": ".conic-gradient {\n  background: conic-gradient(from 90deg at 50% 50%, #ff6b6b, #feca57, #48dbfb, #a29bfe, #ff6b6b);\n}",
      "features": [
        "conic gradients"
      ],
      "customProperties": []
    },
    {
      "id": "grainy-gradient",
      "name": "Grainy Gradient",
      "category": "gradients",
      "tags": [
        "noise",
        "grain",
        "texture",
        "svg",
        "background"
      ],
      "description": "A warm gradient with a film-grain texture made from an inline SVG noise filter.",
      "url": "https://copy-css.com/snippets/grainy-gradient",
      "markdown": "https://copy-css.com/snippets/grainy-gradient.md",
      "html": "<div class=\"grainy-gradient\"></div>",
      "css": ".grainy-gradient {\n  background:\n    url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E\"),\n    linear-gradient(135deg, #f43f5e, #f59e0b);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "holographic-gradient",
      "name": "Holographic Gradient",
      "category": "gradients",
      "tags": [
        "pastel",
        "holographic",
        "iridescent",
        "linear",
        "background"
      ],
      "description": "A pale iridescent gradient that feels like holographic foil.",
      "url": "https://copy-css.com/snippets/holographic-gradient",
      "markdown": "https://copy-css.com/snippets/holographic-gradient.md",
      "html": "<div class=\"holographic\"></div>",
      "css": ".holographic {\n  background: linear-gradient(115deg, #ffd6e8 0%, #c1f0ff 25%, #e0d1ff 50%, #fff3c4 75%, #ffd6e8 100%);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "dot-grid-pattern",
      "name": "Dot Grid Pattern",
      "category": "gradients",
      "tags": [
        "pattern",
        "dots",
        "grid",
        "radial-gradient",
        "background"
      ],
      "description": "A subtle dotted grid background, great behind canvases and empty states.",
      "url": "https://copy-css.com/snippets/dot-grid-pattern",
      "markdown": "https://copy-css.com/snippets/dot-grid-pattern.md",
      "html": "<div class=\"dot-grid\"></div>",
      "css": ".dot-grid {\n  background-color: #f8fafc;\n  background-image: radial-gradient(#94a3b8 1.2px, transparent 1.4px);\n  background-size: 18px 18px;\n}",
      "features": [
        "radial gradients"
      ],
      "customProperties": []
    },
    {
      "id": "spotlight-gradient",
      "name": "Spotlight Gradient",
      "category": "gradients",
      "tags": [
        "radial-gradient",
        "spotlight",
        "dark",
        "vignette",
        "hero"
      ],
      "description": "A soft spotlight glowing down from the top of a dark background.",
      "url": "https://copy-css.com/snippets/spotlight-gradient",
      "markdown": "https://copy-css.com/snippets/spotlight-gradient.md",
      "html": "<div class=\"spotlight\"></div>",
      "css": ".spotlight {\n  background:\n    radial-gradient(ellipse 60% 70% at 50% -10%, rgba(250, 204, 21, 0.35), transparent 70%),\n    radial-gradient(ellipse 90% 60% at 50% 120%, rgba(59, 130, 246, 0.18), transparent 70%),\n    #09090b;\n}",
      "features": [
        "radial gradients"
      ],
      "customProperties": []
    },
    {
      "id": "zigzag-pattern",
      "name": "Zigzag Pattern",
      "category": "gradients",
      "tags": [
        "pattern",
        "zigzag",
        "chevron",
        "linear-gradient",
        "background"
      ],
      "description": "A playful zigzag chevron pattern from four angled gradients.",
      "url": "https://copy-css.com/snippets/zigzag-pattern",
      "markdown": "https://copy-css.com/snippets/zigzag-pattern.md",
      "html": "<div class=\"zigzag\"></div>",
      "css": ".zigzag {\n  --size: 32px;\n  --a: #f59e0b;\n  --b: #fef3c7;\n  background:\n    linear-gradient(135deg, var(--a) 25%, transparent 25%) calc(var(--size) / -2) 0,\n    linear-gradient(225deg, var(--a) 25%, transparent 25%) calc(var(--size) / -2) 0,\n    linear-gradient(315deg, var(--a) 25%, transparent 25%),\n    linear-gradient(45deg, var(--a) 25%, transparent 25%);\n  background-size: var(--size) var(--size);\n  background-color: var(--b);\n}",
      "features": [
        "linear gradients",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--size",
          "value": "32px"
        },
        {
          "name": "--a",
          "value": "#f59e0b"
        },
        {
          "name": "--b",
          "value": "#fef3c7"
        }
      ]
    },
    {
      "id": "four-corner-gradient",
      "name": "Four Corner Gradient",
      "category": "gradients",
      "tags": [
        "mesh",
        "bilinear",
        "mask",
        "pastel",
        "background"
      ],
      "description": "A smooth four-color gradient with a different color in each corner, blended with a masked layer.",
      "url": "https://copy-css.com/snippets/four-corner-gradient",
      "markdown": "https://copy-css.com/snippets/four-corner-gradient.md",
      "html": "<div class=\"gradient-corners\"></div>",
      "css": "/* Bottom row of colors on the element, top row on a layer that fades out downward */\n.gradient-corners {\n  position: relative;\n  isolation: isolate;\n  background: linear-gradient(90deg, #22d3ee, #a78bfa);\n}\n\n.gradient-corners::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: linear-gradient(90deg, #fde047, #f472b6);\n  -webkit-mask: linear-gradient(#000, #0000);\n  mask: linear-gradient(#000, #0000);\n}",
      "features": [
        "linear gradients",
        "masks"
      ],
      "customProperties": []
    },
    {
      "id": "blurred-blobs-background",
      "name": "Blurred Blobs Background",
      "category": "gradients",
      "tags": [
        "mesh",
        "blur",
        "filter",
        "soft",
        "hero",
        "saas"
      ],
      "description": "Two soft, heavily blurred color blobs in opposite corners, a light background for modern hero sections.",
      "url": "https://copy-css.com/snippets/blurred-blobs-background",
      "markdown": "https://copy-css.com/snippets/blurred-blobs-background.md",
      "html": "<div class=\"blob-bg\"></div>",
      "css": ".blob-bg {\n  position: relative;\n  isolation: isolate;\n  overflow: hidden;\n  background: #f8fafc;\n}\n\n.blob-bg::before,\n.blob-bg::after {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  width: 60%;\n  aspect-ratio: 1;\n  border-radius: 50%;\n  filter: blur(60px);\n}\n\n.blob-bg::before {\n  top: -25%;\n  left: -10%;\n  background: #818cf8;\n}\n\n.blob-bg::after {\n  right: -15%;\n  bottom: -30%;\n  background: #f472b6;\n}",
      "features": [
        "filters",
        "aspect-ratio"
      ],
      "customProperties": []
    },
    {
      "id": "animated-mesh-gradient",
      "name": "Animated Mesh Gradient",
      "category": "gradients",
      "tags": [
        "blobs",
        "moving",
        "radial",
        "drift",
        "hero",
        "background"
      ],
      "description": "Four soft radial color blobs that drift slowly across the background in opposite directions.",
      "url": "https://copy-css.com/snippets/animated-mesh-gradient",
      "markdown": "https://copy-css.com/snippets/animated-mesh-gradient.md",
      "html": "<div class=\"mesh-animated\"></div>",
      "css": ".mesh-animated {\n  background-color: #fdf2f8;\n  background-image:\n    radial-gradient(circle, #f472b6, #0000 30%),\n    radial-gradient(circle, #60a5fa, #0000 30%),\n    radial-gradient(circle, #a78bfa, #0000 30%),\n    radial-gradient(circle, #34d399, #0000 30%);\n  background-size: 200% 200%;\n  animation: mesh-animated-drift 16s ease-in-out infinite alternate;\n}\n\n@keyframes mesh-animated-drift {\n  0% { background-position: 0 0, 100% 0, 100% 100%, 0 100%; }\n  50% { background-position: 60% 20%, 30% 70%, 20% 40%, 80% 60%; }\n  100% { background-position: 100% 100%, 0 100%, 0 0, 100% 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .mesh-animated {\n    animation: none;\n    background-position: 30% 30%, 70% 30%, 70% 70%, 30% 70%;\n  }\n}",
      "features": [
        "keyframe animations",
        "radial gradients",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "hue-rotate-gradient",
      "name": "Hue Rotate Gradient",
      "category": "gradients",
      "tags": [
        "animated",
        "color cycle",
        "filter",
        "rainbow",
        "background"
      ],
      "description": "A gradient that cycles through every hue using a hue-rotate filter on a layer behind the content.",
      "url": "https://copy-css.com/snippets/hue-rotate-gradient",
      "markdown": "https://copy-css.com/snippets/hue-rotate-gradient.md",
      "html": "<div class=\"gradient-hue\"></div>",
      "css": ".gradient-hue {\n  position: relative;\n  isolation: isolate;\n}\n\n/* The filter sits on its own layer so text inside is not recolored */\n.gradient-hue::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: linear-gradient(135deg, #f43f5e, #f59e0b);\n  animation: gradient-hue-cycle 12s linear infinite;\n}\n\n@keyframes gradient-hue-cycle {\n  to { filter: hue-rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .gradient-hue::before { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "filters",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "donut-chart",
      "name": "Donut Chart",
      "category": "gradients",
      "tags": [
        "conic-gradient",
        "pie chart",
        "data",
        "legend",
        "mask"
      ],
      "description": "A donut chart with a legend, drawn with one conic gradient and a radial mask, no SVG or JavaScript.",
      "url": "https://copy-css.com/snippets/donut-chart",
      "markdown": "https://copy-css.com/snippets/donut-chart.md",
      "html": "<figure class=\"donut-chart\">\n  <div class=\"donut-chart-ring\" role=\"img\" aria-label=\"Traffic sources: search 45%, social 30%, direct 25%\"></div>\n  <figcaption>\n    <ul class=\"donut-chart-legend\">\n      <li>Search 45%</li>\n      <li>Social 30%</li>\n      <li>Direct 25%</li>\n    </ul>\n  </figcaption>\n</figure>",
      "css": ".donut-chart {\n  /* Segment sizes; the last one fills the rest */\n  --a: 45%;\n  --b: 30%;\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: center;\n  gap: 20px;\n  margin: 0;\n  font: 500 14px/1.2 system-ui, sans-serif;\n  color: #27272a;\n}\n\n.donut-chart-ring {\n  width: 120px;\n  aspect-ratio: 1;\n  border-radius: 50%;\n  background: conic-gradient(\n    #6366f1 0 var(--a),\n    #ec4899 0 calc(var(--a) + var(--b)),\n    #f59e0b 0\n  );\n  -webkit-mask: radial-gradient(farthest-side, #0000 58%, #000 59%);\n  mask: radial-gradient(farthest-side, #0000 58%, #000 59%);\n}\n\n.donut-chart-legend {\n  display: grid;\n  gap: 10px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n.donut-chart-legend li {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n}\n\n.donut-chart-legend li::before {\n  content: \"\";\n  width: 12px;\n  height: 12px;\n  border-radius: 3px;\n  background: #6366f1;\n}\n\n.donut-chart-legend li:nth-child(2)::before {\n  background: #ec4899;\n}\n\n.donut-chart-legend li:nth-child(3)::before {\n  background: #f59e0b;\n}",
      "features": [
        "radial gradients",
        "conic gradients",
        "masks",
        "CSS Grid",
        "Flexbox",
        "aspect-ratio",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--a",
          "value": "45%"
        },
        {
          "name": "--b",
          "value": "30%"
        }
      ]
    },
    {
      "id": "color-wheel",
      "name": "Color Wheel",
      "category": "gradients",
      "tags": [
        "conic-gradient",
        "hue",
        "color picker",
        "rainbow",
        "radial"
      ],
      "description": "A full hue color wheel that fades to white in the center, made from a conic and a radial gradient.",
      "url": "https://copy-css.com/snippets/color-wheel",
      "markdown": "https://copy-css.com/snippets/color-wheel.md",
      "html": "<div class=\"color-wheel\" role=\"img\" aria-label=\"Color wheel\"></div>",
      "css": ".color-wheel {\n  width: 180px;\n  aspect-ratio: 1;\n  border-radius: 50%;\n  background:\n    radial-gradient(circle closest-side, #fff, #fff0),\n    conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);\n  box-shadow: 0 8px 24px #18181b29;\n}",
      "features": [
        "radial gradients",
        "conic gradients",
        "box shadows",
        "aspect-ratio"
      ],
      "customProperties": []
    },
    {
      "id": "conic-light-beam",
      "name": "Conic Light Beam",
      "category": "gradients",
      "tags": [
        "spotlight",
        "cone",
        "dark",
        "hero",
        "glow",
        "stage"
      ],
      "description": "A dark hero background with a soft cone of light shining down from the top, built with a conic gradient.",
      "url": "https://copy-css.com/snippets/conic-light-beam",
      "markdown": "https://copy-css.com/snippets/conic-light-beam.md",
      "html": "<div class=\"light-beam\"></div>",
      "css": ".light-beam {\n  background:\n    radial-gradient(ellipse 35% 8% at 50% 0, #e0e7ff, #0000),\n    linear-gradient(#02061700 20%, #020617),\n    conic-gradient(\n      from 140deg at 50% -5%,\n      #0000,\n      #6366f140 25deg,\n      #c7d2fe99 40deg,\n      #6366f140 55deg,\n      #0000 80deg\n    ),\n    #020617;\n}",
      "features": [
        "linear gradients",
        "radial gradients",
        "conic gradients"
      ],
      "customProperties": []
    },
    {
      "id": "image-scrim-gradient",
      "name": "Image Scrim Gradient",
      "category": "gradients",
      "tags": [
        "overlay",
        "text on image",
        "readable",
        "caption",
        "eased"
      ],
      "description": "An eased dark gradient over a photo so white caption text stays readable without a hard edge.",
      "url": "https://copy-css.com/snippets/image-scrim-gradient",
      "markdown": "https://copy-css.com/snippets/image-scrim-gradient.md",
      "html": "<figure class=\"scrim-card\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='0' y2='1'%3E%3Cstop stop-color='%23fb923c'/%3E%3Cstop offset='1' stop-color='%23fde68a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='400' height='300' fill='url(%23g)'/%3E%3Ccircle cx='290' cy='110' r='36' fill='%23fff7ed'/%3E%3Cpath d='M0 200 110 110l80 70 70-50 140 100v170H0z' fill='%237c3aed'/%3E%3Cpath d='M0 240 90 180l120 80 70-40 120 70v110H0z' fill='%233b0764'/%3E%3C/svg%3E\" alt=\"Purple mountains at sunset\">\n  <figcaption>\n    <strong>Sunset ridge trail</strong>\n    <span>12 km · Moderate</span>\n  </figcaption>\n</figure>",
      "css": ".scrim-card {\n  position: relative;\n  width: min(100%, 280px);\n  margin: 0;\n  overflow: hidden;\n  border-radius: 16px;\n  font: 14px/1.3 system-ui, sans-serif;\n}\n\n.scrim-card img {\n  display: block;\n  width: 100%;\n  aspect-ratio: 3 / 2;\n  object-fit: cover;\n}\n\n/* Many stops ease the fade, so there is no visible line where it starts */\n.scrim-card::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(\n    to top,\n    #000000b3 0%,\n    #000000a1 14%,\n    #00000080 28%,\n    #00000059 42%,\n    #00000033 56%,\n    #00000014 70%,\n    #0000 85%\n  );\n}\n\n.scrim-card figcaption {\n  position: absolute;\n  inset: auto 0 0;\n  z-index: 1;\n  display: grid;\n  gap: 2px;\n  padding: 16px;\n  color: #fff;\n}\n\n.scrim-card strong {\n  font-size: 18px;\n}\n\n.scrim-card span {\n  color: #e5e7eb;\n}",
      "features": [
        "linear gradients",
        "CSS Grid",
        "aspect-ratio"
      ],
      "customProperties": []
    },
    {
      "id": "fade-edge-mask",
      "name": "Fade Edge Mask",
      "category": "gradients",
      "tags": [
        "mask-image",
        "scroll",
        "overflow",
        "carousel",
        "fade out"
      ],
      "description": "A horizontal scroller whose edges fade out with a mask gradient, hinting that there is more to scroll.",
      "url": "https://copy-css.com/snippets/fade-edge-mask",
      "markdown": "https://copy-css.com/snippets/fade-edge-mask.md",
      "html": "<ul class=\"fade-edges\" tabindex=\"0\" aria-label=\"Topics\">\n  <li>Design</li>\n  <li>Development</li>\n  <li>Marketing</li>\n  <li>Product</li>\n  <li>Research</li>\n  <li>Writing</li>\n  <li>Sales</li>\n  <li>Support</li>\n</ul>",
      "css": ".fade-edges {\n  --fade: 40px;\n  display: flex;\n  gap: 8px;\n  width: min(100%, 300px);\n  margin: 0;\n  padding: 4px 0;\n  overflow-x: auto;\n  list-style: none;\n  scrollbar-width: none;\n  -webkit-mask: linear-gradient(90deg, #0000, #000 var(--fade), #000 calc(100% - var(--fade)), #0000);\n  mask: linear-gradient(90deg, #0000, #000 var(--fade), #000 calc(100% - var(--fade)), #0000);\n}\n\n.fade-edges::-webkit-scrollbar {\n  display: none;\n}\n\n.fade-edges li {\n  flex: none;\n  padding: 8px 14px;\n  border-radius: 999px;\n  background: #eef2ff;\n  color: #3730a3;\n  font: 600 14px/1 system-ui, sans-serif;\n}\n\n/* Drawn inside the box so the mask does not hide it */\n.fade-edges:focus-visible {\n  border-radius: 8px;\n  outline: 2px solid #4f46e5;\n  outline-offset: -2px;\n}",
      "features": [
        "linear gradients",
        "masks",
        "Flexbox",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--fade",
          "value": "40px"
        }
      ]
    },
    {
      "id": "oklch-gradient",
      "name": "OKLCH Gradient",
      "category": "gradients",
      "tags": [
        "color space",
        "interpolation",
        "vivid",
        "no gray",
        "modern"
      ],
      "description": "A gradient interpolated in OKLCH so the middle stays bright and saturated instead of going gray.",
      "url": "https://copy-css.com/snippets/oklch-gradient",
      "markdown": "https://copy-css.com/snippets/oklch-gradient.md",
      "html": "<div class=\"gradient-oklch\"></div>",
      "css": ".gradient-oklch {\n  /* Fallback for older browsers */\n  background: linear-gradient(90deg, #ec4899, #06b6d4);\n  /* Mixing in OKLCH avoids the muddy middle of sRGB gradients */\n  background: linear-gradient(90deg in oklch, #ec4899, #06b6d4);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "soft-shadow",
      "name": "Soft Layered Shadow",
      "category": "shadows",
      "tags": [
        "box-shadow",
        "layered",
        "subtle",
        "elevation"
      ],
      "description": "A realistic, soft elevation made from four stacked low-opacity shadows.",
      "url": "https://copy-css.com/snippets/soft-shadow",
      "markdown": "https://copy-css.com/snippets/soft-shadow.md",
      "html": "<div class=\"shadow-soft\"></div>",
      "css": ".shadow-soft {\n  background: #fff;\n  border-radius: 20px;\n  box-shadow:\n    0 1px 2px rgba(0, 0, 0, 0.04),\n    0 4px 8px rgba(0, 0, 0, 0.04),\n    0 12px 24px rgba(0, 0, 0, 0.06),\n    0 24px 48px rgba(0, 0, 0, 0.08);\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "neumorphism",
      "name": "Neumorphism",
      "category": "shadows",
      "tags": [
        "neumorphic",
        "soft ui",
        "box-shadow",
        "light"
      ],
      "description": "The classic soft-UI neumorphic look using a light and a dark shadow.",
      "url": "https://copy-css.com/snippets/neumorphism",
      "markdown": "https://copy-css.com/snippets/neumorphism.md",
      "html": "<div class=\"neumorphism\"></div>",
      "css": ".neumorphism {\n  background: #e0e5ec;\n  border-radius: 28px;\n  box-shadow:\n    9px 9px 16px #a3b1c6,\n    -9px -9px 16px #ffffff;\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "glow-shadow",
      "name": "Colored Glow Shadow",
      "category": "shadows",
      "tags": [
        "glow",
        "colored",
        "box-shadow",
        "purple"
      ],
      "description": "A colored shadow that makes an element look like it is softly glowing.",
      "url": "https://copy-css.com/snippets/glow-shadow",
      "markdown": "https://copy-css.com/snippets/glow-shadow.md",
      "html": "<div class=\"shadow-glow\"></div>",
      "css": ".shadow-glow {\n  background: linear-gradient(135deg, #6366f1, #8b5cf6);\n  border-radius: 20px;\n  box-shadow: 0 20px 50px -12px rgba(99, 102, 241, 0.75);\n}",
      "features": [
        "linear gradients",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "retro-shadow",
      "name": "Stacked Retro Shadow",
      "category": "shadows",
      "tags": [
        "retro",
        "offset",
        "stacked",
        "playful"
      ],
      "description": "Two hard, colorful offset shadows stacked for a playful retro feel.",
      "url": "https://copy-css.com/snippets/retro-shadow",
      "markdown": "https://copy-css.com/snippets/retro-shadow.md",
      "html": "<div class=\"shadow-retro\"></div>",
      "css": ".shadow-retro {\n  background: #fff;\n  border: 2px solid #111;\n  border-radius: 12px;\n  box-shadow:\n    6px 6px 0 #f472b6,\n    12px 12px 0 #60a5fa;\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "inset-shadow",
      "name": "Inner Shadow",
      "category": "shadows",
      "tags": [
        "inset",
        "pressed",
        "well",
        "box-shadow"
      ],
      "description": "A subtle inset shadow for pressed states, wells and input fields.",
      "url": "https://copy-css.com/snippets/inset-shadow",
      "markdown": "https://copy-css.com/snippets/inset-shadow.md",
      "html": "<div class=\"shadow-inset\"></div>",
      "css": ".shadow-inset {\n  background: #f1f5f9;\n  border-radius: 20px;\n  box-shadow:\n    inset 0 2px 6px rgba(15, 23, 42, 0.14),\n    inset 0 -1px 0 rgba(255, 255, 255, 0.8);\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "elevation-scale",
      "name": "Elevation Scale",
      "category": "shadows",
      "tags": [
        "elevation",
        "design system",
        "box-shadow",
        "levels"
      ],
      "description": "Three ready-made shadow levels for a consistent design system.",
      "url": "https://copy-css.com/snippets/elevation-scale",
      "markdown": "https://copy-css.com/snippets/elevation-scale.md",
      "html": "<div class=\"elevation-1\"></div>\n<div class=\"elevation-2\"></div>\n<div class=\"elevation-3\"></div>",
      "css": ".elevation-1 {\n  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(15, 23, 42, 0.06);\n}\n\n.elevation-2 {\n  box-shadow: 0 4px 8px -2px rgba(15, 23, 42, 0.12), 0 2px 4px -2px rgba(15, 23, 42, 0.08);\n}\n\n.elevation-3 {\n  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.2), 0 6px 12px -6px rgba(15, 23, 42, 0.12);\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "smooth-shadow",
      "name": "Smooth Hairline Shadow",
      "category": "shadows",
      "tags": [
        "smooth",
        "hairline",
        "layered",
        "box-shadow",
        "crisp"
      ],
      "description": "A hairline edge plus doubling shadow layers for crisp, natural depth.",
      "url": "https://copy-css.com/snippets/smooth-shadow",
      "markdown": "https://copy-css.com/snippets/smooth-shadow.md",
      "html": "<div class=\"shadow-smooth\"></div>",
      "css": ".shadow-smooth {\n  background: #fff;\n  border-radius: 18px;\n  box-shadow:\n    0 0 0 1px rgba(0, 0, 0, 0.04),\n    0 1px 1px -0.5px rgba(0, 0, 0, 0.05),\n    0 3px 3px -1.5px rgba(0, 0, 0, 0.05),\n    0 6px 6px -3px rgba(0, 0, 0, 0.05),\n    0 12px 12px -6px rgba(0, 0, 0, 0.05),\n    0 24px 24px -12px rgba(0, 0, 0, 0.05);\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "drop-shadow-filter",
      "name": "Drop Shadow Filter",
      "category": "shadows",
      "tags": [
        "filter",
        "drop-shadow",
        "speech bubble",
        "shape"
      ],
      "description": "filter: drop-shadow() follows the real shape, including this speech bubble tail.",
      "url": "https://copy-css.com/snippets/drop-shadow-filter",
      "markdown": "https://copy-css.com/snippets/drop-shadow-filter.md",
      "html": "<div class=\"bubble\">My shadow follows my tail!</div>",
      "css": ".bubble {\n  position: relative;\n  max-width: 200px;\n  padding: 14px 18px;\n  border-radius: 16px;\n  background: #fff;\n  color: #111;\n  font: 500 15px/1.4 system-ui, sans-serif;\n  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));\n}\n\n.bubble::after {\n  content: \"\";\n  position: absolute;\n  bottom: -10px;\n  left: 24px;\n  border: 10px solid transparent;\n  border-top-color: #fff;\n  border-bottom: 0;\n}",
      "features": [
        "filters"
      ],
      "customProperties": []
    },
    {
      "id": "lifted-corners-shadow",
      "name": "Lifted Corners Shadow",
      "category": "shadows",
      "tags": [
        "paper",
        "curled",
        "corners",
        "pseudo-element",
        "box-shadow"
      ],
      "description": "Two angled shadows under the bottom corners make the card look gently curled up.",
      "url": "https://copy-css.com/snippets/lifted-corners-shadow",
      "markdown": "https://copy-css.com/snippets/lifted-corners-shadow.md",
      "html": "<div class=\"shadow-lifted\"></div>",
      "css": "/* Tip: give the parent `isolation: isolate` so the pseudo-element shadows stay visible */\n.shadow-lifted {\n  position: relative;\n  background: #fff;\n}\n\n.shadow-lifted::before,\n.shadow-lifted::after {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  bottom: 14px;\n  width: 45%;\n  height: 20%;\n  box-shadow: 0 14px 12px rgba(0, 0, 0, 0.28);\n}\n\n.shadow-lifted::before {\n  left: 8px;\n  transform: rotate(-4deg);\n}\n\n.shadow-lifted::after {\n  right: 8px;\n  transform: rotate(4deg);\n}",
      "features": [
        "transforms",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "paper-stack-shadow",
      "name": "Paper Stack",
      "category": "shadows",
      "tags": [
        "stack",
        "paper",
        "layers",
        "pseudo-element",
        "depth"
      ],
      "description": "A sheet with two slightly rotated pages peeking out from behind it.",
      "url": "https://copy-css.com/snippets/paper-stack-shadow",
      "markdown": "https://copy-css.com/snippets/paper-stack-shadow.md",
      "html": "<div class=\"paper-stack\"></div>",
      "css": "/* Tip: give the parent `isolation: isolate` so the pseudo-element shadows stay visible */\n.paper-stack {\n  position: relative;\n  border-radius: 6px;\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n\n.paper-stack::before,\n.paper-stack::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  border-radius: 6px;\n  background: #fafafa;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);\n}\n\n.paper-stack::before {\n  transform: rotate(-4deg);\n}\n\n.paper-stack::after {\n  transform: rotate(3deg) translate(4px, 2px);\n}",
      "features": [
        "transforms",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "focus-ring-shadow",
      "name": "Double Focus Ring",
      "category": "shadows",
      "tags": [
        "focus",
        "ring",
        "accessibility",
        "outline",
        "spread"
      ],
      "description": "A clear two-tone focus ring made with spread shadows, so it follows rounded corners.",
      "url": "https://copy-css.com/snippets/focus-ring-shadow",
      "markdown": "https://copy-css.com/snippets/focus-ring-shadow.md",
      "html": "<button class=\"ring-focus\">Tab to me</button>",
      "css": ".ring-focus {\n  padding: 12px 24px;\n  border: 1px solid #d4d4d8;\n  border-radius: 10px;\n  background: #fff;\n  color: #18181b;\n  font: 600 15px/1 system-ui, sans-serif;\n  cursor: pointer;\n  transition: box-shadow 0.15s ease;\n}\n\n.ring-focus:focus-visible,\n.ring-focus:hover {\n  outline: none;\n  box-shadow:\n    0 0 0 2px #fff,\n    0 0 0 4px #2563eb,\n    0 0 0 8px rgba(37, 99, 235, 0.2);\n}",
      "features": [
        "transitions",
        "box shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "hover-depth-shadow",
      "name": "Hover Depth Shadow",
      "category": "shadows",
      "tags": [
        "hover",
        "transition",
        "elevation",
        "performance",
        "opacity"
      ],
      "description": "Fades in a deep shadow on hover with opacity, which animates more smoothly than box-shadow.",
      "url": "https://copy-css.com/snippets/hover-depth-shadow",
      "markdown": "https://copy-css.com/snippets/hover-depth-shadow.md",
      "html": "<div class=\"depth-hover\"></div>",
      "css": ".depth-hover {\n  position: relative;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);\n  transition: transform 0.25s ease;\n}\n\n/* The big shadow lives on a pseudo-element and only its opacity animates */\n.depth-hover::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: inherit;\n  box-shadow: 0 22px 40px -12px rgba(15, 23, 42, 0.35);\n  opacity: 0;\n  transition: opacity 0.25s ease;\n}\n\n.depth-hover:hover {\n  transform: translateY(-4px);\n}\n\n.depth-hover:hover::after {\n  opacity: 1;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "ambient-shadow",
      "name": "Ambient Color Shadow",
      "category": "shadows",
      "tags": [
        "colored",
        "ambient",
        "glow",
        "blur",
        "image",
        "shadow"
      ],
      "description": "A shadow that takes its colors from the element itself, like the glow behind album art.",
      "url": "https://copy-css.com/snippets/ambient-shadow",
      "markdown": "https://copy-css.com/snippets/ambient-shadow.md",
      "html": "<div class=\"ambient\"></div>",
      "css": ".ambient {\n  /* Works with images too: url(\"cover.jpg\") */\n  --art: linear-gradient(135deg, #f472b6, #8b5cf6 50%, #38bdf8);\n  position: relative;\n  isolation: isolate;\n  width: 160px;\n  height: 120px;\n}\n\n.ambient::before,\n.ambient::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 16px;\n  background: var(--art) center / cover;\n}\n\n/* A blurred copy sits behind and becomes the shadow */\n.ambient::before {\n  z-index: -1;\n  inset: 14px 10px -14px;\n  filter: blur(22px) saturate(1.4);\n  opacity: 0.85;\n}",
      "features": [
        "linear gradients",
        "filters",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--art",
          "value": "linear-gradient(135deg, #f472b6, #8b5cf6 50%, #38bdf8)"
        }
      ]
    },
    {
      "id": "multi-border-shadow",
      "name": "Multiple Borders",
      "category": "shadows",
      "tags": [
        "border",
        "rings",
        "spread",
        "outline",
        "stacked",
        "box-shadow"
      ],
      "description": "Stack as many borders as you like with comma-separated box-shadow spreads. No extra markup.",
      "url": "https://copy-css.com/snippets/multi-border-shadow",
      "markdown": "https://copy-css.com/snippets/multi-border-shadow.md",
      "html": "<div class=\"rings\"></div>",
      "css": ".rings {\n  --gap: #fff7ed; /* match the background behind it */\n  width: 80px;\n  height: 80px;\n  border-radius: 20px;\n  background: #f97316;\n  box-shadow:\n    0 0 0 6px var(--gap),\n    0 0 0 12px #fb923c,\n    0 0 0 18px var(--gap),\n    0 0 0 24px #fdba74;\n}",
      "features": [
        "box shadows",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--gap",
          "value": "#fff7ed"
        }
      ]
    },
    {
      "id": "floating-shadow",
      "name": "Floating Shadow",
      "category": "shadows",
      "tags": [
        "float",
        "levitate",
        "bob",
        "ground shadow",
        "animation"
      ],
      "description": "An object that bobs up and down while its ground shadow shrinks and fades in sync.",
      "url": "https://copy-css.com/snippets/floating-shadow",
      "markdown": "https://copy-css.com/snippets/floating-shadow.md",
      "html": "<div class=\"float\">\n  <div class=\"float-item\"></div>\n</div>",
      "css": ".float {\n  display: inline-flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 26px;\n}\n\n.float-item {\n  width: 84px;\n  height: 84px;\n  border-radius: 22px;\n  background: linear-gradient(135deg, #34d399, #0ea5e9);\n  animation: float-y 3s ease-in-out infinite;\n}\n\n/* The ground shadow stays put and breathes */\n.float::after {\n  content: \"\";\n  width: 70px;\n  height: 12px;\n  border-radius: 50%;\n  background: rgba(15, 23, 42, 0.35);\n  filter: blur(3px);\n  animation: float-shadow 3s ease-in-out infinite;\n}\n\n@keyframes float-y {\n  50% { transform: translateY(-14px); }\n}\n\n@keyframes float-shadow {\n  50% { transform: scale(0.7); opacity: 0.5; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .float-item,\n  .float::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "linear gradients",
        "filters",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "dark-edge-light",
      "name": "Dark UI Edge Light",
      "category": "shadows",
      "tags": [
        "dark mode",
        "elevation",
        "hairline",
        "highlight",
        "inset",
        "card"
      ],
      "description": "Shadows barely show on dark backgrounds, so this lifts the card with a hairline border and a lit top edge.",
      "url": "https://copy-css.com/snippets/dark-edge-light",
      "markdown": "https://copy-css.com/snippets/dark-edge-light.md",
      "html": "<div class=\"edge-card\">\n  <h3>Deploys</h3>\n  <p>12 today · all green</p>\n</div>",
      "css": ".edge-card {\n  width: 220px;\n  padding: 20px;\n  border-radius: 14px;\n  background: #18181b;\n  color: #a1a1aa;\n  font: 14px/1.5 system-ui, sans-serif;\n  box-shadow:\n    inset 0 1px 0 rgba(255, 255, 255, 0.08),\n    0 0 0 1px rgba(255, 255, 255, 0.06),\n    0 1px 2px rgba(0, 0, 0, 0.6),\n    0 12px 32px -8px rgba(0, 0, 0, 0.8);\n}\n\n.edge-card h3 {\n  margin: 0 0 4px;\n  color: #fafafa;\n  font-size: 16px;\n}\n\n.edge-card p {\n  margin: 0;\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "one-sided-shadows",
      "name": "One-Sided Shadows",
      "category": "shadows",
      "tags": [
        "bottom only",
        "negative spread",
        "top",
        "side",
        "box-shadow"
      ],
      "description": "Box shadows on just one edge (top, right, bottom or left) using a negative spread value.",
      "url": "https://copy-css.com/snippets/one-sided-shadows",
      "markdown": "https://copy-css.com/snippets/one-sided-shadows.md",
      "html": "<div class=\"side-shadow-top\">Top</div>\n<div class=\"side-shadow-right\">Right</div>\n<div class=\"side-shadow-bottom\">Bottom</div>\n<div class=\"side-shadow-left\">Left</div>",
      "css": "/* The negative spread (-6px) hides the shadow on the other three sides */\n.side-shadow-top,\n.side-shadow-right,\n.side-shadow-bottom,\n.side-shadow-left {\n  display: grid;\n  place-items: center;\n  width: 96px;\n  height: 64px;\n  border-radius: 12px;\n  background: #ffffff;\n  color: #475569;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.side-shadow-top {\n  box-shadow: 0 -8px 10px -6px #0f172a59;\n}\n\n.side-shadow-right {\n  box-shadow: 8px 0 10px -6px #0f172a59;\n}\n\n.side-shadow-bottom {\n  box-shadow: 0 8px 10px -6px #0f172a59;\n}\n\n.side-shadow-left {\n  box-shadow: -8px 0 10px -6px #0f172a59;\n}",
      "features": [
        "box shadows",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "deep-diffuse-shadow",
      "name": "Deep Diffuse Shadow",
      "category": "shadows",
      "tags": [
        "layered",
        "soft",
        "floating",
        "hero",
        "pricing card"
      ],
      "description": "A deep, very soft four-layer shadow that makes a card float high above the page.",
      "url": "https://copy-css.com/snippets/deep-diffuse-shadow",
      "markdown": "https://copy-css.com/snippets/deep-diffuse-shadow.md",
      "html": "<div class=\"shadow-deep\">\n  <strong>Pro plan</strong>\n  <span>$12 per month</span>\n</div>",
      "css": ".shadow-deep {\n  display: grid;\n  gap: 4px;\n  width: 180px;\n  padding: 22px;\n  border-radius: 20px;\n  background: #ffffff;\n  color: #0f172a;\n  font: 15px/1.4 system-ui, sans-serif;\n  box-shadow:\n    0 2px 4px #0f172a0a,\n    0 8px 16px #0f172a0d,\n    0 24px 48px -8px #0f172a1f,\n    0 48px 96px -24px #0f172a33;\n}\n\n.shadow-deep strong {\n  font-size: 18px;\n}\n\n.shadow-deep span {\n  color: #64748b;\n}",
      "features": [
        "box shadows",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "perspective-shadow",
      "name": "Perspective Cast Shadow",
      "category": "shadows",
      "tags": [
        "cast shadow",
        "skew",
        "floor",
        "pseudo-element",
        "product"
      ],
      "description": "A shadow cast across the floor behind an object, made by skewing a blurred pseudo-element.",
      "url": "https://copy-css.com/snippets/perspective-shadow",
      "markdown": "https://copy-css.com/snippets/perspective-shadow.md",
      "html": "<div class=\"shadow-cast\"></div>",
      "css": "/* Give the parent isolation: isolate if the shadow hides behind its background */\n.shadow-cast {\n  position: relative;\n  width: 100px;\n  height: 130px;\n  border-radius: 14px;\n  background: linear-gradient(160deg, #fde68a, #f59e0b);\n}\n\n.shadow-cast::after {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  inset: 0;\n  border-radius: 14px;\n  background: #451a03;\n  opacity: 0.35;\n  filter: blur(6px);\n  transform-origin: bottom;\n  transform: skewX(-50deg) scaleY(0.45);\n}",
      "features": [
        "transforms",
        "linear gradients",
        "filters"
      ],
      "customProperties": []
    },
    {
      "id": "scroll-header-shadow",
      "name": "Scroll Header Shadow",
      "category": "shadows",
      "tags": [
        "sticky header",
        "scroll-driven",
        "animation-timeline",
        "elevation",
        "panel"
      ],
      "description": "A sticky header that gains a soft shadow only once its panel scrolls, using a scroll-driven animation.",
      "url": "https://copy-css.com/snippets/scroll-header-shadow",
      "markdown": "https://copy-css.com/snippets/scroll-header-shadow.md",
      "html": "<section class=\"scroll-panel\" tabindex=\"0\" aria-label=\"Inbox\">\n  <header class=\"scroll-panel-head\">Inbox</header>\n  <p>Design review moved to 3pm</p>\n  <p>New comment on Homepage v2</p>\n  <p>Invoice #1042 was paid</p>\n  <p>Weekly report is ready</p>\n  <p>Alex shared a file with you</p>\n  <p>Your trial ends in 3 days</p>\n</section>",
      "css": ".scroll-panel {\n  width: 240px;\n  height: 170px;\n  overflow: auto;\n  border-radius: 14px;\n  background: #ffffff;\n  color: #334155;\n  font: 14px/1.4 system-ui, sans-serif;\n  box-shadow: 0 0 0 1px #e2e8f0;\n  scroll-timeline: --panel-scroll;\n}\n\n.scroll-panel:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}\n\n.scroll-panel-head {\n  position: sticky;\n  top: 0;\n  padding: 12px 16px;\n  background: #ffffff;\n  color: #0f172a;\n  font-weight: 700;\n}\n\n.scroll-panel p {\n  margin: 0;\n  padding: 10px 16px;\n  border-top: 1px solid #f1f5f9;\n}\n\n/* Browsers without scroll-driven animations keep a flat header */\n@supports (animation-timeline: scroll()) {\n  .scroll-panel-head {\n    animation: scroll-panel-lift linear both;\n    animation-timeline: --panel-scroll;\n    animation-range: 0 24px;\n  }\n}\n\n@keyframes scroll-panel-lift {\n  to { box-shadow: 0 6px 12px -6px #0f172a40; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .scroll-panel-head { animation: none; }\n}",
      "features": [
        "scroll-driven animations",
        "keyframe animations",
        "box shadows",
        "sticky positioning",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "neumorphic-button",
      "name": "Neumorphic Button",
      "category": "shadows",
      "tags": [
        "neumorphism",
        "soft ui",
        "pressed",
        "inset",
        "active state"
      ],
      "description": "A soft UI button that sits raised from the surface and smoothly presses in when clicked.",
      "url": "https://copy-css.com/snippets/neumorphic-button",
      "markdown": "https://copy-css.com/snippets/neumorphic-button.md",
      "html": "<button class=\"neu-btn\" type=\"button\">Play</button>",
      "css": ".neu-btn {\n  padding: 16px 36px;\n  border: 0;\n  border-radius: 16px;\n  background: #e0e5ec;\n  color: #475569;\n  font: 600 16px system-ui, sans-serif;\n  cursor: pointer;\n  box-shadow:\n    6px 6px 12px #a3b1c6,\n    -6px -6px 12px #ffffff,\n    inset 0 0 0 #a3b1c6,\n    inset 0 0 0 #ffffff;\n  transition: box-shadow 0.2s ease, color 0.2s ease;\n}\n\n.neu-btn:hover {\n  color: #4338ca;\n}\n\n.neu-btn:active {\n  box-shadow:\n    0 0 0 #a3b1c6,\n    0 0 0 #ffffff,\n    inset 4px 4px 8px #a3b1c6,\n    inset -4px -4px 8px #ffffff;\n}\n\n.neu-btn:focus-visible {\n  outline: 2px solid #4338ca;\n  outline-offset: 4px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "dark-neumorphism",
      "name": "Dark Neumorphism",
      "category": "shadows",
      "tags": [
        "neumorphic",
        "soft ui",
        "dark mode",
        "raised",
        "inset"
      ],
      "description": "Soft UI for dark themes: a raised tile holding a pressed-in knob, both shaded from one surface color.",
      "url": "https://copy-css.com/snippets/dark-neumorphism",
      "markdown": "https://copy-css.com/snippets/dark-neumorphism.md",
      "html": "<div class=\"neu-dark\">\n  <span class=\"neu-dark-knob\"></span>\n</div>",
      "css": ".neu-dark {\n  --surface: #1e2228;\n  --shade: #121519;\n  --light: #2a2f37;\n  display: grid;\n  place-items: center;\n  width: 150px;\n  height: 150px;\n  border-radius: 32px;\n  background: var(--surface);\n  box-shadow:\n    10px 10px 20px var(--shade),\n    -10px -10px 20px var(--light);\n}\n\n.neu-dark-knob {\n  width: 64px;\n  height: 64px;\n  border-radius: 50%;\n  background: var(--surface);\n  box-shadow:\n    inset 6px 6px 12px var(--shade),\n    inset -6px -6px 12px var(--light),\n    0 0 0 2px #22d3ee26;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--surface",
          "value": "#1e2228"
        },
        {
          "name": "--shade",
          "value": "#121519"
        },
        {
          "name": "--light",
          "value": "#2a2f37"
        }
      ]
    },
    {
      "id": "concave-neumorphism",
      "name": "Concave Neumorphism",
      "category": "shadows",
      "tags": [
        "convex",
        "neumorphic",
        "soft ui",
        "gradient",
        "dial"
      ],
      "description": "Convex and concave soft UI surfaces side by side, shaped by flipping one diagonal gradient.",
      "url": "https://copy-css.com/snippets/concave-neumorphism",
      "markdown": "https://copy-css.com/snippets/concave-neumorphism.md",
      "html": "<div class=\"neu-convex\"></div>\n<div class=\"neu-concave\"></div>",
      "css": ".neu-convex,\n.neu-concave {\n  width: 90px;\n  height: 90px;\n  border-radius: 50%;\n  box-shadow:\n    8px 8px 16px #b8bec7,\n    -8px -8px 16px #ffffff;\n}\n\n/* Light top-left = bulges out */\n.neu-convex {\n  background: linear-gradient(145deg, #f0f4f9, #caced4);\n}\n\n/* Dark top-left = dips in */\n.neu-concave {\n  background: linear-gradient(145deg, #caced4, #f0f4f9);\n}",
      "features": [
        "linear gradients",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "neumorphic-inset-field",
      "name": "Neumorphic Inset Field",
      "category": "shadows",
      "tags": [
        "neumorphic",
        "input",
        "search",
        "inset",
        "soft ui"
      ],
      "description": "A soft UI search field carved into the surface with paired inset shadows and a clear focus ring.",
      "url": "https://copy-css.com/snippets/neumorphic-inset-field",
      "markdown": "https://copy-css.com/snippets/neumorphic-inset-field.md",
      "html": "<label class=\"neu-field\">\n  <span>Search</span>\n  <input type=\"search\" placeholder=\"Find a snippet\">\n</label>",
      "css": ".neu-field {\n  display: grid;\n  gap: 8px;\n  width: 230px;\n  color: #475569;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.neu-field input {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 14px 18px;\n  border: 0;\n  border-radius: 14px;\n  background: #e0e5ec;\n  color: #1e293b;\n  font: 15px system-ui, sans-serif;\n  -webkit-appearance: none;\n  appearance: none;\n  box-shadow:\n    inset 5px 5px 10px #a3b1c6,\n    inset -5px -5px 10px #ffffff;\n}\n\n.neu-field input::placeholder {\n  color: #64748b;\n}\n\n.neu-field input:focus-visible {\n  outline: 2px solid #6366f1;\n  outline-offset: 3px;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "gradient-glow-shadow",
      "name": "Gradient Glow Shadow",
      "category": "shadows",
      "tags": [
        "rainbow",
        "blur",
        "colorful",
        "pseudo-element",
        "dark card"
      ],
      "description": "A rainbow gradient shadow glowing out from under a dark card, made from a blurred pseudo-element.",
      "url": "https://copy-css.com/snippets/gradient-glow-shadow",
      "markdown": "https://copy-css.com/snippets/gradient-glow-shadow.md",
      "html": "<div class=\"glow-gradient\">Pro</div>",
      "css": "/* Give the parent isolation: isolate if the glow hides behind its background */\n.glow-gradient {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 160px;\n  height: 110px;\n  border-radius: 18px;\n  background: #0f172a;\n  color: #f8fafc;\n  font: 700 22px system-ui, sans-serif;\n}\n\n.glow-gradient::before {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  inset: 0;\n  border-radius: inherit;\n  background: linear-gradient(90deg, #f43f5e, #a855f7, #3b82f6, #22d3ee);\n  filter: blur(20px);\n  opacity: 0.9;\n  transform: translateY(12px) scale(0.95);\n}",
      "features": [
        "transforms",
        "linear gradients",
        "filters",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "neon-border-glow",
      "name": "Neon Border Glow",
      "category": "shadows",
      "tags": [
        "neon",
        "tube",
        "inset",
        "dark",
        "sign",
        "cyberpunk"
      ],
      "description": "A neon-tube box that glows both inward and outward from its border, with matching glowing text.",
      "url": "https://copy-css.com/snippets/neon-border-glow",
      "markdown": "https://copy-css.com/snippets/neon-border-glow.md",
      "html": "<div class=\"neon-box\">ONLINE</div>",
      "css": ".neon-box {\n  --neon: #e879f9;\n  padding: 18px 30px;\n  border: 2px solid #f5d0fe;\n  border-radius: 14px;\n  color: #fdf4ff;\n  font: 700 18px/1 system-ui, sans-serif;\n  letter-spacing: 0.2em;\n  text-shadow: 0 0 8px var(--neon);\n  box-shadow:\n    0 0 6px var(--neon),\n    0 0 18px #d946ef,\n    0 0 42px #a21caf,\n    inset 0 0 6px var(--neon),\n    inset 0 0 18px #d946ef80;\n}",
      "features": [
        "box shadows",
        "text shadows",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--neon",
          "value": "#e879f9"
        }
      ]
    },
    {
      "id": "hover-glow-shadow",
      "name": "Colored Hover Shadow",
      "category": "shadows",
      "tags": [
        "glow",
        "hover",
        "card",
        "brand color",
        "transition"
      ],
      "description": "A card whose neutral shadow turns into a soft glow in its accent color on hover or keyboard focus.",
      "url": "https://copy-css.com/snippets/hover-glow-shadow",
      "markdown": "https://copy-css.com/snippets/hover-glow-shadow.md",
      "html": "<a class=\"glow-hover\" href=\"#\">\n  <strong>Analytics</strong>\n  <span>See what is working</span>\n</a>",
      "css": ".glow-hover {\n  --accent: #10b981;\n  display: grid;\n  gap: 4px;\n  width: 190px;\n  padding: 20px;\n  border-radius: 16px;\n  background: #ffffff;\n  color: #0f172a;\n  font: 15px/1.4 system-ui, sans-serif;\n  text-decoration: none;\n  box-shadow:\n    0 0 0 1px #e2e8f0,\n    0 4px 12px -4px #0f172a1f;\n  transition: box-shadow 0.3s ease, transform 0.3s ease;\n}\n\n.glow-hover span {\n  color: #64748b;\n}\n\n.glow-hover:hover,\n.glow-hover:focus-visible {\n  transform: translateY(-3px);\n  box-shadow:\n    0 0 0 1px var(--accent),\n    0 14px 34px -8px var(--accent);\n}\n\n.glow-hover:focus-visible {\n  outline: 2px solid #0f172a;\n  outline-offset: 4px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .glow-hover { transition: box-shadow 0.3s ease; }\n\n  .glow-hover:hover,\n  .glow-hover:focus-visible { transform: none; }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--accent",
          "value": "#10b981"
        }
      ]
    },
    {
      "id": "dual-color-glow",
      "name": "Dual Color Glow",
      "category": "shadows",
      "tags": [
        "two tone",
        "colored",
        "glow",
        "offset",
        "gradient look"
      ],
      "description": "Two colored glows bleeding from opposite corners of a white card, cyan top-left and pink bottom-right.",
      "url": "https://copy-css.com/snippets/dual-color-glow",
      "markdown": "https://copy-css.com/snippets/dual-color-glow.md",
      "html": "<div class=\"glow-duo\"></div>",
      "css": ".glow-duo {\n  width: 140px;\n  height: 140px;\n  border-radius: 24px;\n  background: #ffffff;\n  box-shadow:\n    -14px -12px 40px -6px #22d3ee99,\n    14px 12px 40px -6px #f472b699;\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "inner-glow",
      "name": "Inner Glow",
      "category": "shadows",
      "tags": [
        "inset",
        "glow",
        "dark",
        "edge light",
        "glassy"
      ],
      "description": "A dark panel lit from the inside edge with layered inset glows, like frosted acrylic.",
      "url": "https://copy-css.com/snippets/inner-glow",
      "markdown": "https://copy-css.com/snippets/inner-glow.md",
      "html": "<div class=\"inner-glow\"></div>",
      "css": ".inner-glow {\n  --glow: #38bdf8;\n  width: 170px;\n  height: 115px;\n  border-radius: 20px;\n  background: #0b1120;\n  box-shadow:\n    inset 0 0 0 1px #38bdf866,\n    inset 0 0 22px #38bdf84d,\n    inset 0 -40px 50px -30px var(--glow);\n}",
      "features": [
        "box shadows",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--glow",
          "value": "#38bdf8"
        }
      ]
    },
    {
      "id": "scroll-shadows",
      "name": "Scroll Shadows",
      "category": "shadows",
      "tags": [
        "overflow",
        "scroll hint",
        "background-attachment",
        "list",
        "no javascript"
      ],
      "description": "Shadows that appear at the top and bottom of a scroll box only while more content is hidden there.",
      "url": "https://copy-css.com/snippets/scroll-shadows",
      "markdown": "https://copy-css.com/snippets/scroll-shadows.md",
      "html": "<ul class=\"scroll-shadows\" tabindex=\"0\" aria-label=\"Release notes\">\n  <li>v2.6 Faster search</li>\n  <li>v2.5 Keyboard shortcuts</li>\n  <li>v2.4 Dark mode</li>\n  <li>v2.3 Team folders</li>\n  <li>v2.2 Export to PDF</li>\n  <li>v2.1 Comments</li>\n  <li>v2.0 New editor</li>\n</ul>",
      "css": "/* White covers move with the content (local) and hide the shadows at either end */\n.scroll-shadows {\n  box-sizing: border-box;\n  width: 220px;\n  max-height: 150px;\n  margin: 0;\n  padding: 0 16px;\n  overflow: auto;\n  border-radius: 12px;\n  list-style: none;\n  color: #334155;\n  font: 14px/1.4 system-ui, sans-serif;\n  background:\n    linear-gradient(#ffffff 30%, #ffffff00) top / 100% 40px no-repeat local,\n    linear-gradient(#ffffff00, #ffffff 70%) bottom / 100% 40px no-repeat local,\n    radial-gradient(farthest-side at 50% 0, #0f172a40, #0f172a00) top / 100% 14px no-repeat scroll,\n    radial-gradient(farthest-side at 50% 100%, #0f172a40, #0f172a00) bottom / 100% 14px no-repeat scroll,\n    #ffffff;\n}\n\n.scroll-shadows li {\n  padding: 10px 0;\n  border-bottom: 1px solid #f1f5f9;\n}\n\n.scroll-shadows:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}",
      "features": [
        "linear gradients",
        "radial gradients",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "inset-border-shadow",
      "name": "Inset Border Shadow",
      "category": "shadows",
      "tags": [
        "border",
        "no layout shift",
        "selected",
        "ring",
        "inset"
      ],
      "description": "Borders drawn with inset box-shadow, so hover and selected states never shift the layout.",
      "url": "https://copy-css.com/snippets/inset-border-shadow",
      "markdown": "https://copy-css.com/snippets/inset-border-shadow.md",
      "html": "<div class=\"inset-border\">Basic</div>\n<div class=\"inset-border is-selected\">Pro</div>\n<div class=\"inset-border\">Team</div>",
      "css": ".inset-border {\n  display: grid;\n  place-items: center;\n  width: 64px;\n  height: 64px;\n  border-radius: 14px;\n  background: #f8fafc;\n  color: #334155;\n  font: 600 14px system-ui, sans-serif;\n  box-shadow: inset 0 0 0 1px #e2e8f0;\n  transition: box-shadow 0.2s ease;\n}\n\n.inset-border:hover {\n  box-shadow: inset 0 0 0 2px #94a3b8;\n}\n\n/* Thicker ring, same box size: nothing around it moves */\n.inset-border.is-selected {\n  background: #eef2ff;\n  color: #3730a3;\n  box-shadow: inset 0 0 0 3px #6366f1;\n}",
      "features": [
        "transitions",
        "box shadows",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "material-elevation",
      "name": "Material Elevation Levels",
      "category": "shadows",
      "tags": [
        "material design",
        "umbra",
        "penumbra",
        "ambient",
        "dp"
      ],
      "description": "Material-style elevation at 1, 3, 6 and 12dp, each built from umbra, penumbra and ambient shadows.",
      "url": "https://copy-css.com/snippets/material-elevation",
      "markdown": "https://copy-css.com/snippets/material-elevation.md",
      "html": "<div class=\"md-surface md-elevation-1\">1</div>\n<div class=\"md-surface md-elevation-3\">3</div>\n<div class=\"md-surface md-elevation-6\">6</div>\n<div class=\"md-surface md-elevation-12\">12</div>",
      "css": ".md-surface {\n  --umbra: #00000033;\n  --penumbra: #00000024;\n  --ambient: #0000001f;\n  display: grid;\n  place-items: center;\n  width: 64px;\n  height: 64px;\n  border-radius: 8px;\n  background: #ffffff;\n  color: #616161;\n  font: 500 14px system-ui, sans-serif;\n}\n\n.md-elevation-1 {\n  box-shadow:\n    0 2px 1px -1px var(--umbra),\n    0 1px 1px 0 var(--penumbra),\n    0 1px 3px 0 var(--ambient);\n}\n\n.md-elevation-3 {\n  box-shadow:\n    0 3px 3px -2px var(--umbra),\n    0 3px 4px 0 var(--penumbra),\n    0 1px 8px 0 var(--ambient);\n}\n\n.md-elevation-6 {\n  box-shadow:\n    0 3px 5px -1px var(--umbra),\n    0 6px 10px 0 var(--penumbra),\n    0 1px 18px 0 var(--ambient);\n}\n\n.md-elevation-12 {\n  box-shadow:\n    0 7px 8px -4px var(--umbra),\n    0 12px 17px 2px var(--penumbra),\n    0 5px 22px 4px var(--ambient);\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--umbra",
          "value": "#00000033"
        },
        {
          "name": "--penumbra",
          "value": "#00000024"
        },
        {
          "name": "--ambient",
          "value": "#0000001f"
        }
      ]
    },
    {
      "id": "dark-mode-elevation",
      "name": "Dark Mode Elevation",
      "category": "shadows",
      "tags": [
        "dark theme",
        "surface",
        "lighter",
        "overlay",
        "levels"
      ],
      "description": "Elevation for dark themes, where higher surfaces get lighter instead of relying on shadows alone.",
      "url": "https://copy-css.com/snippets/dark-mode-elevation",
      "markdown": "https://copy-css.com/snippets/dark-mode-elevation.md",
      "html": "<div class=\"dm-surface dm-level-1\">1</div>\n<div class=\"dm-surface dm-level-2\">2</div>\n<div class=\"dm-surface dm-level-3\">3</div>\n<div class=\"dm-surface dm-level-4\">4</div>",
      "css": "/* Page background: #121212 */\n.dm-surface {\n  display: grid;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  border-radius: 12px;\n  color: #e0e0e0;\n  font: 600 14px system-ui, sans-serif;\n}\n\n.dm-level-1 {\n  background: #1e1e1e;\n  box-shadow: 0 1px 2px #00000066;\n}\n\n.dm-level-2 {\n  background: #242424;\n  box-shadow: 0 2px 6px #00000080;\n}\n\n.dm-level-3 {\n  background: #2c2c2c;\n  box-shadow: 0 6px 14px #00000099;\n}\n\n.dm-level-4 {\n  background: #383838;\n  box-shadow: 0 12px 28px #000000b3;\n}",
      "features": [
        "box shadows",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "tinted-elevation",
      "name": "Tinted Elevation Scale",
      "category": "shadows",
      "tags": [
        "colored",
        "color-mix",
        "brand",
        "levels",
        "design tokens"
      ],
      "description": "An elevation scale whose shadows are tinted with your brand color, so they look clean on colored pages.",
      "url": "https://copy-css.com/snippets/tinted-elevation",
      "markdown": "https://copy-css.com/snippets/tinted-elevation.md",
      "html": "<div class=\"tinted-elevation tinted-elevation-1\"></div>\n<div class=\"tinted-elevation tinted-elevation-2\"></div>\n<div class=\"tinted-elevation tinted-elevation-3\"></div>",
      "css": ".tinted-elevation {\n  --tint: #4338ca;\n  width: 64px;\n  height: 64px;\n  border-radius: 16px;\n  background: #ffffff;\n}\n\n.tinted-elevation-1 {\n  box-shadow:\n    0 1px 2px color-mix(in srgb, var(--tint) 20%, transparent),\n    0 2px 6px -1px color-mix(in srgb, var(--tint) 16%, transparent);\n}\n\n.tinted-elevation-2 {\n  box-shadow:\n    0 2px 4px color-mix(in srgb, var(--tint) 16%, transparent),\n    0 10px 20px -6px color-mix(in srgb, var(--tint) 28%, transparent);\n}\n\n.tinted-elevation-3 {\n  box-shadow:\n    0 4px 8px color-mix(in srgb, var(--tint) 14%, transparent),\n    0 24px 44px -12px color-mix(in srgb, var(--tint) 40%, transparent);\n}",
      "features": [
        "box shadows",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--tint",
          "value": "#4338ca"
        }
      ]
    },
    {
      "id": "popover-shadow",
      "name": "Popover Shadow",
      "category": "shadows",
      "tags": [
        "dropdown",
        "menu",
        "overlay",
        "tooltip",
        "hairline"
      ],
      "description": "A crisp, high-elevation shadow for popovers and dropdowns, with a hairline edge and a matching arrow.",
      "url": "https://copy-css.com/snippets/popover-shadow",
      "markdown": "https://copy-css.com/snippets/popover-shadow.md",
      "html": "<div class=\"popover-panel\">\n  <strong>Saved to library</strong>\n  <p>Find it under Favorites any time.</p>\n</div>",
      "css": ".popover-panel {\n  position: relative;\n  width: 220px;\n  padding: 14px 16px;\n  border-radius: 12px;\n  background: #ffffff;\n  color: #475569;\n  font: 14px/1.45 system-ui, sans-serif;\n  box-shadow:\n    0 0 0 1px #0f172a14,\n    0 4px 6px -2px #0f172a14,\n    0 12px 24px -6px #0f172a29,\n    0 24px 48px -12px #0f172a1f;\n}\n\n/* Arrow: a rotated square sharing the hairline edge */\n.popover-panel::before {\n  content: \"\";\n  position: absolute;\n  top: -6px;\n  left: 24px;\n  width: 12px;\n  height: 12px;\n  background: #ffffff;\n  box-shadow: -1px -1px 0 #0f172a14;\n  transform: rotate(45deg);\n}\n\n.popover-panel strong {\n  display: block;\n  margin-bottom: 2px;\n  color: #0f172a;\n}\n\n.popover-panel p {\n  margin: 0;\n}",
      "features": [
        "transforms",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "ring-spinner",
      "name": "Ring Spinner",
      "category": "loaders",
      "tags": [
        "spinner",
        "loading",
        "circle",
        "rotate"
      ],
      "description": "The essential loading spinner: a single element with a colored arc.",
      "url": "https://copy-css.com/snippets/ring-spinner",
      "markdown": "https://copy-css.com/snippets/ring-spinner.md",
      "html": "<div class=\"spinner\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".spinner {\n  width: 48px;\n  height: 48px;\n  border: 5px solid #e5e7eb;\n  border-top-color: #6366f1;\n  border-radius: 50%;\n  animation: spin 0.8s linear infinite;\n}\n\n@keyframes spin {\n  to { transform: rotate(360deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .spinner {\n    animation-duration: 2s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "bouncing-dots",
      "name": "Bouncing Dots",
      "category": "loaders",
      "tags": [
        "dots",
        "loading",
        "typing",
        "bounce"
      ],
      "description": "Three dots bouncing in sequence, great for typing and loading states.",
      "url": "https://copy-css.com/snippets/bouncing-dots",
      "markdown": "https://copy-css.com/snippets/bouncing-dots.md",
      "html": "<div class=\"loader-dots\" role=\"status\" aria-label=\"Loading\">\n  <span></span>\n  <span></span>\n  <span></span>\n</div>",
      "css": ".loader-dots {\n  display: flex;\n  gap: 8px;\n}\n\n.loader-dots span {\n  width: 14px;\n  height: 14px;\n  border-radius: 50%;\n  background: #0ea5e9;\n  animation: loader-dots-bounce 0.6s ease-in-out infinite alternate;\n}\n\n.loader-dots span:nth-child(2) { animation-delay: 0.2s; }\n.loader-dots span:nth-child(3) { animation-delay: 0.4s; }\n\n@keyframes loader-dots-bounce {\n  to {\n    transform: translateY(-14px);\n    opacity: 0.4;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-dots span {\n    animation-duration: 1.5s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "pulse-ring",
      "name": "Pulse Ring",
      "category": "loaders",
      "tags": [
        "pulse",
        "status",
        "online",
        "ping"
      ],
      "description": "A dot that sends out a fading ring, ideal for online or live indicators.",
      "url": "https://copy-css.com/snippets/pulse-ring",
      "markdown": "https://copy-css.com/snippets/pulse-ring.md",
      "html": "<span class=\"pulse-dot\"></span>",
      "css": ".pulse-dot {\n  display: block;\n  width: 18px;\n  height: 18px;\n  border-radius: 50%;\n  background: #10b981;\n  animation: pulse-ring 1.6s ease-out infinite;\n}\n\n@keyframes pulse-ring {\n  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }\n  100% { box-shadow: 0 0 0 26px rgba(16, 185, 129, 0); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .pulse-dot {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "box shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "progress-bar",
      "name": "Indeterminate Progress Bar",
      "category": "loaders",
      "tags": [
        "progress",
        "bar",
        "loading",
        "linear"
      ],
      "description": "A slim gradient progress bar that slides endlessly while content loads.",
      "url": "https://copy-css.com/snippets/progress-bar",
      "markdown": "https://copy-css.com/snippets/progress-bar.md",
      "html": "<div class=\"progress-bar\" role=\"progressbar\" aria-label=\"Loading\"></div>",
      "css": ".progress-bar {\n  position: relative;\n  overflow: hidden;\n  width: 220px;\n  height: 6px;\n  border-radius: 999px;\n  background: #e5e7eb;\n}\n\n.progress-bar::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  width: 40%;\n  border-radius: inherit;\n  background: linear-gradient(90deg, #6366f1, #ec4899);\n  animation: progress-slide 1.2s ease-in-out infinite;\n}\n\n@keyframes progress-slide {\n  from { transform: translateX(-100%); }\n  to { transform: translateX(250%); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .progress-bar::before {\n    animation-duration: 2.4s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "linear gradients",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "skeleton-loader",
      "name": "Skeleton Shimmer",
      "category": "loaders",
      "tags": [
        "skeleton",
        "placeholder",
        "shimmer",
        "loading"
      ],
      "description": "Shimmering placeholder lines that show content is on its way.",
      "url": "https://copy-css.com/snippets/skeleton-loader",
      "markdown": "https://copy-css.com/snippets/skeleton-loader.md",
      "html": "<div class=\"skeleton-card\">\n  <div class=\"skeleton skeleton-title\"></div>\n  <div class=\"skeleton\"></div>\n  <div class=\"skeleton skeleton-short\"></div>\n</div>",
      "css": ".skeleton-card {\n  display: grid;\n  gap: 12px;\n}\n\n.skeleton {\n  width: 220px;\n  height: 14px;\n  border-radius: 7px;\n  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%);\n  background-size: 400% 100%;\n  animation: shimmer 1.4s ease infinite;\n}\n\n.skeleton-title {\n  width: 140px;\n  height: 20px;\n}\n\n.skeleton-short {\n  width: 160px;\n}\n\n@keyframes shimmer {\n  from { background-position: 100% 50%; }\n  to { background-position: 0 50%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .skeleton {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "gradient-spinner",
      "name": "Gradient Spinner",
      "category": "loaders",
      "tags": [
        "spinner",
        "conic-gradient",
        "mask",
        "loading",
        "purple"
      ],
      "description": "A smooth spinner with a fading gradient tail, made from one element and a mask.",
      "url": "https://copy-css.com/snippets/gradient-spinner",
      "markdown": "https://copy-css.com/snippets/gradient-spinner.md",
      "html": "<div class=\"spinner-gradient\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".spinner-gradient {\n  width: 52px;\n  height: 52px;\n  border-radius: 50%;\n  background: conic-gradient(from 0deg, transparent, #8b5cf6);\n  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));\n  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));\n  animation: gradient-spin 0.9s linear infinite;\n}\n\n@keyframes gradient-spin {\n  to { transform: rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .spinner-gradient {\n    animation-duration: 2s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "radial gradients",
        "conic gradients",
        "masks",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "equalizer-bars",
      "name": "Equalizer Bars",
      "category": "loaders",
      "tags": [
        "bars",
        "equalizer",
        "audio",
        "loading",
        "music"
      ],
      "description": "Five bars bouncing like an audio equalizer. Great for music apps.",
      "url": "https://copy-css.com/snippets/equalizer-bars",
      "markdown": "https://copy-css.com/snippets/equalizer-bars.md",
      "html": "<div class=\"bars\" role=\"status\" aria-label=\"Loading\">\n  <span></span>\n  <span></span>\n  <span></span>\n  <span></span>\n  <span></span>\n</div>",
      "css": ".bars {\n  display: flex;\n  align-items: center;\n  gap: 5px;\n  height: 40px;\n}\n\n.bars span {\n  width: 6px;\n  height: 100%;\n  border-radius: 3px;\n  background: #f59e0b;\n  animation: bars-scale 1s ease-in-out infinite;\n}\n\n.bars span:nth-child(2) { animation-delay: -0.8s; }\n.bars span:nth-child(3) { animation-delay: -0.6s; }\n.bars span:nth-child(4) { animation-delay: -0.4s; }\n.bars span:nth-child(5) { animation-delay: -0.2s; }\n\n@keyframes bars-scale {\n  0%, 100% { transform: scaleY(0.3); }\n  50% { transform: scaleY(1); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .bars span {\n    animation-duration: 2s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "orbit-loader",
      "name": "Orbit Loader",
      "category": "loaders",
      "tags": [
        "orbit",
        "planet",
        "spinner",
        "loading",
        "glow"
      ],
      "description": "A glowing dot orbiting a dashed ring. Calm and a little playful.",
      "url": "https://copy-css.com/snippets/orbit-loader",
      "markdown": "https://copy-css.com/snippets/orbit-loader.md",
      "html": "<div class=\"orbit\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".orbit {\n  position: relative;\n  width: 56px;\n  height: 56px;\n  border: 2px dashed #a5b4c8;\n  border-radius: 50%;\n  animation: orbit-spin 1.6s linear infinite;\n}\n\n.orbit::before {\n  content: \"\";\n  position: absolute;\n  top: -7px;\n  left: calc(50% - 6px);\n  width: 12px;\n  height: 12px;\n  border-radius: 50%;\n  background: #06b6d4;\n  box-shadow: 0 0 12px #06b6d4;\n}\n\n@keyframes orbit-spin {\n  to { transform: rotate(360deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .orbit {\n    animation-duration: 3.2s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "box shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "striped-progress",
      "name": "Striped Progress Bar",
      "category": "loaders",
      "tags": [
        "progress",
        "stripes",
        "bar",
        "animated",
        "determinate"
      ],
      "description": "A progress bar with moving candy stripes. Set the inner width to the percentage.",
      "url": "https://copy-css.com/snippets/striped-progress",
      "markdown": "https://copy-css.com/snippets/striped-progress.md",
      "html": "<div class=\"progress-striped\" role=\"progressbar\" aria-valuenow=\"65\" aria-valuemin=\"0\" aria-valuemax=\"100\">\n  <div style=\"width: 65%\"></div>\n</div>",
      "css": ".progress-striped {\n  width: 220px;\n  height: 14px;\n  padding: 3px;\n  border-radius: 999px;\n  background: #e2e8f0;\n}\n\n.progress-striped div {\n  height: 100%;\n  border-radius: inherit;\n  background: repeating-linear-gradient(45deg, #3b82f6 0 10px, #60a5fa 10px 20px);\n  background-size: 28.28px 28.28px;\n  animation: stripes-move 1s linear infinite;\n}\n\n@keyframes stripes-move {\n  to { background-position: 28.28px 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .progress-striped div {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "square-flip-loader",
      "name": "Flipping Square",
      "category": "loaders",
      "tags": [
        "3d",
        "flip",
        "square",
        "loading",
        "perspective"
      ],
      "description": "A square that flips in 3D on both axes. A tiny, eye-catching loader.",
      "url": "https://copy-css.com/snippets/square-flip-loader",
      "markdown": "https://copy-css.com/snippets/square-flip-loader.md",
      "html": "<div class=\"flip-loader\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".flip-loader {\n  width: 40px;\n  height: 40px;\n  border-radius: 6px;\n  background: #ec4899;\n  animation: square-flip 1.2s ease-in-out infinite;\n}\n\n@keyframes square-flip {\n  0% { transform: perspective(120px) rotateX(0) rotateY(0); }\n  50% { transform: perspective(120px) rotateX(-180deg) rotateY(0); }\n  100% { transform: perspective(120px) rotateX(-180deg) rotateY(-180deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .flip-loader {\n    animation-duration: 2.4s;\n  }\n}",
      "features": [
        "keyframe animations",
        "3D transforms",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "grid-pulse-loader",
      "name": "Grid Pulse Loader",
      "category": "loaders",
      "tags": [
        "grid",
        "squares",
        "pulse",
        "stagger",
        "spinner"
      ],
      "description": "A 3×3 grid of squares that pulse in a diagonal wave.",
      "url": "https://copy-css.com/snippets/grid-pulse-loader",
      "markdown": "https://copy-css.com/snippets/grid-pulse-loader.md",
      "html": "<div class=\"grid-pulse\" role=\"status\" aria-label=\"Loading\">\n  <span></span><span></span><span></span>\n  <span></span><span></span><span></span>\n  <span></span><span></span><span></span>\n</div>",
      "css": ".grid-pulse {\n  display: grid;\n  grid-template-columns: repeat(3, 12px);\n  gap: 5px;\n}\n\n.grid-pulse span {\n  width: 12px;\n  height: 12px;\n  border-radius: 3px;\n  background: #38bdf8;\n  animation: grid-pulse 1.2s ease-in-out infinite;\n}\n\n/* Delay by diagonal: (row + column) × 0.1s */\n.grid-pulse span:nth-child(2),\n.grid-pulse span:nth-child(4) { animation-delay: 0.1s; }\n.grid-pulse span:nth-child(3),\n.grid-pulse span:nth-child(5),\n.grid-pulse span:nth-child(7) { animation-delay: 0.2s; }\n.grid-pulse span:nth-child(6),\n.grid-pulse span:nth-child(8) { animation-delay: 0.3s; }\n.grid-pulse span:nth-child(9) { animation-delay: 0.4s; }\n\n@keyframes grid-pulse {\n  0%, 60%, 100% { transform: scale(1); opacity: 1; }\n  30% { transform: scale(0.4); opacity: 0.4; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .grid-pulse span {\n    animation-duration: 2.4s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "typing-indicator",
      "name": "Typing Indicator",
      "category": "loaders",
      "tags": [
        "chat",
        "typing",
        "dots",
        "bubble",
        "message"
      ],
      "description": "A chat bubble with three softly rising dots while someone types.",
      "url": "https://copy-css.com/snippets/typing-indicator",
      "markdown": "https://copy-css.com/snippets/typing-indicator.md",
      "html": "<div class=\"typing-indicator\" role=\"status\" aria-label=\"Someone is typing\">\n  <span></span><span></span><span></span>\n</div>",
      "css": ".typing-indicator {\n  display: inline-flex;\n  gap: 5px;\n  padding: 14px 16px;\n  border-radius: 18px 18px 18px 4px;\n  background: #fff;\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n}\n\n.typing-indicator span {\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  background: #a1a1aa;\n  animation: typing-indicator-rise 1.2s ease-in-out infinite;\n}\n\n.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }\n.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }\n\n@keyframes typing-indicator-rise {\n  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }\n  30% { transform: translateY(-5px); opacity: 1; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .typing-indicator span {\n    animation-duration: 2.4s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "box shadows",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "circular-progress",
      "name": "Circular Progress",
      "category": "loaders",
      "tags": [
        "progress",
        "circle",
        "conic-gradient",
        "percentage",
        "determinate"
      ],
      "description": "A circular progress ring driven by a single --value custom property.",
      "url": "https://copy-css.com/snippets/circular-progress",
      "markdown": "https://copy-css.com/snippets/circular-progress.md",
      "html": "<div class=\"progress-ring\" style=\"--value: 72\" role=\"progressbar\" aria-valuenow=\"72\" aria-valuemin=\"0\" aria-valuemax=\"100\">72%</div>",
      "css": ".progress-ring {\n  --value: 0; /* 0 to 100 */\n  --track: #e2e8f0;\n  --fill: #8b5cf6;\n  display: grid;\n  place-items: center;\n  width: 96px;\n  height: 96px;\n  border-radius: 50%;\n  background:\n    radial-gradient(closest-side, #fff 78%, transparent 79%),\n    conic-gradient(var(--fill) calc(var(--value) * 1%), var(--track) 0);\n  color: #1e293b;\n  font: 700 20px/1 system-ui, sans-serif;\n}",
      "features": [
        "radial gradients",
        "conic gradients",
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--value",
          "value": "0"
        },
        {
          "name": "--track",
          "value": "#e2e8f0"
        },
        {
          "name": "--fill",
          "value": "#8b5cf6"
        }
      ]
    },
    {
      "id": "clock-loader",
      "name": "Clock Loader",
      "category": "loaders",
      "tags": [
        "clock",
        "hands",
        "rotate",
        "waiting",
        "time"
      ],
      "description": "A tiny clock face whose hands spin while you wait.",
      "url": "https://copy-css.com/snippets/clock-loader",
      "markdown": "https://copy-css.com/snippets/clock-loader.md",
      "html": "<div class=\"clock-loader\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".clock-loader {\n  position: relative;\n  width: 44px;\n  height: 44px;\n  border: 4px solid #ea580c;\n  border-radius: 50%;\n}\n\n.clock-loader::before,\n.clock-loader::after {\n  content: \"\";\n  position: absolute;\n  left: calc(50% - 2px);\n  bottom: 50%;\n  width: 4px;\n  border-radius: 2px;\n  background: #ea580c;\n  transform-origin: 50% 100%;\n  animation: clock-spin linear infinite;\n}\n\n/* Minute hand */\n.clock-loader::before {\n  height: 15px;\n  animation-duration: 1s;\n}\n\n/* Hour hand */\n.clock-loader::after {\n  height: 10px;\n  animation-duration: 12s;\n}\n\n@keyframes clock-spin {\n  to { transform: rotate(360deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .clock-loader::before {\n    animation-duration: 4s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "segmented-spinner",
      "name": "Segmented Spinner",
      "category": "loaders",
      "tags": [
        "spinner",
        "ios",
        "segments",
        "conic",
        "mask",
        "loading"
      ],
      "description": "A system-style spinner with fading segments, drawn from one element with a conic gradient and a mask.",
      "url": "https://copy-css.com/snippets/segmented-spinner",
      "markdown": "https://copy-css.com/snippets/segmented-spinner.md",
      "html": "<div class=\"spinner-seg\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".spinner-seg {\n  width: 48px;\n  height: 48px;\n  border-radius: 50%;\n  background: conic-gradient(rgba(14, 165, 233, 0.08), #0ea5e9);\n  -webkit-mask:\n    radial-gradient(farthest-side, transparent 52%, #000 54%),\n    repeating-conic-gradient(#000 0 20deg, transparent 0 30deg);\n  -webkit-mask-composite: source-in;\n  mask:\n    radial-gradient(farthest-side, transparent 52%, #000 54%),\n    repeating-conic-gradient(#000 0 20deg, transparent 0 30deg);\n  mask-composite: intersect;\n  animation: spinner-seg 1s steps(12) infinite;\n}\n\n@keyframes spinner-seg {\n  to { transform: rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .spinner-seg {\n    animation-duration: 2s;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "radial gradients",
        "conic gradients",
        "masks",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "animated-ellipsis",
      "name": "Animated Ellipsis",
      "category": "loaders",
      "tags": [
        "ellipsis",
        "dots",
        "loading",
        "text",
        "steps"
      ],
      "description": "Loading text whose three dots appear one by one, using clip-path and a stepped animation.",
      "url": "https://copy-css.com/snippets/animated-ellipsis",
      "markdown": "https://copy-css.com/snippets/animated-ellipsis.md",
      "html": "<p class=\"loading-dots\">Loading</p>",
      "css": ".loading-dots {\n  margin: 0;\n  color: #334155;\n  font: 600 20px system-ui, sans-serif;\n}\n\n.loading-dots::after {\n  content: \"...\";\n  display: inline-block;\n  clip-path: inset(0 100% 0 0);\n  animation: ellipsis 1.4s steps(4, jump-none) infinite;\n}\n\n@keyframes ellipsis {\n  to { clip-path: inset(0); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loading-dots::after {\n    clip-path: none;\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "clip paths",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "heartbeat-loader",
      "name": "Heartbeat Loader",
      "category": "loaders",
      "tags": [
        "heartbeat",
        "pulse",
        "ecg",
        "svg",
        "stroke",
        "health"
      ],
      "description": "A pulse line that traces across like a heart monitor, using an SVG stroke dash animation.",
      "url": "https://copy-css.com/snippets/heartbeat-loader",
      "markdown": "https://copy-css.com/snippets/heartbeat-loader.md",
      "html": "<svg class=\"heartbeat\" viewBox=\"0 0 120 40\" role=\"img\" aria-label=\"Loading\">\n  <path pathLength=\"100\" d=\"M0 20H34L40 10 46 30 54 4 62 36 68 20H120\"/>\n</svg>",
      "css": ".heartbeat {\n  width: 160px;\n  height: 54px;\n  overflow: visible;\n}\n\n.heartbeat path {\n  fill: none;\n  stroke: #ef4444;\n  stroke-width: 2.5;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-dasharray: 30 100;\n  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.7));\n  animation: heartbeat 1.6s linear infinite;\n}\n\n@keyframes heartbeat {\n  from { stroke-dashoffset: 30; }\n  to { stroke-dashoffset: -100; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .heartbeat path {\n    animation-duration: 3.2s;\n  }\n}",
      "features": [
        "keyframe animations",
        "filters",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "text-fill-loader",
      "name": "Text Fill Loader",
      "category": "loaders",
      "tags": [
        "text",
        "fill",
        "loading",
        "background-clip",
        "progress"
      ],
      "description": "The word “Loading” fills with color from left to right, using background-clip: text.",
      "url": "https://copy-css.com/snippets/text-fill-loader",
      "markdown": "https://copy-css.com/snippets/text-fill-loader.md",
      "html": "<div class=\"text-loader\" role=\"status\">Loading</div>",
      "css": ".text-loader {\n  color: transparent;\n  font: 800 34px/1 system-ui, sans-serif;\n  letter-spacing: 0.04em;\n  text-transform: uppercase;\n  background:\n    linear-gradient(#6366f1 0 0) left / 0% 100% no-repeat,\n    #e2e8f0;\n  -webkit-background-clip: text;\n  background-clip: text;\n  animation: text-fill 2s ease-in-out infinite;\n}\n\n@keyframes text-fill {\n  to { background-size: 100% 100%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-loader {\n    animation-duration: 4s;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "gradient-clipped text",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "nested-rings-spinner",
      "name": "Nested Rings Spinner",
      "category": "loaders",
      "tags": [
        "arcs",
        "circles",
        "concentric",
        "multicolor",
        "rotate"
      ],
      "description": "Three nested arcs in different colors spinning at different speeds, built from one element.",
      "url": "https://copy-css.com/snippets/nested-rings-spinner",
      "markdown": "https://copy-css.com/snippets/nested-rings-spinner.md",
      "html": "<div class=\"spinner-nested\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".spinner-nested {\n  position: relative;\n  width: 64px;\n  height: 64px;\n  border: 3px solid transparent;\n  border-top-color: #6366f1;\n  border-radius: 50%;\n  animation: spinner-nested-spin 1.4s linear infinite;\n}\n\n.spinner-nested::before,\n.spinner-nested::after {\n  content: \"\";\n  position: absolute;\n  border: 3px solid transparent;\n  border-radius: 50%;\n}\n\n.spinner-nested::before {\n  inset: 5px;\n  border-top-color: #ec4899;\n  animation: spinner-nested-spin 1s linear infinite reverse;\n}\n\n.spinner-nested::after {\n  inset: 15px;\n  border-top-color: #f59e0b;\n  animation: spinner-nested-spin 0.7s linear infinite;\n}\n\n@keyframes spinner-nested-spin {\n  to { transform: rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .spinner-nested,\n  .spinner-nested::before,\n  .spinner-nested::after { animation-duration: 3s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "material-spinner",
      "name": "Material Spinner",
      "category": "loaders",
      "tags": [
        "svg",
        "stroke-dasharray",
        "android",
        "circular",
        "indeterminate"
      ],
      "description": "The Material Design circular spinner: an SVG arc that grows and shrinks while it rotates.",
      "url": "https://copy-css.com/snippets/material-spinner",
      "markdown": "https://copy-css.com/snippets/material-spinner.md",
      "html": "<svg class=\"spinner-material\" viewBox=\"0 0 50 50\" role=\"status\" aria-label=\"Loading\">\n  <circle cx=\"25\" cy=\"25\" r=\"20\"/>\n</svg>",
      "css": ".spinner-material {\n  width: 48px;\n  height: 48px;\n  animation: spinner-material-rotate 2s linear infinite;\n}\n\n.spinner-material circle {\n  fill: none;\n  stroke: #2563eb;\n  stroke-width: 4;\n  stroke-linecap: round;\n  stroke-dasharray: 1 150;\n  animation: spinner-material-dash 1.5s ease-in-out infinite;\n}\n\n@keyframes spinner-material-rotate {\n  to { transform: rotate(1turn); }\n}\n\n@keyframes spinner-material-dash {\n  0% { stroke-dasharray: 1 150; stroke-dashoffset: 0; }\n  50% { stroke-dasharray: 90 150; stroke-dashoffset: -35; }\n  100% { stroke-dasharray: 90 150; stroke-dashoffset: -124; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .spinner-material { animation-duration: 4s; }\n  .spinner-material circle { animation: none; stroke-dasharray: 90 150; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "hourglass-loader",
      "name": "Hourglass Loader",
      "category": "loaders",
      "tags": [
        "sand",
        "waiting",
        "flip",
        "border triangles",
        "timer"
      ],
      "description": "A minimal hourglass made of two border triangles whose sand drains before it flips over.",
      "url": "https://copy-css.com/snippets/hourglass-loader",
      "markdown": "https://copy-css.com/snippets/hourglass-loader.md",
      "html": "<div class=\"loader-hourglass\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".loader-hourglass {\n  width: 0;\n  height: 0;\n  border: 22px solid transparent;\n  border-top-color: #b45309;\n  border-bottom-color: #fde68a;\n  animation: loader-hourglass-flip 2s ease-in-out infinite;\n}\n\n/* Sand drains from top to bottom, then the glass turns over */\n@keyframes loader-hourglass-flip {\n  0% {\n    border-top-color: #b45309;\n    border-bottom-color: #fde68a;\n    transform: rotate(0);\n  }\n  75% {\n    border-top-color: #fde68a;\n    border-bottom-color: #b45309;\n    transform: rotate(0);\n  }\n  100% {\n    border-top-color: #fde68a;\n    border-bottom-color: #b45309;\n    transform: rotate(180deg);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-hourglass { animation-duration: 4s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "dot-circle-spinner",
      "name": "Dot Circle Spinner",
      "category": "loaders",
      "tags": [
        "classic",
        "fading",
        "radial-gradient",
        "steps",
        "single element"
      ],
      "description": "A classic ring of eight fading dots, drawn with radial gradients on one element and turned in steps.",
      "url": "https://copy-css.com/snippets/dot-circle-spinner",
      "markdown": "https://copy-css.com/snippets/dot-circle-spinner.md",
      "html": "<div class=\"spinner-dot-circle\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".spinner-dot-circle {\n  --c: #0284c7;\n  width: 52px;\n  height: 52px;\n  background:\n    radial-gradient(circle at 50% 9%, var(--c) 4.5px, #0000 5px),\n    radial-gradient(circle at 79% 21%, color-mix(in srgb, var(--c) 88%, #0000) 4.5px, #0000 5px),\n    radial-gradient(circle at 91% 50%, color-mix(in srgb, var(--c) 76%, #0000) 4.5px, #0000 5px),\n    radial-gradient(circle at 79% 79%, color-mix(in srgb, var(--c) 64%, #0000) 4.5px, #0000 5px),\n    radial-gradient(circle at 50% 91%, color-mix(in srgb, var(--c) 52%, #0000) 4.5px, #0000 5px),\n    radial-gradient(circle at 21% 79%, color-mix(in srgb, var(--c) 40%, #0000) 4.5px, #0000 5px),\n    radial-gradient(circle at 9% 50%, color-mix(in srgb, var(--c) 28%, #0000) 4.5px, #0000 5px),\n    radial-gradient(circle at 21% 21%, color-mix(in srgb, var(--c) 16%, #0000) 4.5px, #0000 5px);\n  animation: spinner-dot-circle-turn 0.9s steps(8) infinite;\n}\n\n@keyframes spinner-dot-circle-turn {\n  to { transform: rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .spinner-dot-circle { animation-duration: 2.4s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "radial gradients",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--c",
          "value": "#0284c7"
        }
      ]
    },
    {
      "id": "pie-timer-loader",
      "name": "Pie Timer Loader",
      "category": "loaders",
      "tags": [
        "countdown",
        "svg",
        "stroke-dasharray",
        "sweep",
        "clock"
      ],
      "description": "A pie that fills clockwise like a countdown, made with a thick SVG stroke and stroke-dasharray.",
      "url": "https://copy-css.com/snippets/pie-timer-loader",
      "markdown": "https://copy-css.com/snippets/pie-timer-loader.md",
      "html": "<svg class=\"loader-pie\" viewBox=\"0 0 32 32\" role=\"status\" aria-label=\"Loading\">\n  <circle cx=\"16\" cy=\"16\" r=\"8\"/>\n</svg>",
      "css": ".loader-pie {\n  width: 56px;\n  height: 56px;\n  border-radius: 50%;\n  background: #fecdd3;\n  transform: rotate(-90deg);\n}\n\n/* r = 8 and stroke-width = 16 turn the stroke into a filled pie (2πr ≈ 50.3) */\n.loader-pie circle {\n  fill: none;\n  stroke: #e11d48;\n  stroke-width: 16;\n  stroke-dasharray: 0 50.3;\n  animation: loader-pie-fill 2s linear infinite;\n}\n\n@keyframes loader-pie-fill {\n  to { stroke-dasharray: 50.3 50.3; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-pie circle { animation-duration: 5s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "infinity-loader",
      "name": "Infinity Loader",
      "category": "loaders",
      "tags": [
        "figure eight",
        "svg",
        "path",
        "stroke-dashoffset",
        "snake"
      ],
      "description": "A glowing segment that races endlessly around a figure-eight SVG path.",
      "url": "https://copy-css.com/snippets/infinity-loader",
      "markdown": "https://copy-css.com/snippets/infinity-loader.md",
      "html": "<svg class=\"loader-infinity\" viewBox=\"0 0 48 24\" role=\"status\" aria-label=\"Loading\">\n  <path class=\"loader-infinity-track\" d=\"M24 12C20 4 6 4 6 12s14 8 18 0 18-8 18 0-14 8-18 0\"/>\n  <path class=\"loader-infinity-snake\" pathLength=\"100\" d=\"M24 12C20 4 6 4 6 12s14 8 18 0 18-8 18 0-14 8-18 0\"/>\n</svg>",
      "css": ".loader-infinity {\n  width: 120px;\n  height: 60px;\n  overflow: visible;\n}\n\n.loader-infinity path {\n  fill: none;\n  stroke-width: 3;\n  stroke-linecap: round;\n}\n\n.loader-infinity-track {\n  stroke: #1e293b;\n}\n\n.loader-infinity-snake {\n  stroke: #22d3ee;\n  stroke-dasharray: 22 78;\n  filter: drop-shadow(0 0 3px #22d3ee);\n  animation: loader-infinity-run 1.6s linear infinite;\n}\n\n@keyframes loader-infinity-run {\n  to { stroke-dashoffset: -100; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-infinity-snake { animation-duration: 4s; }\n}",
      "features": [
        "keyframe animations",
        "filters",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "loading-overlay",
      "name": "Loading Overlay",
      "category": "loaders",
      "tags": [
        "backdrop-filter",
        "blur",
        "card",
        "aria-busy",
        "spinner"
      ],
      "description": "A frosted overlay with a spinner that covers any card or section while it has aria-busy set.",
      "url": "https://copy-css.com/snippets/loading-overlay",
      "markdown": "https://copy-css.com/snippets/loading-overlay.md",
      "html": "<section class=\"overlay-panel\" aria-busy=\"true\">\n  <h3>Monthly report</h3>\n  <p>Revenue grew 12% compared with last month, led by annual plans.</p>\n  <div class=\"loading-overlay\" role=\"status\" aria-label=\"Loading\"></div>\n</section>",
      "css": ".overlay-panel {\n  position: relative;\n  width: min(100%, 280px);\n  padding: 20px;\n  border-radius: 16px;\n  background: #fff;\n  color: #334155;\n  font: 15px/1.5 system-ui, sans-serif;\n  box-shadow: 0 4px 16px #0f172a14;\n}\n\n.overlay-panel h3 {\n  margin: 0 0 6px;\n  color: #0f172a;\n  font-size: 17px;\n}\n\n.overlay-panel p {\n  margin: 0;\n}\n\n.loading-overlay {\n  position: absolute;\n  inset: 0;\n  display: none;\n  place-items: center;\n  border-radius: inherit;\n  background: #ffffffa6;\n  -webkit-backdrop-filter: blur(3px);\n  backdrop-filter: blur(3px);\n}\n\n/* Show the overlay only while the section is busy */\n[aria-busy=\"true\"] > .loading-overlay {\n  display: grid;\n}\n\n.loading-overlay::after {\n  content: \"\";\n  width: 32px;\n  height: 32px;\n  border: 3px solid #cbd5e1;\n  border-top-color: #4f46e5;\n  border-radius: 50%;\n  animation: loading-overlay-spin 0.8s linear infinite;\n}\n\n@keyframes loading-overlay-spin {\n  to { transform: rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loading-overlay::after { animation-duration: 2s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "box shadows",
        "backdrop filters",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "sliding-dots-loader",
      "name": "Sliding Dots Loader",
      "category": "loaders",
      "tags": [
        "gliding",
        "windows",
        "horizontal",
        "ease",
        "stagger"
      ],
      "description": "Small dots that glide across a line, slowing down in the middle, like the classic Windows loader.",
      "url": "https://copy-css.com/snippets/sliding-dots-loader",
      "markdown": "https://copy-css.com/snippets/sliding-dots-loader.md",
      "html": "<div class=\"loader-slide\" role=\"status\" aria-label=\"Loading\">\n  <span></span><span></span><span></span><span></span>\n</div>",
      "css": ".loader-slide {\n  position: relative;\n  width: 180px;\n  height: 8px;\n}\n\n.loader-slide span {\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  background: #2563eb;\n  opacity: 0;\n  animation: loader-slide-move 2.6s linear infinite;\n}\n\n.loader-slide span:nth-child(2) { animation-delay: 0.18s; }\n.loader-slide span:nth-child(3) { animation-delay: 0.36s; }\n.loader-slide span:nth-child(4) { animation-delay: 0.54s; }\n\n@keyframes loader-slide-move {\n  0% { left: 0; opacity: 0; }\n  15% { opacity: 1; }\n  40% { left: 44%; }\n  60% { left: 52%; }\n  85% { opacity: 1; }\n  100% { left: calc(100% - 8px); opacity: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-slide span { animation-duration: 5s; }\n}",
      "features": [
        "keyframe animations",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "dot-swap-loader",
      "name": "Dot Swap Loader",
      "category": "loaders",
      "tags": [
        "dots",
        "orbit",
        "two colors",
        "trade places",
        "z-index"
      ],
      "description": "Two colored dots that circle around each other and trade places, passing in front and behind.",
      "url": "https://copy-css.com/snippets/dot-swap-loader",
      "markdown": "https://copy-css.com/snippets/dot-swap-loader.md",
      "html": "<div class=\"loader-swap\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".loader-swap {\n  position: relative;\n  width: 44px;\n  height: 16px;\n}\n\n.loader-swap::before,\n.loader-swap::after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  width: 16px;\n  height: 16px;\n  border-radius: 50%;\n  animation: 1.1s ease-in-out infinite;\n}\n\n.loader-swap::before {\n  left: 0;\n  background: #f43f5e;\n  animation-name: loader-swap-a;\n}\n\n.loader-swap::after {\n  right: 0;\n  z-index: 1;\n  background: #06b6d4;\n  animation-name: loader-swap-b;\n}\n\n@keyframes loader-swap-a {\n  0% { transform: translateX(0); z-index: 2; }\n  25% { transform: translateX(14px) scale(1.3); z-index: 2; }\n  49% { z-index: 2; }\n  50% { transform: translateX(28px); z-index: 0; }\n  75% { transform: translateX(14px) scale(0.7); z-index: 0; }\n  100% { transform: translateX(0); z-index: 0; }\n}\n\n@keyframes loader-swap-b {\n  0% { transform: translateX(0); }\n  25% { transform: translateX(-14px) scale(0.7); }\n  50% { transform: translateX(-28px); }\n  75% { transform: translateX(-14px) scale(1.3); }\n  100% { transform: translateX(0); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-swap::before,\n  .loader-swap::after { animation-duration: 3s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "bouncing-ball-loader",
      "name": "Bouncing Ball Loader",
      "category": "loaders",
      "tags": [
        "bounce",
        "squash",
        "shadow",
        "physics",
        "playful"
      ],
      "description": "A ball that bounces with a squash on landing and a shadow that grows as it falls.",
      "url": "https://copy-css.com/snippets/bouncing-ball-loader",
      "markdown": "https://copy-css.com/snippets/bouncing-ball-loader.md",
      "html": "<div class=\"loader-ball\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".loader-ball {\n  position: relative;\n  width: 40px;\n  height: 84px;\n}\n\n.loader-ball::before {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 8px;\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  background: #ea580c;\n  transform-origin: 50% 100%;\n  animation: loader-ball-bounce 0.5s cubic-bezier(0.5, 0, 1, 0.5) infinite alternate;\n}\n\n.loader-ball::after {\n  content: \"\";\n  position: absolute;\n  bottom: 0;\n  left: 6px;\n  width: 28px;\n  height: 6px;\n  border-radius: 50%;\n  background: #7c2d1240;\n  animation: loader-ball-shadow 0.5s cubic-bezier(0.5, 0, 1, 0.5) infinite alternate;\n}\n\n@keyframes loader-ball-bounce {\n  0% { transform: translateY(0); }\n  85% { transform: translateY(54px) scale(1, 1); }\n  100% { transform: translateY(54px) scale(1.2, 0.8); }\n}\n\n@keyframes loader-ball-shadow {\n  from { transform: scale(0.5); opacity: 0.4; }\n  to { transform: scale(1); opacity: 1; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-ball::before,\n  .loader-ball::after { animation-duration: 1.2s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "gooey-dots-loader",
      "name": "Gooey Dots Loader",
      "category": "loaders",
      "tags": [
        "metaball",
        "blur",
        "contrast",
        "filter",
        "liquid"
      ],
      "description": "Two dots that melt into each other like liquid as they pass, using the blur and contrast filter trick.",
      "url": "https://copy-css.com/snippets/gooey-dots-loader",
      "markdown": "https://copy-css.com/snippets/gooey-dots-loader.md",
      "html": "<div class=\"loader-gooey\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": "/* The container needs a solid background for the contrast trick to work */\n.loader-gooey {\n  position: relative;\n  width: 120px;\n  height: 44px;\n  background: #fff;\n  filter: contrast(20);\n}\n\n.loader-gooey::before,\n.loader-gooey::after {\n  content: \"\";\n  position: absolute;\n  top: 10px;\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  background: #000;\n  filter: blur(5px);\n}\n\n.loader-gooey::before {\n  left: 48px;\n}\n\n.loader-gooey::after {\n  left: 8px;\n  animation: loader-gooey-move 1.8s ease-in-out infinite alternate;\n}\n\n@keyframes loader-gooey-move {\n  to { transform: translateX(80px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-gooey::after { animation-duration: 4s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "filters",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "newtons-cradle-loader",
      "name": "Newton's Cradle Loader",
      "category": "loaders",
      "tags": [
        "pendulum",
        "swing",
        "physics",
        "balls",
        "desk toy"
      ],
      "description": "A Newton's cradle where the outer balls swing out and knock the row in turn.",
      "url": "https://copy-css.com/snippets/newtons-cradle-loader",
      "markdown": "https://copy-css.com/snippets/newtons-cradle-loader.md",
      "html": "<div class=\"loader-cradle\" role=\"status\" aria-label=\"Loading\">\n  <span></span><span></span><span></span><span></span>\n</div>",
      "css": ".loader-cradle {\n  display: flex;\n  border-top: 2px solid #94a3b8;\n}\n\n.loader-cradle span {\n  position: relative;\n  width: 18px;\n  height: 56px;\n  transform-origin: 50% 0;\n}\n\n/* String */\n.loader-cradle span::before {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: 50%;\n  width: 1px;\n  height: 40px;\n  background: #94a3b8;\n}\n\n/* Ball */\n.loader-cradle span::after {\n  content: \"\";\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  width: 18px;\n  height: 18px;\n  border-radius: 50%;\n  background: radial-gradient(circle at 35% 30%, #94a3b8, #334155 60%);\n}\n\n.loader-cradle span:first-child {\n  animation: loader-cradle-left 1.2s infinite;\n}\n\n.loader-cradle span:last-child {\n  animation: loader-cradle-right 1.2s infinite;\n}\n\n@keyframes loader-cradle-left {\n  0% { transform: rotate(0); animation-timing-function: ease-out; }\n  25% { transform: rotate(35deg); animation-timing-function: ease-in; }\n  50%, 100% { transform: rotate(0); }\n}\n\n@keyframes loader-cradle-right {\n  0%, 50% { transform: rotate(0); animation-timing-function: ease-out; }\n  75% { transform: rotate(-35deg); animation-timing-function: ease-in; }\n  100% { transform: rotate(0); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-cradle span:first-child,\n  .loader-cradle span:last-child { animation-duration: 3s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "radial gradients",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "signal-bars-loader",
      "name": "Signal Bars Loader",
      "category": "loaders",
      "tags": [
        "wifi",
        "connecting",
        "strength",
        "network",
        "stagger"
      ],
      "description": "Four rising bars that light up one after another, like a phone searching for signal.",
      "url": "https://copy-css.com/snippets/signal-bars-loader",
      "markdown": "https://copy-css.com/snippets/signal-bars-loader.md",
      "html": "<div class=\"loader-signal\" role=\"status\" aria-label=\"Connecting\">\n  <span></span><span></span><span></span><span></span>\n</div>",
      "css": ".loader-signal {\n  display: flex;\n  align-items: flex-end;\n  gap: 5px;\n  height: 36px;\n}\n\n.loader-signal span {\n  width: 8px;\n  height: 25%;\n  border-radius: 2px;\n  background: #16a34a;\n  opacity: 0.2;\n  animation: loader-signal-light 1.6s ease-in-out infinite;\n}\n\n.loader-signal span:nth-child(2) { height: 50%; animation-delay: 0.2s; }\n.loader-signal span:nth-child(3) { height: 75%; animation-delay: 0.4s; }\n.loader-signal span:nth-child(4) { height: 100%; animation-delay: 0.6s; }\n\n@keyframes loader-signal-light {\n  0%, 10% { opacity: 0.2; }\n  30%, 70% { opacity: 1; }\n  90%, 100% { opacity: 0.2; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-signal span { animation-duration: 3.2s; }\n}",
      "features": [
        "keyframe animations",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "battery-loader",
      "name": "Battery Charging Loader",
      "category": "loaders",
      "tags": [
        "charge",
        "power",
        "steps",
        "level",
        "energy"
      ],
      "description": "A battery outline that fills up in four steps, ideal for charging or power-related loading states.",
      "url": "https://copy-css.com/snippets/battery-loader",
      "markdown": "https://copy-css.com/snippets/battery-loader.md",
      "html": "<div class=\"loader-battery\" role=\"status\" aria-label=\"Charging\"></div>",
      "css": ".loader-battery {\n  position: relative;\n  box-sizing: border-box;\n  width: 68px;\n  height: 34px;\n  padding: 3px;\n  border: 3px solid #334155;\n  border-radius: 7px;\n}\n\n/* Terminal */\n.loader-battery::after {\n  content: \"\";\n  position: absolute;\n  top: 50%;\n  right: -8px;\n  width: 4px;\n  height: 12px;\n  border-radius: 0 2px 2px 0;\n  background: #334155;\n  transform: translateY(-50%);\n}\n\n/* Charge level */\n.loader-battery::before {\n  content: \"\";\n  display: block;\n  width: 100%;\n  height: 100%;\n  border-radius: 3px;\n  background: #22c55e;\n  animation: loader-battery-charge 2.4s steps(4, jump-start) infinite;\n}\n\n@keyframes loader-battery-charge {\n  from { width: 0; }\n  to { width: 100%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-battery::before { animation-duration: 5s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "led-scanner-loader",
      "name": "LED Scanner Loader",
      "category": "loaders",
      "tags": [
        "scanning",
        "sweep",
        "segments",
        "retro",
        "red light",
        "mask"
      ],
      "description": "A row of LED segments with a red light sweeping back and forth, in the style of an 80s car scanner.",
      "url": "https://copy-css.com/snippets/led-scanner-loader",
      "markdown": "https://copy-css.com/snippets/led-scanner-loader.md",
      "html": "<div class=\"loader-scanner\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".loader-scanner {\n  width: 136px;\n  height: 10px;\n  background:\n    linear-gradient(90deg, #0000, #ef4444, #fca5a5, #ef4444, #0000) 0 0 / 40% 100% no-repeat,\n    #3b0a0a;\n  /* Cut the bar into 7 segments */\n  -webkit-mask: repeating-linear-gradient(90deg, #000 0 16px, #0000 16px 20px);\n  mask: repeating-linear-gradient(90deg, #000 0 16px, #0000 16px 20px);\n  animation: loader-scanner-sweep 1.2s ease-in-out infinite alternate;\n}\n\n@keyframes loader-scanner-sweep {\n  to { background-position: 100% 0, 0 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-scanner { animation-duration: 3s; }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "masks",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "writing-lines-loader",
      "name": "Writing Lines Loader",
      "category": "loaders",
      "tags": [
        "ai",
        "generating",
        "text",
        "document",
        "typing"
      ],
      "description": "Gradient lines that draw themselves in one after another, great for \"generating response\" states.",
      "url": "https://copy-css.com/snippets/writing-lines-loader",
      "markdown": "https://copy-css.com/snippets/writing-lines-loader.md",
      "html": "<div class=\"loader-lines\" role=\"status\" aria-label=\"Generating response\">\n  <span></span><span></span><span></span>\n</div>",
      "css": ".loader-lines {\n  display: grid;\n  gap: 9px;\n  width: 200px;\n}\n\n.loader-lines span {\n  height: 10px;\n  border-radius: 5px;\n  background: linear-gradient(90deg, #a78bfa, #60a5fa);\n  transform-origin: left;\n  animation: loader-lines-write 2.4s ease-in-out infinite;\n}\n\n.loader-lines span:nth-child(2) {\n  width: 85%;\n  animation-delay: 0.3s;\n}\n\n.loader-lines span:nth-child(3) {\n  width: 55%;\n  animation-delay: 0.6s;\n}\n\n@keyframes loader-lines-write {\n  0% { transform: scaleX(0); opacity: 1; }\n  40%, 75% { transform: scaleX(1); opacity: 1; }\n  100% { transform: scaleX(1); opacity: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-lines span { animation: none; opacity: 0.7; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "linear gradients",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "falling-blocks-loader",
      "name": "Falling Blocks Loader",
      "category": "loaders",
      "tags": [
        "squares",
        "drop",
        "stack",
        "tetris",
        "stagger"
      ],
      "description": "Three colored blocks that drop into place one by one, hold, then fade out and repeat.",
      "url": "https://copy-css.com/snippets/falling-blocks-loader",
      "markdown": "https://copy-css.com/snippets/falling-blocks-loader.md",
      "html": "<div class=\"loader-blocks\" role=\"status\" aria-label=\"Loading\">\n  <span></span><span></span><span></span>\n</div>",
      "css": ".loader-blocks {\n  display: flex;\n  align-items: flex-end;\n  gap: 4px;\n  height: 64px;\n}\n\n.loader-blocks span {\n  width: 18px;\n  height: 18px;\n  border-radius: 4px;\n  background: #7c3aed;\n  opacity: 0;\n  animation: loader-blocks-drop 2s cubic-bezier(0.3, 0, 0.3, 1.4) infinite;\n}\n\n.loader-blocks span:nth-child(2) {\n  background: #db2777;\n  animation-delay: 0.2s;\n}\n\n.loader-blocks span:nth-child(3) {\n  background: #f59e0b;\n  animation-delay: 0.4s;\n}\n\n@keyframes loader-blocks-drop {\n  0% { transform: translateY(-46px); opacity: 0; }\n  20%, 70% { transform: translateY(0); opacity: 1; }\n  90%, 100% { transform: translateY(0); opacity: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-blocks span { animation: none; opacity: 1; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "top-loading-bar",
      "name": "Top Loading Bar",
      "category": "loaders",
      "tags": [
        "page load",
        "nprogress",
        "youtube",
        "fixed",
        "route change",
        "glow"
      ],
      "description": "A thin glowing bar pinned to the top of the page that eases toward the end while a page loads.",
      "url": "https://copy-css.com/snippets/top-loading-bar",
      "markdown": "https://copy-css.com/snippets/top-loading-bar.md",
      "html": "<div class=\"top-loading-bar\" role=\"progressbar\" aria-label=\"Loading page\"></div>",
      "css": ".top-loading-bar {\n  position: fixed;\n  top: 0;\n  left: 0;\n  z-index: 1000;\n  width: 0;\n  height: 3px;\n  border-radius: 0 3px 3px 0;\n  background: #2563eb;\n  box-shadow: 0 0 8px #2563eb, 0 0 2px #2563eb;\n  /* Fast at first, then slows to a crawl near the end. Remove the element when the load finishes. */\n  animation: top-loading-bar-grow 8s cubic-bezier(0.1, 0.7, 0.2, 1) forwards;\n}\n\n@keyframes top-loading-bar-grow {\n  0% { width: 0; }\n  20% { width: 45%; }\n  100% { width: 92%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .top-loading-bar { animation: none; width: 60%; }\n}",
      "features": [
        "keyframe animations",
        "box shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "styled-progress-element",
      "name": "Styled Progress Element",
      "category": "loaders",
      "tags": [
        "native",
        "html5",
        "webkit",
        "moz",
        "accessible",
        "upload"
      ],
      "description": "A native progress element restyled for Chrome, Safari and Firefox, with a rounded gradient fill.",
      "url": "https://copy-css.com/snippets/styled-progress-element",
      "markdown": "https://copy-css.com/snippets/styled-progress-element.md",
      "html": "<label class=\"progress-native-label\">\n  Uploading files… 70%\n  <progress class=\"progress-native\" value=\"70\" max=\"100\">70%</progress>\n</label>",
      "css": ".progress-native-label {\n  display: grid;\n  gap: 8px;\n  width: min(100%, 260px);\n  color: #334155;\n  font: 600 14px/1.2 system-ui, sans-serif;\n}\n\n.progress-native {\n  -webkit-appearance: none;\n  appearance: none;\n  width: 100%;\n  height: 10px;\n  overflow: hidden;\n  border: 0;\n  border-radius: 999px;\n  background: #e2e8f0;\n}\n\n/* Chrome, Edge, Safari */\n.progress-native::-webkit-progress-bar {\n  border-radius: 999px;\n  background: #e2e8f0;\n}\n\n.progress-native::-webkit-progress-value {\n  border-radius: 999px;\n  background: linear-gradient(90deg, #06b6d4, #3b82f6);\n  transition: width 0.3s ease;\n}\n\n/* Firefox */\n.progress-native::-moz-progress-bar {\n  border-radius: 999px;\n  background: linear-gradient(90deg, #06b6d4, #3b82f6);\n}",
      "features": [
        "transitions",
        "linear gradients",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "liquid-fill-progress",
      "name": "Liquid Fill Progress",
      "category": "loaders",
      "tags": [
        "wave",
        "water",
        "circle",
        "percentage",
        "rotating"
      ],
      "description": "A round gauge that fills with gently waving water up to the value set in a custom property.",
      "url": "https://copy-css.com/snippets/liquid-fill-progress",
      "markdown": "https://copy-css.com/snippets/liquid-fill-progress.md",
      "html": "<div class=\"liquid-progress\" style=\"--progress: 60\" role=\"progressbar\" aria-label=\"Loading\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\">60%</div>",
      "css": ".liquid-progress {\n  --progress: 50;\n  position: relative;\n  isolation: isolate;\n  display: grid;\n  place-items: center;\n  width: 120px;\n  height: 120px;\n  overflow: hidden;\n  border: 4px solid #0ea5e9;\n  border-radius: 50%;\n  background: #e0f2fe;\n  color: #0c4a6e;\n  font: 800 24px/1 system-ui, sans-serif;\n}\n\n/* Two big rotating rounded squares make the wavy surface */\n.liquid-progress::before,\n.liquid-progress::after {\n  content: \"\";\n  position: absolute;\n  top: calc((100 - var(--progress)) * 1% - 8px);\n  left: 50%;\n  z-index: -1;\n  width: 220%;\n  aspect-ratio: 1;\n  border-radius: 42%;\n  translate: -50% 0;\n  animation: liquid-progress-wave 7s linear infinite;\n}\n\n.liquid-progress::before {\n  background: #7dd3fc;\n}\n\n.liquid-progress::after {\n  top: calc((100 - var(--progress)) * 1% - 4px);\n  border-radius: 45%;\n  background: #38bdf8;\n  animation-duration: 10s;\n}\n\n@keyframes liquid-progress-wave {\n  to { rotate: 1turn; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .liquid-progress::before,\n  .liquid-progress::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "CSS Grid",
        "aspect-ratio",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--progress",
          "value": "50"
        }
      ]
    },
    {
      "id": "labeled-progress-bar",
      "name": "Labeled Progress Bar",
      "category": "loaders",
      "tags": [
        "determinate",
        "storage",
        "usage",
        "percentage",
        "quota"
      ],
      "description": "A determinate progress bar with a title, percentage and caption, like a storage usage meter.",
      "url": "https://copy-css.com/snippets/labeled-progress-bar",
      "markdown": "https://copy-css.com/snippets/labeled-progress-bar.md",
      "html": "<div class=\"progress-labeled\">\n  <div class=\"progress-labeled-head\"><span>Storage</span><span>72%</span></div>\n  <div class=\"progress-labeled-track\" style=\"--value: 72%\" role=\"progressbar\" aria-label=\"Storage used\" aria-valuenow=\"72\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div>\n  <small>36 GB of 50 GB used</small>\n</div>",
      "css": ".progress-labeled {\n  display: grid;\n  gap: 8px;\n  width: min(100%, 280px);\n  color: #18181b;\n  font: 14px/1.3 system-ui, sans-serif;\n}\n\n.progress-labeled-head {\n  display: flex;\n  justify-content: space-between;\n  font-weight: 600;\n  font-variant-numeric: tabular-nums;\n}\n\n.progress-labeled-track {\n  --value: 0%;\n  height: 8px;\n  overflow: hidden;\n  border-radius: 999px;\n  background: #ede9fe;\n}\n\n.progress-labeled-track::before {\n  content: \"\";\n  display: block;\n  width: var(--value);\n  height: 100%;\n  border-radius: inherit;\n  background: linear-gradient(90deg, #8b5cf6, #6d28d9);\n  transition: width 0.4s ease;\n}\n\n.progress-labeled small {\n  color: #71717a;\n  font-size: 12px;\n}",
      "features": [
        "transitions",
        "linear gradients",
        "CSS Grid",
        "Flexbox",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--value",
          "value": "0%"
        }
      ]
    },
    {
      "id": "segmented-progress-bar",
      "name": "Segmented Progress Bar",
      "category": "loaders",
      "tags": [
        "steps",
        "blocks",
        "onboarding",
        "mask",
        "custom property"
      ],
      "description": "A progress bar split into equal blocks that fill up to a step count, for onboarding or quizzes.",
      "url": "https://copy-css.com/snippets/segmented-progress-bar",
      "markdown": "https://copy-css.com/snippets/segmented-progress-bar.md",
      "html": "<div class=\"progress-segments\" style=\"--value: 6\" role=\"progressbar\" aria-label=\"Step 6 of 10\" aria-valuenow=\"6\" aria-valuemin=\"0\" aria-valuemax=\"10\"></div>",
      "css": ".progress-segments {\n  --value: 0;\n  --segments: 10;\n  --gap: 4px;\n  width: min(100%, 260px);\n  height: 12px;\n  background: linear-gradient(\n    90deg,\n    #16a34a calc(var(--value) / var(--segments) * 100%),\n    #d1fae5 0\n  );\n  /* Cut the bar into equal blocks with gaps between them */\n  -webkit-mask: repeating-linear-gradient(\n    90deg,\n    #000 0 calc(100% / var(--segments) - var(--gap)),\n    #0000 0 calc(100% / var(--segments))\n  );\n  mask: repeating-linear-gradient(\n    90deg,\n    #000 0 calc(100% / var(--segments) - var(--gap)),\n    #0000 0 calc(100% / var(--segments))\n  );\n}",
      "features": [
        "linear gradients",
        "masks",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--value",
          "value": "0"
        },
        {
          "name": "--segments",
          "value": "10"
        },
        {
          "name": "--gap",
          "value": "4px"
        }
      ]
    },
    {
      "id": "semicircle-gauge",
      "name": "Semicircle Gauge",
      "category": "loaders",
      "tags": [
        "meter",
        "conic-gradient",
        "dashboard",
        "score",
        "speedometer"
      ],
      "description": "A half-circle gauge drawn with a conic gradient and a mask, showing a score from 0 to 100.",
      "url": "https://copy-css.com/snippets/semicircle-gauge",
      "markdown": "https://copy-css.com/snippets/semicircle-gauge.md",
      "html": "<div class=\"gauge-semi\" style=\"--value: 68\" role=\"meter\" aria-label=\"Score\" aria-valuenow=\"68\" aria-valuemin=\"0\" aria-valuemax=\"100\">68</div>",
      "css": ".gauge-semi {\n  --value: 0;\n  position: relative;\n  display: grid;\n  place-items: end center;\n  width: 200px;\n  aspect-ratio: 2 / 1;\n  overflow: hidden;\n  color: #78350f;\n  font: 800 40px/1 system-ui, sans-serif;\n}\n\n/* A full ring, with its bottom half hidden by overflow */\n.gauge-semi::before {\n  content: \"\";\n  position: absolute;\n  inset: 0 0 -100%;\n  border-radius: 50%;\n  background: conic-gradient(\n    from -90deg,\n    #f59e0b calc(var(--value) * 1.8deg),\n    #fde68a 0 180deg,\n    #0000 0\n  );\n  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 22px), #000 calc(100% - 21px));\n  mask: radial-gradient(farthest-side, #0000 calc(100% - 22px), #000 calc(100% - 21px));\n}",
      "features": [
        "radial gradients",
        "conic gradients",
        "masks",
        "CSS Grid",
        "aspect-ratio",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--value",
          "value": "0"
        }
      ]
    },
    {
      "id": "skeleton-card",
      "name": "Skeleton Card",
      "category": "loaders",
      "tags": [
        "placeholder",
        "shimmer",
        "image",
        "content loading",
        "sweep"
      ],
      "description": "A card-shaped placeholder with an image, title and text lines, swept by a single shine layer.",
      "url": "https://copy-css.com/snippets/skeleton-card",
      "markdown": "https://copy-css.com/snippets/skeleton-card.md",
      "html": "<div class=\"skel-card\" role=\"status\" aria-label=\"Loading content\">\n  <div class=\"skel-card-media\"></div>\n  <div class=\"skel-card-line skel-card-title\"></div>\n  <div class=\"skel-card-line\"></div>\n  <div class=\"skel-card-line skel-card-short\"></div>\n</div>",
      "css": ".skel-card {\n  position: relative;\n  display: grid;\n  gap: 8px;\n  width: min(100%, 220px);\n  padding: 12px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 2px 10px #0f172a12;\n}\n\n.skel-card-media {\n  aspect-ratio: 2 / 1;\n  border-radius: 10px;\n  background: #e5e7eb;\n}\n\n.skel-card-line {\n  height: 12px;\n  border-radius: 6px;\n  background: #e5e7eb;\n}\n\n.skel-card-title {\n  width: 70%;\n  height: 16px;\n  margin-top: 4px;\n}\n\n.skel-card-short {\n  width: 45%;\n}\n\n/* One shine layer sweeps across the whole card */\n.skel-card::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(100deg, #fff0 20%, #ffffffb3 50%, #fff0 80%);\n  transform: translateX(-100%);\n  animation: skel-card-sweep 1.6s ease-in-out infinite;\n}\n\n@keyframes skel-card-sweep {\n  to { transform: translateX(100%); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .skel-card::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "linear gradients",
        "box shadows",
        "CSS Grid",
        "aspect-ratio",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "skeleton-list",
      "name": "Skeleton List",
      "category": "loaders",
      "tags": [
        "placeholder",
        "avatar",
        "comments",
        "rows",
        "wave"
      ],
      "description": "Placeholder rows with an avatar and two text lines that pulse in a wave from top to bottom.",
      "url": "https://copy-css.com/snippets/skeleton-list",
      "markdown": "https://copy-css.com/snippets/skeleton-list.md",
      "html": "<div class=\"skel-list\" role=\"status\" aria-label=\"Loading list\">\n  <div class=\"skel-list-item\"><span class=\"skel-list-avatar\"></span><span class=\"skel-list-lines\"></span></div>\n  <div class=\"skel-list-item\"><span class=\"skel-list-avatar\"></span><span class=\"skel-list-lines\"></span></div>\n  <div class=\"skel-list-item\"><span class=\"skel-list-avatar\"></span><span class=\"skel-list-lines\"></span></div>\n</div>",
      "css": ".skel-list {\n  display: grid;\n  gap: 18px;\n  width: min(100%, 280px);\n}\n\n.skel-list-item {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n.skel-list-item:nth-child(2) { --delay: 0.15s; }\n.skel-list-item:nth-child(3) { --delay: 0.3s; }\n\n.skel-list-avatar {\n  flex: none;\n  width: 44px;\n  height: 44px;\n  border-radius: 50%;\n}\n\n.skel-list-lines {\n  display: grid;\n  flex: 1;\n  gap: 8px;\n}\n\n.skel-list-lines::before,\n.skel-list-lines::after {\n  content: \"\";\n  height: 12px;\n  border-radius: 6px;\n}\n\n.skel-list-lines::before {\n  width: 55%;\n}\n\n.skel-list-avatar,\n.skel-list-lines::before,\n.skel-list-lines::after {\n  background: #e2e8f0;\n  animation: skel-list-fade 0.9s ease-in-out infinite alternate;\n  animation-delay: var(--delay, 0s);\n}\n\n@keyframes skel-list-fade {\n  to { background: #f8fafc; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .skel-list-avatar,\n  .skel-list-lines::before,\n  .skel-list-lines::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "CSS Grid",
        "Flexbox",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--delay",
          "value": "0.15s"
        }
      ]
    },
    {
      "id": "skeleton-profile",
      "name": "Skeleton Profile",
      "category": "loaders",
      "tags": [
        "placeholder",
        "pulse",
        "avatar",
        "cover",
        "user card"
      ],
      "description": "A profile card placeholder with cover, avatar, name and buttons that gently pulses its opacity.",
      "url": "https://copy-css.com/snippets/skeleton-profile",
      "markdown": "https://copy-css.com/snippets/skeleton-profile.md",
      "html": "<div class=\"skel-profile\" role=\"status\" aria-label=\"Loading profile\">\n  <div class=\"skel-profile-cover\"></div>\n  <div class=\"skel-profile-avatar\"></div>\n  <div class=\"skel-profile-name\"></div>\n  <div class=\"skel-profile-bio\"></div>\n  <div class=\"skel-profile-actions\"><span></span><span></span></div>\n</div>",
      "css": ".skel-profile {\n  width: min(100%, 250px);\n  padding-bottom: 18px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 2px 10px #0f172a12;\n  animation: skel-profile-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\n.skel-profile-cover {\n  height: 56px;\n  background: #e2e8f0;\n}\n\n.skel-profile-avatar {\n  width: 64px;\n  height: 64px;\n  margin: -32px auto 0;\n  border: 4px solid #fff;\n  border-radius: 50%;\n  background: #cbd5e1;\n}\n\n.skel-profile-name,\n.skel-profile-bio,\n.skel-profile-actions span {\n  border-radius: 999px;\n  background: #e2e8f0;\n}\n\n.skel-profile-name {\n  width: 50%;\n  height: 14px;\n  margin: 12px auto 8px;\n}\n\n.skel-profile-bio {\n  width: 72%;\n  height: 10px;\n  margin: 0 auto 16px;\n}\n\n.skel-profile-actions {\n  display: flex;\n  justify-content: center;\n  gap: 8px;\n}\n\n.skel-profile-actions span {\n  width: 80px;\n  height: 30px;\n}\n\n@keyframes skel-profile-pulse {\n  50% { opacity: 0.5; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .skel-profile { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "box shadows",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "skeleton-table",
      "name": "Skeleton Table",
      "category": "loaders",
      "tags": [
        "placeholder",
        "data grid",
        "rows",
        "columns",
        "shimmer"
      ],
      "description": "A table placeholder with a header row and shimmering cells laid out with CSS Grid columns.",
      "url": "https://copy-css.com/snippets/skeleton-table",
      "markdown": "https://copy-css.com/snippets/skeleton-table.md",
      "html": "<div class=\"skel-table\" role=\"status\" aria-label=\"Loading table\">\n  <div class=\"skel-table-row\"><span></span><span></span><span></span></div>\n  <div class=\"skel-table-row\"><span></span><span></span><span></span></div>\n  <div class=\"skel-table-row\"><span></span><span></span><span></span></div>\n  <div class=\"skel-table-row\"><span></span><span></span><span></span></div>\n</div>",
      "css": ".skel-table {\n  width: min(100%, 300px);\n  overflow: hidden;\n  border: 1px solid #e5e7eb;\n  border-radius: 12px;\n  background: #fff;\n}\n\n.skel-table-row {\n  display: grid;\n  grid-template-columns: 2fr 1fr 1fr;\n  align-items: center;\n  gap: 16px;\n  padding: 14px 16px;\n  border-top: 1px solid #f1f5f9;\n}\n\n.skel-table span {\n  height: 10px;\n  border-radius: 5px;\n  background: linear-gradient(90deg, #e5e7eb 30%, #f3f4f6 50%, #e5e7eb 70%) 0 0 / 300% 100%;\n  animation: skel-table-shine 1.6s linear infinite;\n}\n\n.skel-table span:last-child {\n  width: 60%;\n  justify-self: end;\n}\n\n/* Header row */\n.skel-table-row:first-child {\n  border-top: 0;\n  background: #f8fafc;\n}\n\n.skel-table-row:first-child span {\n  width: 50%;\n  height: 8px;\n  background: #cbd5e1;\n  animation: none;\n}\n\n@keyframes skel-table-shine {\n  from { background-position: 100% 0; }\n  to { background-position: 0 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .skel-table span { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "skeleton-image",
      "name": "Skeleton Image",
      "category": "loaders",
      "tags": [
        "placeholder",
        "photo",
        "aspect-ratio",
        "lazy loading",
        "shimmer"
      ],
      "description": "An image placeholder that keeps its aspect ratio and shows a photo icon under a diagonal shimmer.",
      "url": "https://copy-css.com/snippets/skeleton-image",
      "markdown": "https://copy-css.com/snippets/skeleton-image.md",
      "html": "<div class=\"skel-image\" role=\"status\" aria-label=\"Loading image\"></div>",
      "css": ".skel-image {\n  position: relative;\n  width: min(100%, 280px);\n  aspect-ratio: 4 / 3;\n  overflow: hidden;\n  border-radius: 14px;\n  background: #e5e7eb;\n}\n\n/* Photo icon */\n.skel-image::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  width: 48px;\n  height: 48px;\n  margin: auto;\n  background: #cbd5e1;\n  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E\") center / contain no-repeat;\n  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E\") center / contain no-repeat;\n}\n\n.skel-image::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(120deg, #fff0 30%, #ffffff99 50%, #fff0 70%) 0 0 / 250% 100%;\n  animation: skel-image-shine 1.8s ease-in-out infinite;\n}\n\n@keyframes skel-image-shine {\n  from { background-position: 100% 0; }\n  to { background-position: 0 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .skel-image::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "masks",
        "aspect-ratio",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "skeleton-chat",
      "name": "Skeleton Chat",
      "category": "loaders",
      "tags": [
        "placeholder",
        "messages",
        "bubbles",
        "conversation",
        "pulse"
      ],
      "description": "Chat bubble placeholders for incoming and outgoing messages that pulse while a thread loads.",
      "url": "https://copy-css.com/snippets/skeleton-chat",
      "markdown": "https://copy-css.com/snippets/skeleton-chat.md",
      "html": "<div class=\"skel-chat\" role=\"status\" aria-label=\"Loading messages\">\n  <div class=\"skel-chat-msg\"></div>\n  <div class=\"skel-chat-msg skel-chat-wide\"></div>\n  <div class=\"skel-chat-msg skel-chat-me\"></div>\n  <div class=\"skel-chat-msg\"></div>\n</div>",
      "css": ".skel-chat {\n  display: grid;\n  gap: 10px;\n  width: min(100%, 280px);\n}\n\n.skel-chat-msg {\n  width: 55%;\n  height: 34px;\n  border-radius: 18px 18px 18px 4px;\n  background: #e5e7eb;\n  animation: skel-chat-pulse 1.4s ease-in-out infinite;\n}\n\n.skel-chat-wide {\n  width: 75%;\n  height: 52px;\n  animation-delay: 0.15s;\n}\n\n/* Outgoing message */\n.skel-chat-me {\n  justify-self: end;\n  width: 45%;\n  border-radius: 18px 18px 4px 18px;\n  background: #c7d2fe;\n  animation-delay: 0.3s;\n}\n\n.skel-chat-msg:last-child {\n  width: 35%;\n  animation-delay: 0.45s;\n}\n\n@keyframes skel-chat-pulse {\n  50% { opacity: 0.45; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .skel-chat-msg { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "radar-loader",
      "name": "Radar Loader",
      "category": "loaders",
      "tags": [
        "sweep",
        "scanning",
        "conic-gradient",
        "searching",
        "sonar"
      ],
      "description": "A green radar screen with range rings, a rotating sweep and a blip that lights up as it passes.",
      "url": "https://copy-css.com/snippets/radar-loader",
      "markdown": "https://copy-css.com/snippets/radar-loader.md",
      "html": "<div class=\"loader-radar\" role=\"status\" aria-label=\"Searching\"></div>",
      "css": ".loader-radar {\n  position: relative;\n  width: 100px;\n  height: 100px;\n  overflow: hidden;\n  border: 2px solid #22c55e80;\n  border-radius: 50%;\n  background:\n    repeating-radial-gradient(#0000 0 15px, #22c55e4d 15px 16px),\n    linear-gradient(#22c55e33, #22c55e33) center / 1px 100% no-repeat,\n    linear-gradient(#22c55e33, #22c55e33) center / 100% 1px no-repeat,\n    #052e16;\n}\n\n/* Sweep */\n.loader-radar::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: conic-gradient(#22c55e00 0 70%, #22c55eaa);\n  animation: loader-radar-sweep 2s linear infinite;\n}\n\n/* Blip */\n.loader-radar::after {\n  content: \"\";\n  position: absolute;\n  top: 26%;\n  left: 64%;\n  width: 6px;\n  height: 6px;\n  border-radius: 50%;\n  background: #86efac;\n  box-shadow: 0 0 8px #4ade80;\n  opacity: 0;\n  animation: loader-radar-blip 2s linear infinite;\n}\n\n@keyframes loader-radar-sweep {\n  to { transform: rotate(1turn); }\n}\n\n@keyframes loader-radar-blip {\n  0%, 8% { opacity: 0; }\n  10% { opacity: 1; }\n  70%, 100% { opacity: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-radar::before,\n  .loader-radar::after { animation-duration: 5s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "linear gradients",
        "radial gradients",
        "conic gradients",
        "box shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "breathing-orb-loader",
      "name": "Breathing Orb Loader",
      "category": "loaders",
      "tags": [
        "ai",
        "thinking",
        "glow",
        "calm",
        "scale",
        "pulse"
      ],
      "description": "A glowing purple orb that slowly breathes in and out, a calm \"thinking\" state for AI assistants.",
      "url": "https://copy-css.com/snippets/breathing-orb-loader",
      "markdown": "https://copy-css.com/snippets/breathing-orb-loader.md",
      "html": "<div class=\"loader-orb\" role=\"status\" aria-label=\"Thinking\"></div>",
      "css": ".loader-orb {\n  width: 64px;\n  height: 64px;\n  border-radius: 50%;\n  background: radial-gradient(circle at 35% 30%, #f3e8ff, #a855f7 45%, #6d28d9);\n  box-shadow:\n    0 0 24px #a855f766,\n    0 0 48px #6366f133;\n  animation: loader-orb-breathe 3s ease-in-out infinite;\n}\n\n@keyframes loader-orb-breathe {\n  50% {\n    transform: scale(1.18);\n    box-shadow:\n      0 0 36px #a855f799,\n      0 0 80px #6366f155;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-orb { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "radial gradients",
        "box shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "double-bounce-loader",
      "name": "Double Bounce Loader",
      "category": "loaders",
      "tags": [
        "pulse",
        "circles",
        "scale",
        "overlapping",
        "spinkit"
      ],
      "description": "Two translucent circles that grow and shrink in turn, overlapping into a soft pulsing blob.",
      "url": "https://copy-css.com/snippets/double-bounce-loader",
      "markdown": "https://copy-css.com/snippets/double-bounce-loader.md",
      "html": "<div class=\"loader-double\" role=\"status\" aria-label=\"Loading\"></div>",
      "css": ".loader-double {\n  position: relative;\n  width: 56px;\n  height: 56px;\n}\n\n.loader-double::before,\n.loader-double::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: 50%;\n  background: #14b8a6;\n  opacity: 0.6;\n  animation: loader-double-bounce 2s ease-in-out infinite;\n}\n\n.loader-double::after {\n  animation-delay: -1s;\n}\n\n@keyframes loader-double-bounce {\n  0%, 100% { transform: scale(0); }\n  50% { transform: scale(1); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .loader-double::before,\n  .loader-double::after { animation-duration: 4s; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "gradient-text",
      "name": "Gradient Text",
      "category": "text",
      "tags": [
        "gradient",
        "heading",
        "background-clip",
        "colorful"
      ],
      "description": "Headline text filled with a gradient using background-clip: text.",
      "url": "https://copy-css.com/snippets/gradient-text",
      "markdown": "https://copy-css.com/snippets/gradient-text.md",
      "html": "<h2 class=\"text-gradient\">Make it pop</h2>",
      "css": ".text-gradient {\n  margin: 0;\n  font: 800 44px/1.1 system-ui, sans-serif;\n  background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}",
      "features": [
        "linear gradients",
        "gradient-clipped text"
      ],
      "customProperties": []
    },
    {
      "id": "neon-text",
      "name": "Neon Text",
      "category": "text",
      "tags": [
        "neon",
        "glow",
        "text-shadow",
        "flicker",
        "dark"
      ],
      "description": "Glowing neon sign text with a subtle flicker, built with text-shadow.",
      "url": "https://copy-css.com/snippets/neon-text",
      "markdown": "https://copy-css.com/snippets/neon-text.md",
      "html": "<h2 class=\"text-neon\">Open late</h2>",
      "css": ".text-neon {\n  margin: 0;\n  font: 700 42px/1 system-ui, sans-serif;\n  color: #ecfeff;\n  text-shadow:\n    0 0 4px #fff,\n    0 0 12px #22d3ee,\n    0 0 28px #22d3ee,\n    0 0 56px #0891b2;\n  animation: flicker 3s infinite;\n}\n\n@keyframes flicker {\n  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }\n  20%, 24%, 55% { opacity: 0.4; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-neon {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "text shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "outline-text",
      "name": "Outline Text",
      "category": "text",
      "tags": [
        "outline",
        "stroke",
        "hollow",
        "heading"
      ],
      "description": "Hollow outlined headline text that fills in solid on hover.",
      "url": "https://copy-css.com/snippets/outline-text",
      "markdown": "https://copy-css.com/snippets/outline-text.md",
      "html": "<h2 class=\"text-outline\">OUTLINE</h2>",
      "css": ".text-outline {\n  margin: 0;\n  font: 900 52px/1 system-ui, sans-serif;\n  letter-spacing: 0.02em;\n  color: transparent;\n  -webkit-text-stroke: 2px #111;\n  transition: color 0.3s ease;\n}\n\n.text-outline:hover {\n  color: #111;\n}",
      "features": [
        "transitions"
      ],
      "customProperties": []
    },
    {
      "id": "typewriter-text",
      "name": "Typewriter Text",
      "category": "text",
      "tags": [
        "typewriter",
        "typing",
        "animation",
        "caret",
        "monospace"
      ],
      "description": "Text that types itself out with a blinking caret, using only CSS.",
      "url": "https://copy-css.com/snippets/typewriter-text",
      "markdown": "https://copy-css.com/snippets/typewriter-text.md",
      "html": "<p class=\"typewriter\">Hello, world!</p>",
      "css": "/* Set width and steps() to the number of characters */\n.typewriter {\n  width: 13ch;\n  margin: 0;\n  overflow: hidden;\n  white-space: nowrap;\n  border-right: 3px solid #111;\n  font: 600 24px/1.3 ui-monospace, Menlo, monospace;\n  animation:\n    typewriter-type 2.5s steps(13) infinite alternate,\n    typewriter-caret 0.7s step-end infinite;\n}\n\n@keyframes typewriter-type {\n  from { width: 0; }\n}\n\n@keyframes typewriter-caret {\n  50% { border-color: transparent; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .typewriter {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "underline-link",
      "name": "Animated Underline",
      "category": "text",
      "tags": [
        "link",
        "underline",
        "hover",
        "navigation"
      ],
      "description": "A link underline that draws in from the left and exits to the right.",
      "url": "https://copy-css.com/snippets/underline-link",
      "markdown": "https://copy-css.com/snippets/underline-link.md",
      "html": "<a class=\"link-underline\" href=\"#\">Read the docs</a>",
      "css": ".link-underline {\n  position: relative;\n  color: #111;\n  font: 600 22px/1.4 system-ui, sans-serif;\n  text-decoration: none;\n}\n\n.link-underline::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n  bottom: -2px;\n  width: 100%;\n  height: 2px;\n  background: currentColor;\n  transform: scaleX(0);\n  transform-origin: right;\n  transition: transform 0.3s ease;\n}\n\n.link-underline:hover::after {\n  transform: scaleX(1);\n  transform-origin: left;\n}",
      "features": [
        "transitions",
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "marker-highlight",
      "name": "Marker Highlight",
      "category": "text",
      "tags": [
        "highlight",
        "marker",
        "emphasis",
        "gradient"
      ],
      "description": "A hand-drawn style highlighter stroke behind important words.",
      "url": "https://copy-css.com/snippets/marker-highlight",
      "markdown": "https://copy-css.com/snippets/marker-highlight.md",
      "html": "<p class=\"text-marker\">Copy. Paste. <span>Ship it.</span></p>",
      "css": ".text-marker {\n  margin: 0;\n  color: #111;\n  font: 700 30px/1.3 system-ui, sans-serif;\n}\n\n.text-marker span {\n  padding: 0 4px;\n  background: linear-gradient(transparent 55%, #fde047 55%);\n}",
      "features": [
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "3d-text",
      "name": "3D Text",
      "category": "text",
      "tags": [
        "3d",
        "text-shadow",
        "extruded",
        "retro",
        "heading"
      ],
      "description": "Bold extruded 3D lettering built from stacked text shadows.",
      "url": "https://copy-css.com/snippets/3d-text",
      "markdown": "https://copy-css.com/snippets/3d-text.md",
      "html": "<h2 class=\"text-3d\">POP!</h2>",
      "css": ".text-3d {\n  margin: 0;\n  color: #fde047;\n  font: 900 54px/1 system-ui, sans-serif;\n  letter-spacing: 0.02em;\n  text-shadow:\n    1px 1px 0 #f43f5e,\n    2px 2px 0 #f43f5e,\n    3px 3px 0 #f43f5e,\n    4px 4px 0 #f43f5e,\n    5px 5px 0 #f43f5e,\n    6px 6px 0 #e11d48,\n    8px 10px 16px rgba(0, 0, 0, 0.4);\n}",
      "features": [
        "text shadows"
      ],
      "customProperties": []
    },
    {
      "id": "glitch-text",
      "name": "Glitch Text",
      "category": "text",
      "tags": [
        "glitch",
        "cyberpunk",
        "clip-path",
        "animation",
        "dark"
      ],
      "description": "A cyberpunk glitch effect with offset red and cyan slices.",
      "url": "https://copy-css.com/snippets/glitch-text",
      "markdown": "https://copy-css.com/snippets/glitch-text.md",
      "html": "<h2 class=\"glitch\" data-text=\"GLITCH\">GLITCH</h2>",
      "css": ".glitch {\n  position: relative;\n  margin: 0;\n  color: #fff;\n  font: 900 52px/1 system-ui, sans-serif;\n  letter-spacing: 0.04em;\n}\n\n.glitch::before,\n.glitch::after {\n  content: attr(data-text);\n  position: absolute;\n  top: 0;\n  width: 100%;\n  background: #0f0f12; /* match your page background */\n}\n\n.glitch::before {\n  left: 2px;\n  text-shadow: -2px 0 #f43f5e;\n  animation: glitch-a 2.5s infinite linear alternate-reverse;\n}\n\n.glitch::after {\n  left: -2px;\n  text-shadow: 2px 0 #22d3ee;\n  animation: glitch-b 3s infinite linear alternate-reverse;\n}\n\n@keyframes glitch-a {\n  0% { clip-path: inset(10% 0 80% 0); }\n  20% { clip-path: inset(60% 0 20% 0); }\n  40% { clip-path: inset(30% 0 50% 0); }\n  60% { clip-path: inset(80% 0 5% 0); }\n  80% { clip-path: inset(15% 0 70% 0); }\n  100% { clip-path: inset(45% 0 40% 0); }\n}\n\n@keyframes glitch-b {\n  0% { clip-path: inset(70% 0 10% 0); }\n  25% { clip-path: inset(20% 0 65% 0); }\n  50% { clip-path: inset(50% 0 30% 0); }\n  75% { clip-path: inset(5% 0 85% 0); }\n  100% { clip-path: inset(85% 0 2% 0); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .glitch::before,\n  .glitch::after {\n    display: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "text shadows",
        "clip paths",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "shimmer-text",
      "name": "Shimmer Text",
      "category": "text",
      "tags": [
        "shimmer",
        "shine",
        "gradient",
        "background-clip",
        "animation"
      ],
      "description": "A beam of light that sweeps across the text on a loop.",
      "url": "https://copy-css.com/snippets/shimmer-text",
      "markdown": "https://copy-css.com/snippets/shimmer-text.md",
      "html": "<h2 class=\"text-shimmer\">Coming soon</h2>",
      "css": ".text-shimmer {\n  margin: 0;\n  font: 800 36px/1.1 system-ui, sans-serif;\n  background: linear-gradient(90deg, #64748b 0%, #64748b 40%, #f8fafc 50%, #64748b 60%, #64748b 100%);\n  background-size: 200% 100%;\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n  animation: text-shimmer 2.4s linear infinite;\n}\n\n@keyframes text-shimmer {\n  from { background-position: 150% 0; }\n  to { background-position: -50% 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-shimmer {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "gradient-clipped text",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "rotating-words",
      "name": "Rotating Words",
      "category": "text",
      "tags": [
        "rotate",
        "words",
        "headline",
        "animation",
        "hero"
      ],
      "description": "A headline where one word cycles through options. Pure CSS, no JavaScript.",
      "url": "https://copy-css.com/snippets/rotating-words",
      "markdown": "https://copy-css.com/snippets/rotating-words.md",
      "html": "<p class=\"rotator\">Build <span><b>faster</b><b>better</b><b>bolder</b></span></p>",
      "css": ".rotator {\n  display: flex;\n  gap: 0.3em;\n  margin: 0;\n  color: #111;\n  font: 700 32px/1.2 system-ui, sans-serif;\n}\n\n.rotator span {\n  display: inline-flex;\n  flex-direction: column;\n  height: 1.2em;\n  overflow: hidden;\n}\n\n.rotator b {\n  color: #7c3aed;\n  animation: rotate-words 6s infinite;\n}\n\n@keyframes rotate-words {\n  0%, 28% { transform: translateY(0); }\n  33%, 61% { transform: translateY(-100%); }\n  66%, 94% { transform: translateY(-200%); }\n  100% { transform: translateY(0); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .rotator b {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "wavy-underline",
      "name": "Wavy Underline",
      "category": "text",
      "tags": [
        "underline",
        "wavy",
        "text-decoration",
        "emphasis"
      ],
      "description": "A playful squiggly underline using modern text-decoration properties.",
      "url": "https://copy-css.com/snippets/wavy-underline",
      "markdown": "https://copy-css.com/snippets/wavy-underline.md",
      "html": "<p class=\"wavy\">This is <span>really</span> important.</p>",
      "css": ".wavy {\n  margin: 0;\n  color: #111;\n  font: 600 26px/1.5 system-ui, sans-serif;\n}\n\n.wavy span {\n  text-decoration: underline wavy #f43f5e;\n  text-decoration-thickness: 2px;\n  text-underline-offset: 6px;\n}",
      "features": [],
      "customProperties": []
    },
    {
      "id": "drop-cap",
      "name": "Drop Cap",
      "category": "text",
      "tags": [
        "drop cap",
        "first-letter",
        "editorial",
        "typography",
        "blog"
      ],
      "description": "A classic editorial drop cap using the ::first-letter pseudo-element.",
      "url": "https://copy-css.com/snippets/drop-cap",
      "markdown": "https://copy-css.com/snippets/drop-cap.md",
      "html": "<p class=\"drop-cap\">Once upon a time, a single line of CSS turned a plain paragraph into something worth reading.</p>",
      "css": ".drop-cap {\n  max-width: 260px;\n  margin: 0;\n  color: #374151;\n  font: 15px/1.6 Georgia, serif;\n}\n\n.drop-cap::first-letter {\n  float: left;\n  margin: 4px 8px 0 0;\n  color: #b45309;\n  font: 700 3.6em/0.8 Georgia, serif;\n}",
      "features": [],
      "customProperties": []
    },
    {
      "id": "long-shadow-text",
      "name": "Long Shadow Text",
      "category": "text",
      "tags": [
        "long shadow",
        "flat",
        "text-shadow",
        "retro",
        "heading"
      ],
      "description": "A flat-design long shadow that trails diagonally off the letters.",
      "url": "https://copy-css.com/snippets/long-shadow-text",
      "markdown": "https://copy-css.com/snippets/long-shadow-text.md",
      "html": "<h2 class=\"long-shadow\">Hello</h2>",
      "css": ".long-shadow {\n  margin: 0;\n  color: #fff;\n  font: 900 60px/1 system-ui, sans-serif;\n  text-shadow:\n    1px 1px #0f766e, 2px 2px #0f766e, 3px 3px #0f766e,\n    4px 4px #0f766e, 5px 5px #0f766e, 6px 6px #0f766e,\n    7px 7px #0f766e, 8px 8px #0f766e, 9px 9px #0f766e,\n    10px 10px #0f766e, 11px 11px #0f766e, 12px 12px #0f766e;\n}",
      "features": [
        "text shadows"
      ],
      "customProperties": []
    },
    {
      "id": "letterpress-text",
      "name": "Letterpress Text",
      "category": "text",
      "tags": [
        "letterpress",
        "emboss",
        "inset",
        "text-shadow",
        "subtle"
      ],
      "description": "Text that looks pressed into the surface, using a light highlight below each letter.",
      "url": "https://copy-css.com/snippets/letterpress-text",
      "markdown": "https://copy-css.com/snippets/letterpress-text.md",
      "html": "<h2 class=\"letterpress\">Pressed</h2>",
      "css": ".letterpress {\n  margin: 0;\n  color: #78716c;\n  font: 800 54px/1 system-ui, sans-serif;\n  text-shadow:\n    0 1px 0 rgba(255, 255, 255, 0.6),\n    0 -1px 0 rgba(0, 0, 0, 0.15);\n}",
      "features": [
        "text shadows"
      ],
      "customProperties": []
    },
    {
      "id": "fill-on-hover-text",
      "name": "Fill on Hover Text",
      "category": "text",
      "tags": [
        "outline",
        "hover",
        "fill",
        "background-clip",
        "link"
      ],
      "description": "Outlined text that fills with solid color from left to right on hover.",
      "url": "https://copy-css.com/snippets/fill-on-hover-text",
      "markdown": "https://copy-css.com/snippets/fill-on-hover-text.md",
      "html": "<a class=\"text-fill\" href=\"#\">Portfolio</a>",
      "css": ".text-fill {\n  color: transparent;\n  font: 900 52px/1.1 system-ui, sans-serif;\n  text-decoration: none;\n  -webkit-text-stroke: 1.5px #fafafa;\n  background: linear-gradient(#a3e635, #a3e635) left / 0% 100% no-repeat;\n  -webkit-background-clip: text;\n  background-clip: text;\n  transition: background-size 0.45s ease;\n}\n\n.text-fill:hover,\n.text-fill:focus-visible {\n  background-size: 100% 100%;\n}",
      "features": [
        "transitions",
        "linear gradients",
        "gradient-clipped text",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "balanced-headline",
      "name": "Balanced Headline",
      "category": "text",
      "tags": [
        "text-wrap",
        "balance",
        "pretty",
        "typography",
        "orphans"
      ],
      "description": "Evens out the line lengths of headings and avoids lonely last words in paragraphs.",
      "url": "https://copy-css.com/snippets/balanced-headline",
      "markdown": "https://copy-css.com/snippets/balanced-headline.md",
      "html": "<div class=\"balanced\">\n  <h2>Ship faster with tiny, reusable CSS building blocks</h2>\n  <p>Short paragraphs look better without a single word stranded on the last line.</p>\n</div>",
      "css": "/* Headings: balance line lengths */\n.balanced h1,\n.balanced h2,\n.balanced h3 {\n  text-wrap: balance;\n}\n\n/* Body text: avoid a single word on the last line */\n.balanced p {\n  text-wrap: pretty;\n}",
      "features": [
        "balanced text wrapping"
      ],
      "customProperties": []
    },
    {
      "id": "line-clamp",
      "name": "Multi-line Truncate",
      "category": "text",
      "tags": [
        "line-clamp",
        "truncate",
        "ellipsis",
        "overflow",
        "excerpt"
      ],
      "description": "Cut text off after a set number of lines and end it with an ellipsis.",
      "url": "https://copy-css.com/snippets/line-clamp",
      "markdown": "https://copy-css.com/snippets/line-clamp.md",
      "html": "<p class=\"clamp\">CSS can trim long text to a set number of lines and add an ellipsis at the end. There is no JavaScript and no measuring, and it keeps working as the container resizes.</p>",
      "css": ".clamp {\n  --lines: 3;\n  display: -webkit-box;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: var(--lines);\n  line-clamp: var(--lines);\n  overflow: hidden;\n}",
      "features": [
        "line clamping",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--lines",
          "value": "3"
        }
      ]
    },
    {
      "id": "fancy-blockquote",
      "name": "Fancy Blockquote",
      "category": "text",
      "tags": [
        "blockquote",
        "quote",
        "pull quote",
        "serif",
        "cite"
      ],
      "description": "A pull quote with an accent bar, a big decorative quote mark and a styled citation.",
      "url": "https://copy-css.com/snippets/fancy-blockquote",
      "markdown": "https://copy-css.com/snippets/fancy-blockquote.md",
      "html": "<blockquote class=\"quote\">\n  <p>Ship small, ship often, and let real people tell you what matters.</p>\n  <cite>The product handbook</cite>\n</blockquote>",
      "css": ".quote {\n  position: relative;\n  margin: 0;\n  padding: 18px 22px 18px 24px;\n  border-left: 4px solid #f59e0b;\n  border-radius: 4px 12px 12px 4px;\n  background: #fffbeb;\n}\n\n.quote::before {\n  content: \"\\201C\";\n  position: absolute;\n  top: -14px;\n  right: 14px;\n  color: #fcd34d;\n  font: 700 72px/1 Georgia, serif;\n}\n\n.quote p {\n  position: relative;\n  margin: 0 0 10px;\n  color: #451a03;\n  font: italic 17px/1.45 Georgia, \"Times New Roman\", serif;\n}\n\n.quote cite {\n  color: #b45309;\n  font: normal 600 13px system-ui, sans-serif;\n}\n\n.quote cite::before {\n  content: \"— \";\n}",
      "features": [],
      "customProperties": []
    },
    {
      "id": "text-reveal",
      "name": "Line Reveal",
      "category": "text",
      "tags": [
        "reveal",
        "slide up",
        "headline",
        "mask",
        "entrance",
        "animation"
      ],
      "description": "A headline whose lines slide up from behind an invisible mask, one after another.",
      "url": "https://copy-css.com/snippets/text-reveal",
      "markdown": "https://copy-css.com/snippets/text-reveal.md",
      "html": "<h2 class=\"reveal\">\n  <span><span>Design that</span></span>\n  <span><span>feels effortless</span></span>\n</h2>",
      "css": ".reveal {\n  margin: 0;\n  color: #0f172a;\n  font: 800 30px/1.15 system-ui, sans-serif;\n}\n\n/* Each line clips its own text */\n.reveal > span {\n  display: block;\n  overflow: hidden;\n}\n\n.reveal > span > span {\n  display: block;\n  animation: reveal-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;\n}\n\n.reveal > span:nth-child(2) > span {\n  animation-delay: 0.12s;\n}\n\n@keyframes reveal-up {\n  from { transform: translateY(110%); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .reveal > span > span { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "circular-text",
      "name": "Rotating Circular Text",
      "category": "text",
      "tags": [
        "circle",
        "textPath",
        "svg",
        "rotate",
        "badge",
        "scroll"
      ],
      "description": "Text set around a circle with SVG textPath, slowly spinning around a center icon.",
      "url": "https://copy-css.com/snippets/circular-text",
      "markdown": "https://copy-css.com/snippets/circular-text.md",
      "html": "<a class=\"circle-text\" href=\"#content\" aria-label=\"Scroll down\">\n  <svg viewBox=\"0 0 100 100\" aria-hidden=\"true\">\n    <path id=\"circle-path\" d=\"M50 50m-38 0a38 38 0 1 1 76 0a38 38 0 1 1-76 0\"/>\n    <text><textPath href=\"#circle-path\" textLength=\"232\">SCROLL DOWN • SCROLL DOWN •</textPath></text>\n  </svg>\n  <span>↓</span>\n</a>",
      "css": ".circle-text {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 120px;\n  height: 120px;\n  text-decoration: none;\n}\n\n.circle-text svg {\n  position: absolute;\n  inset: 0;\n  width: 100%;\n  height: 100%;\n  animation: circle-spin 12s linear infinite;\n}\n\n.circle-text path {\n  fill: none;\n}\n\n.circle-text text {\n  fill: #1c1917;\n  font: 700 10px system-ui, sans-serif;\n}\n\n.circle-text span {\n  display: grid;\n  place-items: center;\n  width: 44px;\n  height: 44px;\n  border-radius: 50%;\n  background: #1c1917;\n  color: #fef3c7;\n  font: 700 20px system-ui, sans-serif;\n}\n\n.circle-text:focus-visible {\n  border-radius: 50%;\n  outline: 2px solid #1c1917;\n  outline-offset: 4px;\n}\n\n@keyframes circle-spin {\n  to { transform: rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .circle-text svg { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "animated-gradient-text",
      "name": "Animated Gradient Text",
      "category": "text",
      "tags": [
        "flowing",
        "background-clip",
        "colorful",
        "hero",
        "loop"
      ],
      "description": "Headline text filled with a multi-color gradient that flows across the letters on a loop.",
      "url": "https://copy-css.com/snippets/animated-gradient-text",
      "markdown": "https://copy-css.com/snippets/animated-gradient-text.md",
      "html": "<h2 class=\"text-flow\">Go further</h2>",
      "css": ".text-flow {\n  margin: 0;\n  font: 800 44px/1.1 system-ui, sans-serif;\n  background: linear-gradient(90deg, #06b6d4, #8b5cf6, #ec4899, #f59e0b, #06b6d4);\n  background-size: 200% 100%;\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n  animation: text-flow-move 5s linear infinite;\n}\n\n@keyframes text-flow-move {\n  to { background-position: 200% 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-flow { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "gradient-clipped text",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "gradient-underline-link",
      "name": "Gradient Underline Link",
      "category": "text",
      "tags": [
        "link",
        "hover",
        "background-size",
        "fill",
        "multi-line"
      ],
      "description": "A link with a thin gradient underline that grows into a full highlight on hover, even across lines.",
      "url": "https://copy-css.com/snippets/gradient-underline-link",
      "markdown": "https://copy-css.com/snippets/gradient-underline-link.md",
      "html": "<p class=\"link-grad-text\">Read our <a class=\"link-grad\" href=\"#\">guide to accessible color</a> before you ship.</p>",
      "css": ".link-grad-text {\n  max-width: 15em;\n  margin: 0;\n  color: #334155;\n  font: 500 20px/1.6 system-ui, sans-serif;\n}\n\n.link-grad {\n  padding: 0 0.1em;\n  color: #312e81;\n  font-weight: 700;\n  text-decoration: none;\n  background: linear-gradient(90deg, #4f46e5, #db2777) no-repeat left bottom / 100% 3px;\n  -webkit-box-decoration-break: clone;\n  box-decoration-break: clone;\n  transition: background-size 0.3s ease, color 0.3s ease;\n}\n\n.link-grad:hover,\n.link-grad:focus-visible {\n  background-size: 100% 100%;\n  color: #ffffff;\n}\n\n.link-grad:focus-visible {\n  outline: 2px solid #312e81;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "linear gradients",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "striped-text",
      "name": "Striped Text",
      "category": "text",
      "tags": [
        "stripes",
        "pattern",
        "retro",
        "70s",
        "background-clip"
      ],
      "description": "Bold display text filled with 70s-style horizontal stripes using a repeating gradient clip.",
      "url": "https://copy-css.com/snippets/striped-text",
      "markdown": "https://copy-css.com/snippets/striped-text.md",
      "html": "<h2 class=\"text-stripes\">RETRO</h2>",
      "css": ".text-stripes {\n  margin: 0;\n  font: 900 60px/1 system-ui, sans-serif;\n  letter-spacing: 0.02em;\n  background: repeating-linear-gradient(\n    180deg,\n    #dc2626 0 5px,\n    #f97316 5px 10px,\n    #facc15 10px 15px\n  );\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}",
      "features": [
        "linear gradients",
        "gradient-clipped text"
      ],
      "customProperties": []
    },
    {
      "id": "two-tone-text",
      "name": "Two-Tone Text",
      "category": "text",
      "tags": [
        "split",
        "hard stop",
        "two color",
        "background-clip",
        "headline"
      ],
      "description": "Headline text split into two flat colors at a hard gradient stop, like a horizon line.",
      "url": "https://copy-css.com/snippets/two-tone-text",
      "markdown": "https://copy-css.com/snippets/two-tone-text.md",
      "html": "<h2 class=\"text-two-tone\">Horizon</h2>",
      "css": ".text-two-tone {\n  --top: #0284c7;\n  --bottom: #0f172a;\n  --split: 55%;\n  margin: 0;\n  font: 900 52px/1 system-ui, sans-serif;\n  background: linear-gradient(var(--top) var(--split), var(--bottom) var(--split));\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}",
      "features": [
        "linear gradients",
        "gradient-clipped text",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--top",
          "value": "#0284c7"
        },
        {
          "name": "--bottom",
          "value": "#0f172a"
        },
        {
          "name": "--split",
          "value": "55%"
        }
      ]
    },
    {
      "id": "gradient-outline-text",
      "name": "Gradient Outline Text",
      "category": "text",
      "tags": [
        "stroke",
        "hollow",
        "text-stroke",
        "background-clip",
        "heading"
      ],
      "description": "Hollow headline text with a gradient outline, made from a transparent stroke over a clipped gradient.",
      "url": "https://copy-css.com/snippets/gradient-outline-text",
      "markdown": "https://copy-css.com/snippets/gradient-outline-text.md",
      "html": "<h2 class=\"text-grad-stroke\">HOLLOW</h2>",
      "css": "/* --fill must match the background behind the text */\n.text-grad-stroke {\n  --fill: #ffffff;\n  margin: 0;\n  font: 900 48px/1 system-ui, sans-serif;\n  letter-spacing: 0.03em;\n  background: linear-gradient(90deg, #f97316, #db2777, #7c3aed);\n  -webkit-background-clip: text;\n  background-clip: text;\n  -webkit-text-fill-color: var(--fill);\n  -webkit-text-stroke: 4px transparent;\n}",
      "features": [
        "linear gradients",
        "gradient-clipped text",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--fill",
          "value": "#ffffff"
        }
      ]
    },
    {
      "id": "sticker-text",
      "name": "Sticker Text",
      "category": "text",
      "tags": [
        "outline",
        "thick stroke",
        "paint-order",
        "cartoon",
        "playful"
      ],
      "description": "Chunky cartoon text with a thick outline behind the fill and a hard drop shadow, like a sticker.",
      "url": "https://copy-css.com/snippets/sticker-text",
      "markdown": "https://copy-css.com/snippets/sticker-text.md",
      "html": "<h2 class=\"text-sticker\">Hooray!</h2>",
      "css": ".text-sticker {\n  --fill: #facc15;\n  --ink: #1e1b4b;\n  margin: 0;\n  font: 900 48px/1.1 system-ui, sans-serif;\n  letter-spacing: 0.03em;\n  color: var(--fill);\n  -webkit-text-stroke: 10px var(--ink);\n  paint-order: stroke fill;\n  text-shadow: 5px 6px 0 var(--ink);\n  transform: rotate(-4deg);\n}",
      "features": [
        "transforms",
        "text shadows",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--fill",
          "value": "#facc15"
        },
        {
          "name": "--ink",
          "value": "#1e1b4b"
        }
      ]
    },
    {
      "id": "echo-outline-text",
      "name": "Echo Outline Text",
      "category": "text",
      "tags": [
        "outline",
        "repeat",
        "stacked",
        "text-stroke",
        "poster"
      ],
      "description": "A bold word followed by fading outlined copies of itself, a stacked poster-style echo.",
      "url": "https://copy-css.com/snippets/echo-outline-text",
      "markdown": "https://copy-css.com/snippets/echo-outline-text.md",
      "html": "<h2 class=\"text-echo\">\n  <span>ECHO</span>\n  <span aria-hidden=\"true\">ECHO</span>\n  <span aria-hidden=\"true\">ECHO</span>\n</h2>",
      "css": ".text-echo {\n  display: grid;\n  margin: 0;\n  color: #a3e635;\n  font: 900 46px/0.85 system-ui, sans-serif;\n  letter-spacing: 0.04em;\n}\n\n.text-echo span + span {\n  color: transparent;\n  -webkit-text-stroke: 1.5px #a3e635;\n}\n\n.text-echo span:nth-child(2) {\n  opacity: 0.6;\n}\n\n.text-echo span:nth-child(3) {\n  opacity: 0.3;\n}",
      "features": [
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "stroke-draw-text",
      "name": "Stroke Drawing Text",
      "category": "text",
      "tags": [
        "svg",
        "stroke-dasharray",
        "line drawing",
        "outline",
        "handwriting"
      ],
      "description": "SVG text whose outline draws itself in with stroke-dasharray, then fills in with color.",
      "url": "https://copy-css.com/snippets/stroke-draw-text",
      "markdown": "https://copy-css.com/snippets/stroke-draw-text.md",
      "html": "<svg class=\"text-draw\" viewBox=\"0 0 280 90\" role=\"img\" aria-label=\"Hello\">\n  <text x=\"50%\" y=\"70\" text-anchor=\"middle\">Hello</text>\n</svg>",
      "css": ".text-draw {\n  width: 260px;\n  max-width: 100%;\n  height: auto;\n}\n\n.text-draw text {\n  font: 800 72px system-ui, sans-serif;\n  fill: transparent;\n  stroke: #0f766e;\n  stroke-width: 1.5px;\n  stroke-dasharray: 360;\n  stroke-dashoffset: 360;\n  animation:\n    text-draw-line 2.4s ease-in-out forwards,\n    text-draw-fill 0.6s 2.2s ease forwards;\n}\n\n@keyframes text-draw-line {\n  to { stroke-dashoffset: 0; }\n}\n\n@keyframes text-draw-fill {\n  to { fill: #0f766e; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-draw text {\n    animation: none;\n    fill: #0f766e;\n    stroke-dashoffset: 0;\n  }\n}",
      "features": [
        "keyframe animations",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "rgb-split-text",
      "name": "RGB Split Text",
      "category": "text",
      "tags": [
        "glitch",
        "chromatic aberration",
        "text-shadow",
        "cyberpunk",
        "anaglyph"
      ],
      "description": "Chromatic aberration text with red and cyan channels pulled apart and an occasional jitter.",
      "url": "https://copy-css.com/snippets/rgb-split-text",
      "markdown": "https://copy-css.com/snippets/rgb-split-text.md",
      "html": "<h2 class=\"text-rgb\">SIGNAL</h2>",
      "css": ".text-rgb {\n  --shift: 3px;\n  margin: 0;\n  color: #fafafa;\n  font: 900 44px/1 system-ui, sans-serif;\n  letter-spacing: 0.06em;\n  text-shadow:\n    calc(var(--shift) * -1) 0 #ff004c,\n    var(--shift) 0 #00e5ff;\n  animation: text-rgb-jitter 3s steps(1) infinite;\n}\n\n@keyframes text-rgb-jitter {\n  0%, 100% { transform: none; }\n  90% { transform: translateX(-2px) skewX(6deg); }\n  93% { transform: translateX(3px); }\n  96% { transform: translateX(-1px) skewX(-4deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-rgb { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "text shadows",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--shift",
          "value": "3px"
        }
      ]
    },
    {
      "id": "glitch-hover-link",
      "name": "Glitch Hover Link",
      "category": "text",
      "tags": [
        "glitch",
        "hover",
        "skew",
        "cyberpunk",
        "monospace"
      ],
      "description": "A monospace link that stutters with skew and color-split jumps only while hovered or focused.",
      "url": "https://copy-css.com/snippets/glitch-hover-link",
      "markdown": "https://copy-css.com/snippets/glitch-hover-link.md",
      "html": "<a class=\"glitch-link\" href=\"#\">ENTER_</a>",
      "css": ".glitch-link {\n  display: inline-block;\n  color: #e4e4e7;\n  font: 700 32px/1 ui-monospace, Menlo, monospace;\n  letter-spacing: 0.08em;\n  text-decoration: none;\n}\n\n.glitch-link:hover,\n.glitch-link:focus-visible {\n  color: #ffffff;\n  text-shadow: 2px 0 #ff00c8, -2px 0 #00f0ff;\n  animation: glitch-link-jump 0.5s steps(1) infinite;\n}\n\n.glitch-link:focus-visible {\n  outline: 2px solid #22d3ee;\n  outline-offset: 6px;\n}\n\n@keyframes glitch-link-jump {\n  20% {\n    transform: translate(-3px, 1px) skewX(10deg);\n    text-shadow: -3px 0 #ff00c8, 3px 0 #00f0ff;\n  }\n  40% { transform: translate(2px, -1px); }\n  60% {\n    transform: skewX(-8deg);\n    text-shadow: 3px 1px #ff00c8, -3px -1px #00f0ff;\n  }\n  80% { transform: translate(1px, 2px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .glitch-link:hover,\n  .glitch-link:focus-visible { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "text shadows",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "vhs-text",
      "name": "VHS Text",
      "category": "text",
      "tags": [
        "retro",
        "scanlines",
        "glitch",
        "tape",
        "80s"
      ],
      "description": "Retro VHS screen text with scanlines, a soft color bleed and a bright tracking band rolling down.",
      "url": "https://copy-css.com/snippets/vhs-text",
      "markdown": "https://copy-css.com/snippets/vhs-text.md",
      "html": "<p class=\"text-vhs\">PLAY <span aria-hidden=\"true\">▶</span></p>",
      "css": ".text-vhs {\n  position: relative;\n  margin: 0;\n  padding: 8px 14px;\n  overflow: hidden;\n  color: #f8fafc;\n  font: 700 40px/1 ui-monospace, Menlo, monospace;\n  letter-spacing: 0.1em;\n  text-shadow:\n    2px 0 #ff2d5599,\n    -2px 0 #22d3ee99,\n    0 0 10px #ffffff66;\n  animation: text-vhs-jitter 4s steps(1) infinite;\n}\n\n/* Scanlines plus a bright band that rolls down */\n.text-vhs::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background:\n    linear-gradient(#ffffff00 42%, #ffffff2e 50%, #ffffff00 58%) 0 0 / 100% 300% no-repeat,\n    repeating-linear-gradient(#00000000 0 2px, #00000059 2px 4px);\n  animation: text-vhs-roll 3s linear infinite;\n  pointer-events: none;\n}\n\n@keyframes text-vhs-jitter {\n  0%, 100% { transform: none; }\n  50% { transform: translateX(2px); }\n  52% { transform: translateX(-3px) skewX(-6deg); }\n  54% { transform: none; }\n}\n\n@keyframes text-vhs-roll {\n  from { background-position: 0 100%, 0 0; }\n  to { background-position: 0 0, 0 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-vhs,\n  .text-vhs::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "linear gradients",
        "text shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "sliced-text-hover",
      "name": "Sliced Text Hover",
      "category": "text",
      "tags": [
        "glitch",
        "slice",
        "clip-path",
        "split",
        "link"
      ],
      "description": "A word cut diagonally in two with clip-path, the halves sliding apart on hover or focus.",
      "url": "https://copy-css.com/snippets/sliced-text-hover",
      "markdown": "https://copy-css.com/snippets/sliced-text-hover.md",
      "html": "<a class=\"text-slice\" href=\"#\">\n  <span>SLICE</span>\n  <span aria-hidden=\"true\">SLICE</span>\n</a>",
      "css": ".text-slice {\n  display: inline-grid;\n  color: #18181b;\n  font: 900 52px/1 system-ui, sans-serif;\n  letter-spacing: 0.02em;\n  text-decoration: none;\n}\n\n.text-slice span {\n  grid-area: 1 / 1;\n  transition: transform 0.35s cubic-bezier(0.3, 0.7, 0.2, 1), color 0.35s ease;\n}\n\n.text-slice span:first-child {\n  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 62%);\n}\n\n.text-slice span:last-child {\n  clip-path: polygon(0 62%, 100% 40%, 100% 100%, 0 100%);\n}\n\n.text-slice:hover span:first-child,\n.text-slice:focus-visible span:first-child {\n  transform: translate(-6px, -2px);\n}\n\n.text-slice:hover span:last-child,\n.text-slice:focus-visible span:last-child {\n  color: #e11d48;\n  transform: translate(6px, 2px);\n}\n\n.text-slice:focus-visible {\n  outline: 2px solid #18181b;\n  outline-offset: 8px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-slice span { transition: color 0.35s ease; }\n}",
      "features": [
        "transitions",
        "transforms",
        "clip paths",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "multiline-typewriter",
      "name": "Multi-line Typewriter",
      "category": "text",
      "tags": [
        "typing",
        "two lines",
        "caret",
        "steps",
        "monospace",
        "hero"
      ],
      "description": "Two lines of monospace text typed out one after the other, with the caret moving down a line.",
      "url": "https://copy-css.com/snippets/multiline-typewriter",
      "markdown": "https://copy-css.com/snippets/multiline-typewriter.md",
      "html": "<p class=\"tw-lines\">\n  <span>Design faster.</span>\n  <span>Ship sooner.</span>\n</p>",
      "css": "/* Set --n on each line to its number of characters */\n.tw-lines {\n  margin: 0;\n  color: #1c1917;\n  font: 600 22px/1.5 ui-monospace, Menlo, monospace;\n}\n\n.tw-lines span {\n  display: block;\n  width: calc(var(--n) * 1ch);\n  overflow: hidden;\n  white-space: nowrap;\n  border-right: 0.12em solid transparent;\n}\n\n.tw-lines span:first-child {\n  --n: 14;\n  animation:\n    tw-lines-type 1.4s steps(14) both,\n    tw-lines-blink 0.7s step-end 2;\n}\n\n.tw-lines span:last-child {\n  --n: 12;\n  animation:\n    tw-lines-type 1.2s 1.6s steps(12) both,\n    tw-lines-blink 0.8s 1.4s step-end infinite;\n}\n\n@keyframes tw-lines-type {\n  from { width: 0; }\n}\n\n@keyframes tw-lines-blink {\n  from { border-right-color: currentColor; }\n  50% { border-right-color: transparent; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tw-lines span { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--n",
          "value": "14"
        }
      ]
    },
    {
      "id": "typewriter-word-loop",
      "name": "Typewriter Word Loop",
      "category": "text",
      "tags": [
        "typing",
        "rotating words",
        "hero",
        "headline",
        "caret",
        "steps"
      ],
      "description": "A headline that types and deletes a list of words in turn, with a blinking caret and no JavaScript.",
      "url": "https://copy-css.com/snippets/typewriter-word-loop",
      "markdown": "https://copy-css.com/snippets/typewriter-word-loop.md",
      "html": "<h2 class=\"tw-loop\">Make it\n  <span class=\"tw-loop-words\">\n    <span style=\"--n: 4\">fast</span>\n    <span style=\"--n: 6\">simple</span>\n    <span style=\"--n: 5\">yours</span>\n  </span>\n</h2>",
      "css": "/* --n is each word's character count. 3 words x 3s each = 9s */\n.tw-loop {\n  margin: 0;\n  color: #3b0764;\n  font: 700 28px/1.3 ui-monospace, Menlo, monospace;\n}\n\n.tw-loop-words {\n  display: inline-grid;\n  vertical-align: bottom;\n  color: #c026d3;\n  border-right: 0.1em solid;\n  animation: tw-loop-blink 0.8s step-end infinite;\n}\n\n.tw-loop-words span {\n  grid-area: 1 / 1;\n  width: 0;\n  overflow: hidden;\n  white-space: nowrap;\n  animation: tw-loop-type 9s steps(var(--n)) infinite;\n}\n\n.tw-loop-words span:nth-child(2) {\n  animation-delay: 3s;\n}\n\n.tw-loop-words span:nth-child(3) {\n  animation-delay: 6s;\n}\n\n@keyframes tw-loop-type {\n  0% { width: 0; }\n  12%, 24% { width: calc(var(--n) * 1ch); }\n  33%, 100% { width: 0; }\n}\n\n@keyframes tw-loop-blink {\n  50% { border-color: transparent; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tw-loop-words,\n  .tw-loop-words span { animation: none; }\n\n  .tw-loop-words span:first-child { width: auto; }\n}",
      "features": [
        "keyframe animations",
        "CSS Grid",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "terminal-typing",
      "name": "Terminal Typing",
      "category": "text",
      "tags": [
        "command line",
        "typing",
        "block caret",
        "developer",
        "code",
        "shell"
      ],
      "description": "A dark terminal window that types a command with a block caret, then prints the output line.",
      "url": "https://copy-css.com/snippets/terminal-typing",
      "markdown": "https://copy-css.com/snippets/terminal-typing.md",
      "html": "<div class=\"term-typing\">\n  <p class=\"term-typing-line\"><span class=\"term-typing-cmd\">npm i copycss</span></p>\n  <p class=\"term-typing-out\">added 1 package in 0.4s</p>\n</div>",
      "css": ".term-typing {\n  box-sizing: border-box;\n  width: 250px;\n  max-width: 100%;\n  padding: 16px 18px;\n  border-radius: 10px;\n  background: #0f172a;\n  color: #e2e8f0;\n  font: 500 14px/1.7 ui-monospace, Menlo, monospace;\n  box-shadow: 0 12px 30px #0f172a40;\n}\n\n.term-typing p {\n  margin: 0;\n}\n\n.term-typing-line::before {\n  content: \"$ \";\n  color: #4ade80;\n}\n\n/* Width in ch = number of characters in the command */\n.term-typing-cmd {\n  display: inline-block;\n  width: 13ch;\n  overflow: hidden;\n  white-space: nowrap;\n  vertical-align: bottom;\n  animation: term-typing-type 1.3s 0.4s steps(13) both;\n}\n\n.term-typing-line::after {\n  content: \"\";\n  display: inline-block;\n  width: 0.6em;\n  height: 1.15em;\n  vertical-align: -0.2em;\n  background: #4ade80;\n  animation: term-typing-blink 1s step-end infinite;\n}\n\n.term-typing-out {\n  color: #94a3b8;\n  animation: term-typing-show 0.2s 2s both;\n}\n\n@keyframes term-typing-type {\n  from { width: 0; }\n}\n\n@keyframes term-typing-blink {\n  50% { opacity: 0; }\n}\n\n@keyframes term-typing-show {\n  from { opacity: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .term-typing-cmd,\n  .term-typing-out,\n  .term-typing-line::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "box shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "blinking-cursor-text",
      "name": "Blinking Text Cursor",
      "category": "text",
      "tags": [
        "caret",
        "blink",
        "hero",
        "terminal",
        "pseudo-element"
      ],
      "description": "A thin blinking caret after any heading or line of text, sized in em so it scales with the font.",
      "url": "https://copy-css.com/snippets/blinking-cursor-text",
      "markdown": "https://copy-css.com/snippets/blinking-cursor-text.md",
      "html": "<h2 class=\"text-cursor\">Hi, I build websites</h2>",
      "css": ".text-cursor {\n  max-width: 11em;\n  margin: 0;\n  color: #0f172a;\n  font: 800 30px/1.2 system-ui, sans-serif;\n}\n\n.text-cursor::after {\n  content: \"\";\n  display: inline-block;\n  width: 0.08em;\n  height: 1em;\n  margin-left: 0.1em;\n  vertical-align: -0.12em;\n  background: #2563eb;\n  animation: text-cursor-blink 1s step-end infinite;\n}\n\n@keyframes text-cursor-blink {\n  50% { opacity: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-cursor::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "highlight-sweep",
      "name": "Highlight Sweep",
      "category": "text",
      "tags": [
        "marker",
        "mark",
        "animation",
        "emphasis",
        "background-size"
      ],
      "description": "A marker highlight that sweeps in behind key words from left to right when the page loads.",
      "url": "https://copy-css.com/snippets/highlight-sweep",
      "markdown": "https://copy-css.com/snippets/highlight-sweep.md",
      "html": "<p class=\"hl-sweep\">Launch <mark>twice as fast</mark> with less code.</p>",
      "css": ".hl-sweep {\n  max-width: 12em;\n  margin: 0;\n  color: #1f2937;\n  font: 700 26px/1.4 system-ui, sans-serif;\n}\n\n.hl-sweep mark {\n  padding: 0 0.15em;\n  color: inherit;\n  background: linear-gradient(100deg, #fde047, #facc15) no-repeat 0 0 / 0% 100%;\n  -webkit-box-decoration-break: clone;\n  box-decoration-break: clone;\n  animation: hl-sweep-in 0.9s 0.3s cubic-bezier(0.6, 0, 0.3, 1) forwards;\n}\n\n@keyframes hl-sweep-in {\n  to { background-size: 100% 100%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .hl-sweep mark {\n    animation: none;\n    background-size: 100% 100%;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "sketch-highlight",
      "name": "Hand-Drawn Highlight",
      "category": "text",
      "tags": [
        "marker",
        "sketch",
        "emphasis",
        "handmade",
        "border-radius"
      ],
      "description": "An uneven, slightly tilted marker stroke behind a phrase that looks like it was drawn by hand.",
      "url": "https://copy-css.com/snippets/sketch-highlight",
      "markdown": "https://copy-css.com/snippets/sketch-highlight.md",
      "html": "<p class=\"sketch-text\">We build <span class=\"sketch-mark\">real products</span> for real people.</p>",
      "css": ".sketch-text {\n  max-width: 12em;\n  margin: 0;\n  color: #1c1917;\n  font: 700 26px/1.45 system-ui, sans-serif;\n}\n\n.sketch-mark {\n  position: relative;\n  z-index: 0;\n  white-space: nowrap;\n}\n\n.sketch-mark::before {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  inset: 0.2em -0.3em 0 -0.25em;\n  border-radius: 0.8em 0.3em 0.9em 0.25em / 0.5em 0.9em 0.35em 0.8em;\n  background: #86efac;\n  transform: rotate(-2deg) skewX(-12deg);\n}",
      "features": [
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "hand-drawn-circle",
      "name": "Hand-Drawn Circle",
      "category": "text",
      "tags": [
        "annotation",
        "emphasis",
        "sketch",
        "pen",
        "border-radius"
      ],
      "description": "A loose, double-stroked pen circle around a word, like a note scribbled on paper.",
      "url": "https://copy-css.com/snippets/hand-drawn-circle",
      "markdown": "https://copy-css.com/snippets/hand-drawn-circle.md",
      "html": "<p class=\"circle-note\">Plans start at <span class=\"circle-mark\">$9</span> a month.</p>",
      "css": ".circle-note {\n  max-width: 11em;\n  margin: 0;\n  color: #111827;\n  font: 700 26px/1.7 system-ui, sans-serif;\n}\n\n.circle-mark {\n  position: relative;\n  display: inline-block;\n  padding: 0 0.3em;\n}\n\n.circle-mark::before,\n.circle-mark::after {\n  content: \"\";\n  position: absolute;\n  inset: -0.2em -0.15em -0.1em;\n  border: 2.5px solid #ef4444;\n  border-radius: 55% 45% 52% 48% / 60% 45% 55% 40%;\n  transform: rotate(-4deg);\n  pointer-events: none;\n}\n\n.circle-mark::after {\n  inset: -0.1em -0.3em -0.15em -0.2em;\n  border-width: 1.5px;\n  border-radius: 48% 52% 45% 55% / 45% 60% 40% 55%;\n  transform: rotate(3deg);\n}",
      "features": [
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "animated-strikethrough",
      "name": "Animated Strikethrough",
      "category": "text",
      "tags": [
        "line-through",
        "price",
        "crossed out",
        "sale",
        "del"
      ],
      "description": "A marker line that slashes through old text, handy for sale prices and before-and-after copy.",
      "url": "https://copy-css.com/snippets/animated-strikethrough",
      "markdown": "https://copy-css.com/snippets/animated-strikethrough.md",
      "html": "<p class=\"strike-note\">Was <s class=\"strike-line\">$49</s> now $29</p>",
      "css": ".strike-note {\n  margin: 0;\n  color: #111827;\n  font: 800 34px/1.3 system-ui, sans-serif;\n}\n\n.strike-line {\n  position: relative;\n  color: #6b7280;\n  text-decoration: none;\n}\n\n.strike-line::after {\n  content: \"\";\n  position: absolute;\n  top: 48%;\n  left: -0.1em;\n  right: -0.1em;\n  height: 0.12em;\n  border-radius: 1em;\n  background: #e11d48;\n  transform: rotate(-8deg) scaleX(0);\n  transform-origin: left;\n  animation: strike-line-draw 0.5s 0.4s ease-out forwards;\n}\n\n@keyframes strike-line-draw {\n  to { transform: rotate(-8deg) scaleX(1); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .strike-line::after {\n    animation: none;\n    transform: rotate(-8deg);\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "search-term-highlight",
      "name": "Search Term Highlight",
      "category": "text",
      "tags": [
        "mark",
        "search results",
        "box-decoration-break",
        "forced colors",
        "accessibility"
      ],
      "description": "Rounded, readable styling for the mark element in search results, with a forced-colors fallback.",
      "url": "https://copy-css.com/snippets/search-term-highlight",
      "markdown": "https://copy-css.com/snippets/search-term-highlight.md",
      "html": "<p class=\"search-snippet\">Free <mark class=\"search-mark\">CSS</mark> snippets for buttons, loaders and <mark class=\"search-mark\">CSS</mark> grid layouts.</p>",
      "css": ".search-snippet {\n  max-width: 17em;\n  margin: 0;\n  color: #374151;\n  font: 400 18px/1.6 system-ui, sans-serif;\n}\n\n.search-mark {\n  padding: 0.05em 0.25em;\n  border-radius: 0.3em;\n  background: #fef08a;\n  color: #713f12;\n  font-weight: 600;\n  box-shadow: inset 0 -0.12em 0 #facc15;\n  -webkit-box-decoration-break: clone;\n  box-decoration-break: clone;\n}\n\n@media (forced-colors: active) {\n  .search-mark {\n    background: Mark;\n    color: MarkText;\n  }\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "striped-shadow-text",
      "name": "Striped Shadow Text",
      "category": "text",
      "tags": [
        "stripes",
        "hatched",
        "retro",
        "offset",
        "poster"
      ],
      "description": "Bold text with an offset shadow made of diagonal stripes, a retro screen-print effect.",
      "url": "https://copy-css.com/snippets/striped-shadow-text",
      "markdown": "https://copy-css.com/snippets/striped-shadow-text.md",
      "html": "<h2 class=\"text-hatch\" data-text=\"Poster\">Poster</h2>",
      "css": "/* data-text must match the heading text */\n.text-hatch {\n  position: relative;\n  isolation: isolate;\n  margin: 0;\n  color: #f43f5e;\n  font: 900 54px/1 system-ui, sans-serif;\n}\n\n.text-hatch::after {\n  content: attr(data-text);\n  content: attr(data-text) / \"\";\n  position: absolute;\n  top: 0.09em;\n  left: 0.09em;\n  z-index: -1;\n  background: repeating-linear-gradient(45deg, #1e293b 0 2px, #1e293b00 2px 6px);\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n}",
      "features": [
        "linear gradients",
        "gradient-clipped text"
      ],
      "customProperties": []
    },
    {
      "id": "fire-text",
      "name": "Fire Text",
      "category": "text",
      "tags": [
        "flame",
        "burning",
        "text-shadow",
        "glow",
        "flicker"
      ],
      "description": "Burning text with stacked yellow, orange and red text-shadows that flicker like real flames.",
      "url": "https://copy-css.com/snippets/fire-text",
      "markdown": "https://copy-css.com/snippets/fire-text.md",
      "html": "<h2 class=\"text-fire\">Blaze</h2>",
      "css": ".text-fire {\n  margin: 0;\n  padding-top: 0.3em;\n  color: #fffbeb;\n  font: 900 56px/1 system-ui, sans-serif;\n  text-shadow:\n    0 0 2px #fde047,\n    0 -3px 3px #fde047,\n    1px -7px 6px #fb923c,\n    -1px -12px 10px #f97316,\n    0 -20px 18px #dc2626,\n    0 0 30px #7c2d12;\n  animation: text-fire-flicker 1.2s ease-in-out infinite alternate;\n}\n\n@keyframes text-fire-flicker {\n  50% {\n    text-shadow:\n      0 0 3px #fde047,\n      1px -4px 4px #fde047,\n      -2px -9px 7px #fb923c,\n      2px -15px 12px #f97316,\n      -1px -24px 20px #dc2626,\n      0 0 34px #7c2d12;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-fire { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "text shadows",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "layered-shadow-text",
      "name": "Layered Color Shadow",
      "category": "text",
      "tags": [
        "text-shadow",
        "stacked",
        "rainbow",
        "offset",
        "hover"
      ],
      "description": "Bold text with four stacked colored shadows that fold back into the letters on hover.",
      "url": "https://copy-css.com/snippets/layered-shadow-text",
      "markdown": "https://copy-css.com/snippets/layered-shadow-text.md",
      "html": "<h2 class=\"text-layers\">Layers</h2>",
      "css": ".text-layers {\n  margin: 0;\n  color: #1e1b4b;\n  font: 900 52px/1 system-ui, sans-serif;\n  text-shadow:\n    3px 3px 0 #f472b6,\n    6px 6px 0 #a78bfa,\n    9px 9px 0 #60a5fa,\n    12px 12px 0 #34d399;\n  transition: text-shadow 0.3s ease;\n}\n\n.text-layers:hover {\n  text-shadow:\n    0 0 0 #f472b6,\n    0 0 0 #a78bfa,\n    0 0 0 #60a5fa,\n    0 0 0 #34d399;\n}",
      "features": [
        "transitions",
        "text shadows"
      ],
      "customProperties": []
    },
    {
      "id": "chrome-text",
      "name": "Chrome Text",
      "category": "text",
      "tags": [
        "metallic",
        "silver",
        "80s",
        "drop-shadow",
        "shiny"
      ],
      "description": "Shiny metallic chrome lettering with a mirrored horizon gradient and a soft drop shadow.",
      "url": "https://copy-css.com/snippets/chrome-text",
      "markdown": "https://copy-css.com/snippets/chrome-text.md",
      "html": "<h2 class=\"text-chrome\">METAL</h2>",
      "css": ".text-chrome {\n  margin: 0;\n  font: 900 54px/1 system-ui, sans-serif;\n  letter-spacing: 0.04em;\n  background: linear-gradient(\n    180deg,\n    #ffffff 0%,\n    #cbd5e1 42%,\n    #334155 50%,\n    #94a3b8 60%,\n    #f8fafc 100%\n  );\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n  filter: drop-shadow(0 2px 0 #0f172a) drop-shadow(0 6px 10px #00000080);\n}",
      "features": [
        "linear gradients",
        "filters",
        "gradient-clipped text"
      ],
      "customProperties": []
    },
    {
      "id": "letter-stagger-reveal",
      "name": "Staggered Letter Reveal",
      "category": "text",
      "tags": [
        "letters",
        "stagger",
        "entrance",
        "hero",
        "custom properties"
      ],
      "description": "Each letter of a headline rises into place one after another, staggered with a custom property.",
      "url": "https://copy-css.com/snippets/letter-stagger-reveal",
      "markdown": "https://copy-css.com/snippets/letter-stagger-reveal.md",
      "html": "<h2 class=\"text-stagger\">\n  <span class=\"text-stagger-sr\">Welcome</span>\n  <span aria-hidden=\"true\"><span style=\"--i: 0\">W</span><span style=\"--i: 1\">e</span><span style=\"--i: 2\">l</span><span style=\"--i: 3\">c</span><span style=\"--i: 4\">o</span><span style=\"--i: 5\">m</span><span style=\"--i: 6\">e</span></span>\n</h2>",
      "css": ".text-stagger {\n  margin: 0;\n  color: #312e81;\n  font: 800 46px/1.1 system-ui, sans-serif;\n}\n\n/* Full word for screen readers, letters are hidden from them */\n.text-stagger-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n\n.text-stagger span span {\n  display: inline-block;\n  animation: text-stagger-in 0.6s calc(var(--i) * 70ms) cubic-bezier(0.2, 0.8, 0.2, 1.2) both;\n}\n\n@keyframes text-stagger-in {\n  from {\n    opacity: 0;\n    transform: translateY(0.5em) rotate(8deg);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-stagger span span { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "clip paths",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "blur-in-text",
      "name": "Blur In Text",
      "category": "text",
      "tags": [
        "fade in",
        "words",
        "entrance",
        "filter",
        "stagger"
      ],
      "description": "Words that fade in from a soft blur one by one, a calm entrance for hero headlines.",
      "url": "https://copy-css.com/snippets/blur-in-text",
      "markdown": "https://copy-css.com/snippets/blur-in-text.md",
      "html": "<h2 class=\"text-blur\">\n  <span style=\"--i: 0\">Calm,</span>\n  <span style=\"--i: 1\">clear</span>\n  <span style=\"--i: 2\">and focused</span>\n</h2>",
      "css": ".text-blur {\n  max-width: 9em;\n  margin: 0;\n  color: #0f172a;\n  font: 700 34px/1.2 system-ui, sans-serif;\n}\n\n.text-blur span {\n  display: inline-block;\n  animation: text-blur-in 0.9s calc(var(--i) * 0.2s) ease-out both;\n}\n\n@keyframes text-blur-in {\n  from {\n    opacity: 0;\n    filter: blur(12px);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-blur span { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "filters",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "block-reveal-text",
      "name": "Block Reveal Text",
      "category": "text",
      "tags": [
        "wipe",
        "clip-path",
        "entrance",
        "editorial",
        "headline"
      ],
      "description": "A solid color block wipes across the headline, then pulls away to reveal the text underneath.",
      "url": "https://copy-css.com/snippets/block-reveal-text",
      "markdown": "https://copy-css.com/snippets/block-reveal-text.md",
      "html": "<h2 class=\"text-wipe\">New collection</h2>",
      "css": ".text-wipe {\n  position: relative;\n  display: inline-block;\n  margin: 0;\n  color: #881337;\n  font: 800 34px/1.15 system-ui, sans-serif;\n  animation: text-wipe-text 1.2s steps(1, start) both;\n}\n\n.text-wipe::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: #f43f5e;\n  animation: text-wipe-block 1.2s cubic-bezier(0.7, 0, 0.3, 1) both;\n}\n\n@keyframes text-wipe-block {\n  0% { clip-path: inset(0 100% 0 0); }\n  50% { clip-path: inset(0); }\n  100% { clip-path: inset(0 0 0 100%); }\n}\n\n@keyframes text-wipe-text {\n  0%, 50% { color: transparent; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .text-wipe,\n  .text-wipe::after { animation: none; }\n\n  .text-wipe::after { display: none; }\n}",
      "features": [
        "keyframe animations",
        "clip paths",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "spoiler-text",
      "name": "Spoiler Text",
      "category": "text",
      "tags": [
        "blur",
        "hidden",
        "reveal",
        "censor",
        "forum"
      ],
      "description": "Blurred spoiler text that comes into focus on hover, tap or keyboard focus, like on forums and chats.",
      "url": "https://copy-css.com/snippets/spoiler-text",
      "markdown": "https://copy-css.com/snippets/spoiler-text.md",
      "html": "<p class=\"spoiler-note\">The killer was <span class=\"spoiler-blur\" tabindex=\"0\">the butler</span>.</p>",
      "css": ".spoiler-note {\n  max-width: 14em;\n  margin: 0;\n  color: #0f172a;\n  font: 500 22px/1.5 system-ui, sans-serif;\n}\n\n.spoiler-blur {\n  padding: 0 0.2em;\n  border-radius: 0.3em;\n  background: #e2e8f0;\n  color: transparent;\n  text-shadow: 0 0 0.35em #0f172a;\n  -webkit-box-decoration-break: clone;\n  box-decoration-break: clone;\n  cursor: pointer;\n  transition: color 0.25s ease, text-shadow 0.25s ease;\n}\n\n.spoiler-blur:hover,\n.spoiler-blur:focus {\n  color: inherit;\n  text-shadow: none;\n}\n\n.spoiler-blur:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "text shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "fluid-typography",
      "name": "Fluid Typography",
      "category": "text",
      "tags": [
        "clamp",
        "responsive",
        "font-size",
        "container units",
        "scale"
      ],
      "description": "Headings and body text that scale smoothly with their container using clamp(), with no breakpoints.",
      "url": "https://copy-css.com/snippets/fluid-typography",
      "markdown": "https://copy-css.com/snippets/fluid-typography.md",
      "html": "<article class=\"fluid-type\">\n  <h2>Fluid type</h2>\n  <p>Sizes scale smoothly with the container, between a set minimum and maximum.</p>\n</article>",
      "css": "/* cqi follows the container width. Swap it for vw to follow the viewport. */\n.fluid-type {\n  container-type: inline-size;\n  color: #0f172a;\n  font-family: system-ui, sans-serif;\n}\n\n.fluid-type h2 {\n  margin: 0 0 0.4em;\n  font-size: clamp(1.5rem, 0.9rem + 6cqi, 3rem);\n  line-height: 1.1;\n}\n\n.fluid-type p {\n  margin: 0;\n  color: #475569;\n  font-size: clamp(0.875rem, 0.8rem + 1cqi, 1.125rem);\n  line-height: 1.5;\n}",
      "features": [
        "container queries"
      ],
      "customProperties": []
    },
    {
      "id": "glass-card",
      "name": "Glassmorphism Card",
      "category": "cards",
      "tags": [
        "glass",
        "glassmorphism",
        "blur",
        "frosted",
        "backdrop-filter"
      ],
      "description": "A frosted glass card using backdrop-filter blur over a colorful background.",
      "url": "https://copy-css.com/snippets/glass-card",
      "markdown": "https://copy-css.com/snippets/glass-card.md",
      "html": "<div class=\"glass-card\">\n  <h3>Glassmorphism</h3>\n  <p>Frosted glass with backdrop-filter.</p>\n</div>",
      "css": ".glass-card {\n  width: 220px;\n  padding: 24px;\n  border: 1px solid rgba(255, 255, 255, 0.35);\n  border-radius: 20px;\n  background: rgba(255, 255, 255, 0.15);\n  -webkit-backdrop-filter: blur(14px);\n  backdrop-filter: blur(14px);\n  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.glass-card h3 {\n  margin: 0 0 6px;\n  font-size: 18px;\n}\n\n.glass-card p {\n  margin: 0;\n  font-size: 14px;\n  line-height: 1.5;\n  opacity: 0.85;\n}",
      "features": [
        "box shadows",
        "backdrop filters"
      ],
      "customProperties": []
    },
    {
      "id": "hover-lift-card",
      "name": "Hover Lift Card",
      "category": "cards",
      "tags": [
        "hover",
        "lift",
        "shadow",
        "clean"
      ],
      "description": "A clean, minimal card that lifts up with a soft shadow on hover.",
      "url": "https://copy-css.com/snippets/hover-lift-card",
      "markdown": "https://copy-css.com/snippets/hover-lift-card.md",
      "html": "<div class=\"card-lift\">\n  <span class=\"card-lift-tag\">New</span>\n  <h3>Hover me</h3>\n  <p>A clean card that lifts with a soft shadow.</p>\n</div>",
      "css": ".card-lift {\n  width: 220px;\n  padding: 22px;\n  border: 1px solid #e5e7eb;\n  border-radius: 16px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n  transition: transform 0.25s ease, box-shadow 0.25s ease;\n}\n\n.card-lift:hover {\n  transform: translateY(-6px);\n  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);\n}\n\n.card-lift-tag {\n  display: inline-block;\n  padding: 3px 10px;\n  border-radius: 999px;\n  background: #eef2ff;\n  color: #4f46e5;\n  font-size: 12px;\n  font-weight: 700;\n}\n\n.card-lift h3 {\n  margin: 12px 0 4px;\n  font-size: 18px;\n}\n\n.card-lift p {\n  margin: 0;\n  color: #6b7280;\n  font-size: 14px;\n  line-height: 1.5;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "glow-border-card",
      "name": "Glowing Border Card",
      "category": "cards",
      "tags": [
        "gradient",
        "border",
        "glow",
        "dark"
      ],
      "description": "A dark card with a gradient border and a colorful ambient glow.",
      "url": "https://copy-css.com/snippets/glow-border-card",
      "markdown": "https://copy-css.com/snippets/glow-border-card.md",
      "html": "<div class=\"card-glow\">\n  <h3>Pro plan</h3>\n  <p>Everything you need to ship faster.</p>\n</div>",
      "css": ".card-glow {\n  width: 220px;\n  padding: 24px;\n  border: 2px solid transparent;\n  border-radius: 16px;\n  background:\n    linear-gradient(#0f172a, #0f172a) padding-box,\n    linear-gradient(135deg, #22d3ee, #a855f7, #f43f5e) border-box;\n  box-shadow:\n    -12px -12px 40px -16px #22d3ee,\n    12px 12px 40px -16px #f43f5e;\n  color: #e2e8f0;\n  font-family: system-ui, sans-serif;\n}\n\n.card-glow h3 {\n  margin: 0 0 6px;\n  font-size: 18px;\n}\n\n.card-glow p {\n  margin: 0;\n  color: #94a3b8;\n  font-size: 14px;\n  line-height: 1.5;\n}",
      "features": [
        "linear gradients",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "flip-card",
      "name": "3D Flip Card",
      "category": "cards",
      "tags": [
        "flip",
        "3d",
        "rotate",
        "hover",
        "perspective"
      ],
      "description": "A card that flips over in 3D on hover to reveal its back side.",
      "url": "https://copy-css.com/snippets/flip-card",
      "markdown": "https://copy-css.com/snippets/flip-card.md",
      "html": "<div class=\"flip-card\">\n  <div class=\"flip-inner\">\n    <div class=\"flip-front\">Hover to flip</div>\n    <div class=\"flip-back\">Surprise!</div>\n  </div>\n</div>",
      "css": ".flip-card {\n  width: 190px;\n  height: 120px;\n  perspective: 800px;\n  font: 700 18px/1 system-ui, sans-serif;\n}\n\n.flip-inner {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  transform-style: preserve-3d;\n  transition: transform 0.6s ease;\n}\n\n.flip-card:hover .flip-inner {\n  transform: rotateY(180deg);\n}\n\n.flip-front,\n.flip-back {\n  position: absolute;\n  inset: 0;\n  display: grid;\n  place-items: center;\n  border-radius: 14px;\n  color: #fff;\n  -webkit-backface-visibility: hidden;\n  backface-visibility: hidden;\n}\n\n.flip-front { background: #7c3aed; }\n\n.flip-back {\n  background: #db2777;\n  transform: rotateY(180deg);\n}",
      "features": [
        "transitions",
        "3D transforms",
        "transforms",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "profile-card",
      "name": "Profile Card",
      "category": "cards",
      "tags": [
        "profile",
        "user",
        "avatar",
        "follow",
        "social"
      ],
      "description": "A compact user card with a gradient avatar and a follow button.",
      "url": "https://copy-css.com/snippets/profile-card",
      "markdown": "https://copy-css.com/snippets/profile-card.md",
      "html": "<div class=\"profile\">\n  <div class=\"profile-avatar\">JD</div>\n  <div>\n    <h3>Jamie Doe</h3>\n    <p>Designer</p>\n  </div>\n  <button>Follow</button>\n</div>",
      "css": ".profile {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  width: 260px;\n  padding: 14px;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.2);\n  font-family: system-ui, sans-serif;\n}\n\n.profile-avatar {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 46px;\n  height: 46px;\n  border-radius: 50%;\n  background: linear-gradient(135deg, #f59e0b, #ec4899);\n  color: #fff;\n  font-weight: 700;\n}\n\n.profile h3 {\n  margin: 0;\n  color: #111;\n  font-size: 15px;\n}\n\n.profile p {\n  margin: 2px 0 0;\n  color: #6b7280;\n  font-size: 13px;\n}\n\n.profile button {\n  margin-left: auto;\n  padding: 8px 14px;\n  border: 0;\n  border-radius: 999px;\n  background: #111;\n  color: #fff;\n  font: 600 13px system-ui, sans-serif;\n  cursor: pointer;\n}",
      "features": [
        "linear gradients",
        "box shadows",
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "hover-reveal-card",
      "name": "Hover Reveal Card",
      "category": "cards",
      "tags": [
        "image",
        "overlay",
        "caption",
        "hover",
        "reveal"
      ],
      "description": "An image card whose caption slides up with extra details on hover.",
      "url": "https://copy-css.com/snippets/hover-reveal-card",
      "markdown": "https://copy-css.com/snippets/hover-reveal-card.md",
      "html": "<div class=\"reveal-card\">\n  <div class=\"reveal-caption\">\n    <h3>Mountains</h3>\n    <p>Hover to read more</p>\n  </div>\n</div>",
      "css": ".reveal-card {\n  position: relative;\n  overflow: hidden;\n  width: 220px;\n  height: 150px;\n  border-radius: 16px;\n  /* Swap for: url(photo.jpg) center / cover */\n  background: linear-gradient(160deg, #38bdf8, #6366f1 60%, #1e1b4b);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.reveal-caption {\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  padding: 14px 16px;\n  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));\n  transform: translateY(40%);\n  transition: transform 0.3s ease;\n}\n\n.reveal-card h3 {\n  margin: 0;\n  font-size: 17px;\n}\n\n.reveal-card p {\n  margin: 4px 0 0;\n  font-size: 13px;\n  opacity: 0;\n  transition: opacity 0.3s ease;\n}\n\n.reveal-card:hover .reveal-caption {\n  transform: none;\n}\n\n.reveal-card:hover p {\n  opacity: 0.85;\n}",
      "features": [
        "transitions",
        "transforms",
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "stat-card",
      "name": "Stat Card",
      "category": "cards",
      "tags": [
        "dashboard",
        "kpi",
        "metric",
        "analytics",
        "number"
      ],
      "description": "A clean dashboard metric card with a big number and a trend badge.",
      "url": "https://copy-css.com/snippets/stat-card",
      "markdown": "https://copy-css.com/snippets/stat-card.md",
      "html": "<div class=\"stat-card\">\n  <p>Monthly visitors</p>\n  <strong>48,210</strong>\n  <span class=\"stat-up\">▲ 12.4%</span>\n</div>",
      "css": ".stat-card {\n  width: 200px;\n  padding: 18px 20px;\n  border: 1px solid #e5e7eb;\n  border-radius: 16px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.stat-card p {\n  margin: 0;\n  color: #6b7280;\n  font-size: 13px;\n  font-weight: 500;\n}\n\n.stat-card strong {\n  display: block;\n  margin: 6px 0 10px;\n  color: #111;\n  font-size: 30px;\n  font-variant-numeric: tabular-nums;\n  letter-spacing: -0.02em;\n}\n\n.stat-up {\n  display: inline-block;\n  padding: 3px 8px;\n  border-radius: 999px;\n  background: #dcfce7;\n  color: #15803d;\n  font-size: 12px;\n  font-weight: 700;\n}",
      "features": [],
      "customProperties": []
    },
    {
      "id": "notification-card",
      "name": "Notification Card",
      "category": "cards",
      "tags": [
        "notification",
        "toast",
        "alert",
        "success",
        "message"
      ],
      "description": "A success notification with an accent border, icon and dismiss button.",
      "url": "https://copy-css.com/snippets/notification-card",
      "markdown": "https://copy-css.com/snippets/notification-card.md",
      "html": "<div class=\"notice\" role=\"status\">\n  <span class=\"notice-icon\">✓</span>\n  <div>\n    <strong>Changes saved</strong>\n    <p>Your profile has been updated.</p>\n  </div>\n  <button class=\"notice-close\" aria-label=\"Dismiss\">×</button>\n</div>",
      "css": ".notice {\n  display: flex;\n  align-items: flex-start;\n  gap: 12px;\n  width: 260px;\n  padding: 14px;\n  border-left: 4px solid #22c55e;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);\n  font-family: system-ui, sans-serif;\n}\n\n.notice-icon {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  background: #dcfce7;\n  color: #16a34a;\n  font-size: 13px;\n  font-weight: 800;\n}\n\n.notice strong {\n  display: block;\n  color: #111;\n  font-size: 14px;\n}\n\n.notice p {\n  margin: 2px 0 0;\n  color: #6b7280;\n  font-size: 13px;\n  line-height: 1.4;\n}\n\n.notice-close {\n  margin-left: auto;\n  padding: 0 4px;\n  border: 0;\n  background: none;\n  color: #9ca3af;\n  font-size: 20px;\n  line-height: 1;\n  cursor: pointer;\n}\n\n.notice-close:hover {\n  color: #111;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "ticket-card",
      "name": "Ticket Card",
      "category": "cards",
      "tags": [
        "ticket",
        "coupon",
        "notch",
        "radial-gradient",
        "event"
      ],
      "description": "An event ticket with punched-out side notches made from radial gradients.",
      "url": "https://copy-css.com/snippets/ticket-card",
      "markdown": "https://copy-css.com/snippets/ticket-card.md",
      "html": "<div class=\"ticket\">\n  <small>Admit one</small>\n  <strong>Design Summit</strong>\n  <span>Row 4 · Seat 12</span>\n</div>",
      "css": ".ticket {\n  display: grid;\n  gap: 2px;\n  width: 220px;\n  padding: 18px 26px;\n  border-radius: 12px;\n  background:\n    radial-gradient(circle at 0 50%, transparent 11px, #7c3aed 12px) left / 51% 100% no-repeat,\n    radial-gradient(circle at 100% 50%, transparent 11px, #7c3aed 12px) right / 51% 100% no-repeat;\n  color: #fff;\n  font-family: system-ui, sans-serif;\n  filter: drop-shadow(0 8px 14px rgba(124, 58, 237, 0.35));\n}\n\n.ticket small {\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.14em;\n  text-transform: uppercase;\n  opacity: 0.75;\n}\n\n.ticket strong {\n  font-size: 20px;\n}\n\n.ticket span {\n  font-size: 13px;\n  opacity: 0.85;\n}",
      "features": [
        "radial gradients",
        "filters",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "pricing-card",
      "name": "Pricing Card",
      "category": "cards",
      "tags": [
        "pricing",
        "plan",
        "saas",
        "features",
        "cta"
      ],
      "description": "A clean pricing plan card with a price, a feature list and a full-width button.",
      "url": "https://copy-css.com/snippets/pricing-card",
      "markdown": "https://copy-css.com/snippets/pricing-card.md",
      "html": "<div class=\"price-card\">\n  <p class=\"price-name\">Pro</p>\n  <p class=\"price-amount\">$12<span>/mo</span></p>\n  <ul>\n    <li>Unlimited projects</li>\n    <li>Priority support</li>\n  </ul>\n  <a class=\"price-cta\" href=\"#\">Choose plan</a>\n</div>",
      "css": ".price-card {\n  width: 200px;\n  padding: 20px;\n  border: 1px solid #e0e7ff;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 10px 30px -12px rgba(67, 56, 202, 0.25);\n  font-family: system-ui, sans-serif;\n}\n\n.price-name {\n  margin: 0;\n  color: #4f46e5;\n  font-size: 13px;\n  font-weight: 700;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.price-amount {\n  margin: 6px 0 12px;\n  color: #111827;\n  font-size: 34px;\n  font-weight: 800;\n}\n\n.price-amount span {\n  color: #6b7280;\n  font-size: 14px;\n  font-weight: 500;\n}\n\n.price-card ul {\n  margin: 0 0 16px;\n  padding: 0;\n  list-style: none;\n  color: #374151;\n  font-size: 13px;\n}\n\n.price-card li {\n  padding: 3px 0 3px 20px;\n  background: no-repeat left center / 14px\n    url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\");\n}\n\n.price-cta {\n  display: block;\n  padding: 10px;\n  border-radius: 10px;\n  background: #4f46e5;\n  color: #fff;\n  font-size: 14px;\n  font-weight: 600;\n  text-align: center;\n  text-decoration: none;\n}\n\n.price-cta:hover {\n  background: #4338ca;\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "testimonial-card",
      "name": "Testimonial Card",
      "category": "cards",
      "tags": [
        "testimonial",
        "quote",
        "review",
        "blockquote",
        "social proof"
      ],
      "description": "A quote card with a large decorative quotation mark and an author line.",
      "url": "https://copy-css.com/snippets/testimonial-card",
      "markdown": "https://copy-css.com/snippets/testimonial-card.md",
      "html": "<figure class=\"quote-card\">\n  <blockquote>Paste, tweak two colors, done. It saved me an afternoon.</blockquote>\n  <figcaption><strong>Sam Rivera</strong> · Front-end developer</figcaption>\n</figure>",
      "css": ".quote-card {\n  position: relative;\n  max-width: 260px;\n  margin: 0;\n  padding: 28px 22px 20px;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 8px 24px -10px rgba(113, 63, 18, 0.25);\n  font-family: system-ui, sans-serif;\n}\n\n.quote-card::before {\n  content: \"\\201C\";\n  position: absolute;\n  top: -6px;\n  left: 16px;\n  color: #facc15;\n  font: 900 72px/1 Georgia, serif;\n}\n\n.quote-card blockquote {\n  margin: 0 0 12px;\n  color: #1c1917;\n  font-size: 15px;\n  line-height: 1.5;\n}\n\n.quote-card figcaption {\n  color: #78716c;\n  font-size: 12px;\n}\n\n.quote-card strong {\n  color: #1c1917;\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "feature-card",
      "name": "Feature Card",
      "category": "cards",
      "tags": [
        "feature",
        "icon",
        "landing page",
        "hover",
        "grid"
      ],
      "description": "A landing-page feature card with a tinted icon badge that tilts on hover.",
      "url": "https://copy-css.com/snippets/feature-card",
      "markdown": "https://copy-css.com/snippets/feature-card.md",
      "html": "<div class=\"feature-card\">\n  <span class=\"feature-icon\">\n    <svg viewBox=\"0 0 24 24\" width=\"22\" height=\"22\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M13 2 3 14h9l-1 8 10-12h-9l1-8z\"/></svg>\n  </span>\n  <h3>Lightning fast</h3>\n  <p>No frameworks, no build step. Just CSS.</p>\n</div>",
      "css": ".feature-card {\n  width: 210px;\n  padding: 20px;\n  border: 1px solid #dcfce7;\n  border-radius: 16px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n  transition: border-color 0.2s ease;\n}\n\n.feature-card:hover {\n  border-color: #86efac;\n}\n\n.feature-icon {\n  display: inline-grid;\n  place-items: center;\n  width: 42px;\n  height: 42px;\n  border-radius: 12px;\n  background: #dcfce7;\n  color: #16a34a;\n  transition: transform 0.25s ease;\n}\n\n.feature-card:hover .feature-icon {\n  transform: rotate(-8deg) scale(1.08);\n}\n\n.feature-card h3 {\n  margin: 14px 0 4px;\n  color: #14532d;\n  font-size: 16px;\n}\n\n.feature-card p {\n  margin: 0;\n  color: #4b5563;\n  font-size: 13px;\n  line-height: 1.5;\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "caption-overlay-card",
      "name": "Caption Overlay Card",
      "category": "cards",
      "tags": [
        "image",
        "overlay",
        "caption",
        "gradient",
        "hover"
      ],
      "description": "An image card with a dark gradient overlay that keeps the caption readable.",
      "url": "https://copy-css.com/snippets/caption-overlay-card",
      "markdown": "https://copy-css.com/snippets/caption-overlay-card.md",
      "html": "<a class=\"overlay-card\" href=\"#\">\n  <div class=\"overlay-media\"></div>\n  <div class=\"overlay-text\">\n    <small>Travel</small>\n    <strong>Morning in the hills</strong>\n  </div>\n</a>",
      "css": ".overlay-card {\n  position: relative;\n  display: block;\n  overflow: hidden;\n  width: 220px;\n  height: 160px;\n  border-radius: 16px;\n  color: #fff;\n  text-decoration: none;\n  font-family: system-ui, sans-serif;\n}\n\n/* Swap the background for your own image */\n.overlay-media {\n  position: absolute;\n  inset: 0;\n  background: #94a3b8 center / cover;\n  transition: transform 0.4s ease;\n}\n\n.overlay-card::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);\n}\n\n.overlay-card:hover .overlay-media {\n  transform: scale(1.06);\n}\n\n.overlay-text {\n  position: absolute;\n  z-index: 1;\n  left: 16px;\n  right: 16px;\n  bottom: 14px;\n  display: grid;\n  gap: 2px;\n}\n\n.overlay-text small {\n  opacity: 0.8;\n  font-size: 11px;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.overlay-text strong {\n  font-size: 16px;\n}",
      "features": [
        "transitions",
        "transforms",
        "linear gradients",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "blog-card",
      "name": "Blog Post Card",
      "category": "cards",
      "tags": [
        "blog",
        "article",
        "post",
        "thumbnail",
        "horizontal",
        "link"
      ],
      "description": "A compact article card with a thumbnail, tag and meta line, where the whole card is one link.",
      "url": "https://copy-css.com/snippets/blog-card",
      "markdown": "https://copy-css.com/snippets/blog-card.md",
      "html": "<article class=\"post-card\">\n  <div class=\"post-thumb\"></div>\n  <div class=\"post-body\">\n    <span class=\"post-tag\">Design</span>\n    <h3><a href=\"#\">Ten rules for calmer interfaces</a></h3>\n    <p>Mar 12 · 5 min read</p>\n  </div>\n</article>",
      "css": ".post-card {\n  position: relative;\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  max-width: 340px;\n  padding: 10px;\n  border: 1px solid #e4e4e7;\n  border-radius: 16px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n}\n\n.post-card:hover {\n  border-color: #d4d4d8;\n  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.3);\n}\n\n.post-card:has(a:focus-visible) {\n  outline: 2px solid #7c3aed;\n  outline-offset: 2px;\n}\n\n/* Use an <img> here in real projects */\n.post-thumb {\n  flex: none;\n  width: 88px;\n  height: 88px;\n  border-radius: 10px;\n  background: #e4e4e7;\n  object-fit: cover;\n}\n\n.post-tag {\n  color: #7c3aed;\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.06em;\n  text-transform: uppercase;\n}\n\n.post-body h3 {\n  margin: 4px 0 6px;\n  font-size: 15px;\n  line-height: 1.3;\n}\n\n.post-body a {\n  color: #18181b;\n  text-decoration: none;\n  outline: none;\n}\n\n/* Stretch the link over the whole card */\n.post-body a::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  border-radius: inherit;\n}\n\n.post-body p {\n  margin: 0;\n  color: #71717a;\n  font-size: 12px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "Flexbox",
        "the :has() selector",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "expanding-cards",
      "name": "Expanding Cards",
      "category": "cards",
      "tags": [
        "expand",
        "accordion",
        "gallery",
        "hover",
        "flex",
        "panels"
      ],
      "description": "A row of image panels where the one you hover or focus grows to fill the space.",
      "url": "https://copy-css.com/snippets/expanding-cards",
      "markdown": "https://copy-css.com/snippets/expanding-cards.md",
      "html": "<div class=\"expand-cards\">\n  <a href=\"#\"><span>Mountains</span></a>\n  <a href=\"#\"><span>Forest</span></a>\n  <a href=\"#\"><span>Desert</span></a>\n  <a href=\"#\"><span>Ocean</span></a>\n</div>",
      "css": ".expand-cards {\n  display: flex;\n  gap: 8px;\n  width: 100%;\n  height: 300px;\n}\n\n/* Set each panel's background-image inline */\n.expand-cards > * {\n  flex: 1;\n  display: flex;\n  align-items: flex-end;\n  min-width: 0;\n  padding: 12px;\n  overflow: hidden;\n  border-radius: 14px;\n  background: #d4d4d8 center / cover;\n  color: #fff;\n  font: 700 14px system-ui, sans-serif;\n  text-decoration: none;\n  white-space: nowrap;\n  transition: flex-grow 0.45s ease;\n}\n\n.expand-cards span {\n  opacity: 0;\n  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);\n  transition: opacity 0.3s ease;\n}\n\n/* The hovered or focused panel grows. The first one is open by default. */\n.expand-cards > :hover,\n.expand-cards > :focus-visible,\n.expand-cards:not(:hover, :focus-within) > :first-child {\n  flex-grow: 4;\n}\n\n.expand-cards > :hover span,\n.expand-cards > :focus-visible span,\n.expand-cards:not(:hover, :focus-within) > :first-child span {\n  opacity: 1;\n}\n\n.expand-cards > :focus-visible {\n  outline: 2px solid #4338ca;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "text shadows",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "animated-border-card",
      "name": "Animated Border Card",
      "category": "cards",
      "tags": [
        "border",
        "animated",
        "conic",
        "rotate",
        "gradient",
        "dark"
      ],
      "description": "A dark card with a gradient border that keeps rotating around its edge.",
      "url": "https://copy-css.com/snippets/animated-border-card",
      "markdown": "https://copy-css.com/snippets/animated-border-card.md",
      "html": "<div class=\"border-spin\">\n  <h3>Realtime sync</h3>\n  <p>Every change shows up everywhere, instantly.</p>\n</div>",
      "css": ".border-spin {\n  position: relative;\n  isolation: isolate;\n  overflow: hidden;\n  width: 220px;\n  padding: 22px;\n  border-radius: 16px;\n  color: #cbd5e1;\n  font: 14px/1.5 system-ui, sans-serif;\n}\n\n/* A spinning gradient, larger than the card */\n.border-spin::before {\n  content: \"\";\n  position: absolute;\n  top: 50%;\n  left: 50%;\n  z-index: -2;\n  width: 200%;\n  aspect-ratio: 1;\n  background: conic-gradient(#22d3ee, #a855f7, #f43f5e, #22d3ee);\n  translate: -50% -50%;\n  animation: border-spin 4s linear infinite;\n}\n\n/* The inner panel covers all but a 2px edge */\n.border-spin::after {\n  content: \"\";\n  position: absolute;\n  inset: 2px;\n  z-index: -1;\n  border-radius: 14px;\n  background: #0f172a;\n}\n\n.border-spin h3 {\n  margin: 0 0 6px;\n  color: #f8fafc;\n  font-size: 17px;\n}\n\n.border-spin p {\n  margin: 0;\n}\n\n@keyframes border-spin {\n  to { rotate: 1turn; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .border-spin::before { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "conic gradients",
        "aspect-ratio",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "fan-out-cards",
      "name": "Fan-out Card Stack",
      "category": "cards",
      "tags": [
        "stack",
        "deck",
        "fan",
        "hover",
        "photos",
        "rotate"
      ],
      "description": "A neat stack of cards that fans out like a hand of cards when you hover it.",
      "url": "https://copy-css.com/snippets/fan-out-cards",
      "markdown": "https://copy-css.com/snippets/fan-out-cards.md",
      "html": "<div class=\"fan\" tabindex=\"0\" role=\"group\" aria-label=\"Photo stack\">\n  <div></div>\n  <div></div>\n  <div></div>\n</div>",
      "css": ".fan {\n  position: relative;\n  width: 120px;\n  height: 150px;\n}\n\n/* Set each card's background-image to a photo */\n.fan > * {\n  position: absolute;\n  inset: 0;\n  border: 4px solid #fff;\n  border-radius: 14px;\n  background: #e7e5e4 center / cover;\n  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);\n  transform-origin: 50% 100%;\n  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);\n}\n\n.fan > :nth-child(1) { transform: rotate(-4deg); }\n.fan > :nth-child(3) { transform: rotate(4deg); }\n\n.fan:hover > :nth-child(1),\n.fan:focus-visible > :nth-child(1) {\n  transform: translateX(-18px) rotate(-12deg);\n}\n\n.fan:hover > :nth-child(2),\n.fan:focus-visible > :nth-child(2) {\n  transform: translateY(-8px);\n}\n\n.fan:hover > :nth-child(3),\n.fan:focus-visible > :nth-child(3) {\n  transform: translateX(18px) rotate(12deg);\n}\n\n.fan:focus-visible {\n  outline: none;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "payment-card",
      "name": "Payment Card",
      "category": "cards",
      "tags": [
        "credit card",
        "debit",
        "wallet",
        "checkout",
        "gradient",
        "fintech"
      ],
      "description": "A bank-card style design at the real 1.586 card ratio, with a chip, masked number and soft sheen.",
      "url": "https://copy-css.com/snippets/payment-card",
      "markdown": "https://copy-css.com/snippets/payment-card.md",
      "html": "<div class=\"pay-card\">\n  <div class=\"pay-chip\"></div>\n  <div class=\"pay-number\">•••• •••• •••• 4242</div>\n  <div class=\"pay-meta\">\n    <span>Alex Morgan</span>\n    <span>09/29</span>\n  </div>\n</div>",
      "css": ".pay-card {\n  box-sizing: border-box;\n  display: grid;\n  align-content: space-between;\n  width: 240px;\n  aspect-ratio: 1.586;\n  padding: 18px;\n  border-radius: 14px;\n  background:\n    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.28), transparent 55%),\n    linear-gradient(135deg, #1e3a8a, #7c3aed);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n  box-shadow: 0 18px 36px -16px rgba(30, 58, 138, 0.7);\n}\n\n.pay-chip {\n  width: 36px;\n  height: 26px;\n  border-radius: 6px;\n  background: linear-gradient(135deg, #fde68a, #d97706);\n  box-shadow: inset 0 0 0 1px rgba(120, 53, 15, 0.3);\n}\n\n.pay-number {\n  font: 600 15px ui-monospace, \"SF Mono\", Menlo, monospace;\n  letter-spacing: 0.06em;\n  white-space: nowrap;\n}\n\n.pay-meta {\n  display: flex;\n  justify-content: space-between;\n  font-size: 11px;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n  opacity: 0.85;\n}",
      "features": [
        "linear gradients",
        "radial gradients",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "aspect-ratio"
      ],
      "customProperties": []
    },
    {
      "id": "event-card",
      "name": "Event Card",
      "category": "cards",
      "tags": [
        "event",
        "calendar",
        "date",
        "meetup",
        "schedule",
        "list"
      ],
      "description": "A compact event row with a tear-off calendar date badge, ready for agendas and listings.",
      "url": "https://copy-css.com/snippets/event-card",
      "markdown": "https://copy-css.com/snippets/event-card.md",
      "html": "<article class=\"event-card\">\n  <time class=\"event-date\" datetime=\"2026-11-24\">\n    <span>Nov</span>\n    <strong>24</strong>\n  </time>\n  <div>\n    <h3>Design Systems Meetup</h3>\n    <p>6:30 PM · Berlin</p>\n  </div>\n</article>",
      "css": ".event-card {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  max-width: 320px;\n  padding: 12px 18px 12px 12px;\n  border: 1px solid #e4e4e7;\n  border-radius: 16px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.event-date {\n  flex: none;\n  display: flex;\n  flex-direction: column;\n  width: 56px;\n  overflow: hidden;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 0 0 1px #e4e4e7, 0 4px 10px -6px rgba(0, 0, 0, 0.3);\n  line-height: 1;\n  text-align: center;\n}\n\n.event-date span {\n  padding: 5px 0;\n  background: #ef4444;\n  color: #fff;\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.event-date strong {\n  padding: 7px 0 9px;\n  color: #18181b;\n  font-size: 22px;\n}\n\n.event-card h3 {\n  margin: 0 0 4px;\n  color: #18181b;\n  font-size: 15px;\n  line-height: 1.3;\n}\n\n.event-card p {\n  margin: 0;\n  color: #71717a;\n  font-size: 13px;\n}",
      "features": [
        "box shadows",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "profile-cover-card",
      "name": "Profile Cover Card",
      "category": "cards",
      "tags": [
        "profile",
        "cover",
        "banner",
        "avatar",
        "followers",
        "social"
      ],
      "description": "A user profile card with a gradient cover banner, an overlapping avatar and a row of follower stats.",
      "url": "https://copy-css.com/snippets/profile-cover-card",
      "markdown": "https://copy-css.com/snippets/profile-cover-card.md",
      "html": "<article class=\"pcover\">\n  <div class=\"pcover-banner\"></div>\n  <span class=\"pcover-avatar\" aria-hidden=\"true\">MR</span>\n  <h3>Maya Reyes</h3>\n  <p>Product designer · Lisbon</p>\n  <dl class=\"pcover-stats\">\n    <div><dt>Posts</dt><dd>128</dd></div>\n    <div><dt>Followers</dt><dd>4.2k</dd></div>\n    <div><dt>Following</dt><dd>310</dd></div>\n  </dl>\n</article>",
      "css": ".pcover {\n  width: 240px;\n  overflow: hidden;\n  border-radius: 18px;\n  background: #fff;\n  box-shadow: 0 12px 32px -12px rgba(30, 27, 75, 0.25);\n  color: #1e1b4b;\n  font-family: system-ui, sans-serif;\n  text-align: center;\n}\n\n.pcover-banner {\n  height: 52px;\n  background: linear-gradient(120deg, #818cf8, #c084fc, #f472b6);\n}\n\n.pcover-avatar {\n  display: grid;\n  place-items: center;\n  width: 56px;\n  height: 56px;\n  margin: -28px auto 0;\n  border: 4px solid #fff;\n  border-radius: 50%;\n  background: #312e81;\n  color: #fff;\n  font-size: 18px;\n  font-weight: 700;\n}\n\n.pcover h3 {\n  margin: 6px 0 2px;\n  font-size: 16px;\n}\n\n.pcover p {\n  margin: 0;\n  color: #6b7280;\n  font-size: 13px;\n}\n\n.pcover-stats {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  margin: 12px 0 0;\n  padding: 10px 0 12px;\n  border-top: 1px solid #eef2ff;\n}\n\n.pcover-stats div {\n  display: flex;\n  flex-direction: column-reverse;\n}\n\n.pcover-stats dd {\n  margin: 0;\n  font-size: 15px;\n  font-weight: 700;\n}\n\n.pcover-stats dt {\n  color: #6b7280;\n  font-size: 11px;\n}",
      "features": [
        "linear gradients",
        "box shadows",
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "team-member-card",
      "name": "Team Member Card",
      "category": "cards",
      "tags": [
        "team",
        "about page",
        "staff",
        "social links",
        "avatar",
        "portrait"
      ],
      "description": "A centered team member card for about pages, with a ringed portrait, role and round contact links.",
      "url": "https://copy-css.com/snippets/team-member-card",
      "markdown": "https://copy-css.com/snippets/team-member-card.md",
      "html": "<article class=\"team-card\">\n  <span class=\"team-card-photo\" aria-hidden=\"true\">LK</span>\n  <h3>Leo Kim</h3>\n  <p>Head of Engineering</p>\n  <ul class=\"team-card-links\">\n    <li>\n      <a href=\"#\" aria-label=\"Email Leo\">\n        <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"m3 7 9 6 9-6\"/></svg>\n      </a>\n    </li>\n    <li>\n      <a href=\"#\" aria-label=\"Leo's website\">\n        <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/></svg>\n      </a>\n    </li>\n  </ul>\n</article>",
      "css": ".team-card {\n  --accent: #0d9488;\n  width: 200px;\n  padding: 20px 16px;\n  border: 1px solid #ccfbf1;\n  border-radius: 16px;\n  background: #fff;\n  color: #134e4a;\n  font-family: system-ui, sans-serif;\n  text-align: center;\n}\n\n.team-card-photo {\n  display: grid;\n  place-items: center;\n  width: 64px;\n  height: 64px;\n  margin: 0 auto 10px;\n  border-radius: 50%;\n  background: linear-gradient(135deg, #5eead4, #0f766e);\n  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent);\n  color: #fff;\n  font-size: 20px;\n  font-weight: 700;\n}\n\n.team-card h3 {\n  margin: 0;\n  font-size: 16px;\n}\n\n.team-card p {\n  margin: 2px 0 12px;\n  color: #5f7f7c;\n  font-size: 13px;\n}\n\n.team-card-links {\n  display: flex;\n  justify-content: center;\n  gap: 8px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n.team-card-links a {\n  display: grid;\n  place-items: center;\n  width: 34px;\n  height: 34px;\n  border-radius: 50%;\n  background: #f0fdfa;\n  color: var(--accent);\n  transition: background 0.2s ease, color 0.2s ease;\n}\n\n.team-card-links a:hover {\n  background: var(--accent);\n  color: #fff;\n}\n\n.team-card-links a:focus-visible {\n  outline: 2px solid var(--accent);\n  outline-offset: 2px;\n}\n\n.team-card-links svg {\n  width: 16px;\n  height: 16px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}",
      "features": [
        "transitions",
        "linear gradients",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--accent",
          "value": "#0d9488"
        }
      ]
    },
    {
      "id": "contact-card",
      "name": "Contact Card",
      "category": "cards",
      "tags": [
        "contact",
        "vcard",
        "email",
        "phone",
        "business card",
        "support"
      ],
      "description": "A contact card with an avatar, role and clickable email and phone links marked with small icons.",
      "url": "https://copy-css.com/snippets/contact-card",
      "markdown": "https://copy-css.com/snippets/contact-card.md",
      "html": "<article class=\"contact-card\">\n  <span class=\"contact-card-avatar\" aria-hidden=\"true\">AO</span>\n  <div>\n    <h3>Ana Ortiz</h3>\n    <p>Account manager</p>\n    <a class=\"contact-card-mail\" href=\"mailto:ana@example.com\">ana@example.com</a>\n    <a class=\"contact-card-tel\" href=\"tel:+15551234567\">+1 555 123 4567</a>\n  </div>\n</article>",
      "css": ".contact-card {\n  display: flex;\n  gap: 14px;\n  width: 280px;\n  padding: 18px;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px -8px rgba(124, 45, 18, 0.2);\n  color: #431407;\n  font-family: system-ui, sans-serif;\n}\n\n.contact-card-avatar {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  border-radius: 14px;\n  background: #fb923c;\n  color: #fff;\n  font-weight: 700;\n}\n\n.contact-card h3 {\n  margin: 0;\n  font-size: 16px;\n}\n\n.contact-card p {\n  margin: 2px 0 10px;\n  color: #9a5b3d;\n  font-size: 13px;\n}\n\n.contact-card a {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  margin-top: 4px;\n  border-radius: 4px;\n  color: #c2410c;\n  font-size: 14px;\n  text-decoration: none;\n}\n\n.contact-card a::before {\n  content: \"\";\n  width: 14px;\n  height: 14px;\n  background: currentColor;\n  -webkit-mask: var(--icon) center / contain no-repeat;\n  mask: var(--icon) center / contain no-repeat;\n}\n\n.contact-card-mail {\n  --icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E\");\n}\n\n.contact-card-tel {\n  --icon: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E\");\n}\n\n.contact-card a:hover {\n  text-decoration: underline;\n}\n\n.contact-card a:focus-visible {\n  outline: 2px solid #ea580c;\n  outline-offset: 2px;\n}",
      "features": [
        "box shadows",
        "masks",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--icon",
          "value": "url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E\")"
        }
      ]
    },
    {
      "id": "author-bio-card",
      "name": "Author Bio Card",
      "category": "cards",
      "tags": [
        "author",
        "bio",
        "blog",
        "byline",
        "about the author",
        "article footer"
      ],
      "description": "An \"about the author\" box for the end of blog posts, with an avatar, short bio and link to more posts.",
      "url": "https://copy-css.com/snippets/author-bio-card",
      "markdown": "https://copy-css.com/snippets/author-bio-card.md",
      "html": "<aside class=\"author-bio\" aria-label=\"About the author\">\n  <span class=\"author-bio-avatar\" aria-hidden=\"true\">JN</span>\n  <div>\n    <p class=\"author-bio-label\">Written by</p>\n    <h3>Jordan Ng</h3>\n    <p>Writes about CSS architecture and design systems, and keeps a very long list of unread books.</p>\n    <a href=\"#\">More posts by Jordan</a>\n  </div>\n</aside>",
      "css": ".author-bio {\n  display: flex;\n  gap: 16px;\n  max-width: 340px;\n  padding: 18px 20px;\n  border-left: 4px solid #57534e;\n  border-radius: 4px 14px 14px 4px;\n  background: #fff;\n  color: #1c1917;\n  font-family: Georgia, \"Times New Roman\", serif;\n}\n\n.author-bio-avatar {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 52px;\n  height: 52px;\n  border-radius: 50%;\n  background: #e7e5e4;\n  color: #44403c;\n  font: 700 16px system-ui, sans-serif;\n}\n\n.author-bio-label {\n  margin: 0;\n  color: #78716c;\n  font: 600 11px system-ui, sans-serif;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.author-bio h3 {\n  margin: 2px 0 6px;\n  font-size: 18px;\n}\n\n.author-bio p {\n  margin: 0;\n  color: #57534e;\n  font-size: 14px;\n  line-height: 1.5;\n}\n\n.author-bio a {\n  display: inline-block;\n  margin-top: 8px;\n  color: #1c1917;\n  font: 600 13px system-ui, sans-serif;\n  text-underline-offset: 3px;\n}\n\n.author-bio a:focus-visible {\n  outline: 2px solid #1c1917;\n  outline-offset: 2px;\n}",
      "features": [
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "featured-pricing-card",
      "name": "Featured Pricing Card",
      "category": "cards",
      "tags": [
        "pricing",
        "most popular",
        "badge",
        "plan",
        "saas",
        "dark"
      ],
      "description": "A dark highlighted pricing plan with a \"Most popular\" badge, check-mark features and a gradient button.",
      "url": "https://copy-css.com/snippets/featured-pricing-card",
      "markdown": "https://copy-css.com/snippets/featured-pricing-card.md",
      "html": "<article class=\"plan-featured\">\n  <span class=\"plan-featured-badge\">Most popular</span>\n  <h3>Team</h3>\n  <p class=\"plan-featured-price\"><strong>$29</strong> per user / month</p>\n  <ul>\n    <li>Unlimited projects</li>\n    <li>Shared component libraries</li>\n    <li>SSO and audit log</li>\n  </ul>\n  <a class=\"plan-featured-cta\" href=\"#\">Start free trial</a>\n</article>",
      "css": ".plan-featured {\n  position: relative;\n  width: 230px;\n  padding: 26px 22px 22px;\n  border: 1px solid #6366f1;\n  border-radius: 18px;\n  background: linear-gradient(180deg, #1e1b4b, #0f172a 60%);\n  box-shadow: 0 20px 50px -20px rgba(99, 102, 241, 0.6);\n  color: #e0e7ff;\n  font-family: system-ui, sans-serif;\n}\n\n.plan-featured-badge {\n  position: absolute;\n  top: 0;\n  left: 50%;\n  padding: 4px 12px;\n  border-radius: 999px;\n  background: linear-gradient(90deg, #818cf8, #e879f9);\n  color: #1e1b4b;\n  font-size: 11px;\n  font-weight: 800;\n  letter-spacing: 0.04em;\n  text-transform: uppercase;\n  white-space: nowrap;\n  transform: translate(-50%, -50%);\n}\n\n.plan-featured h3 {\n  margin: 0;\n  font-size: 15px;\n  font-weight: 600;\n}\n\n.plan-featured-price {\n  margin: 6px 0 14px;\n  color: #a5b4fc;\n  font-size: 13px;\n}\n\n.plan-featured-price strong {\n  color: #fff;\n  font-size: 32px;\n}\n\n.plan-featured ul {\n  display: grid;\n  gap: 8px;\n  margin: 0 0 18px;\n  padding: 0;\n  font-size: 14px;\n  list-style: none;\n}\n\n.plan-featured li {\n  display: flex;\n  gap: 8px;\n}\n\n.plan-featured li::before {\n  content: \"✓\";\n  color: #a5b4fc;\n  font-weight: 800;\n}\n\n.plan-featured-cta {\n  display: block;\n  padding: 11px;\n  border-radius: 10px;\n  background: linear-gradient(90deg, #6366f1, #c026d3);\n  color: #fff;\n  font-size: 14px;\n  font-weight: 700;\n  text-align: center;\n  text-decoration: none;\n  transition: filter 0.2s ease;\n}\n\n.plan-featured-cta:hover {\n  filter: brightness(1.15);\n}\n\n.plan-featured-cta:focus-visible {\n  outline: 2px solid #e0e7ff;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "transforms",
        "linear gradients",
        "box shadows",
        "filters",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "pricing-tier-cards",
      "name": "Pricing Tier Cards",
      "category": "cards",
      "tags": [
        "pricing table",
        "plans",
        "tiers",
        "comparison",
        "grid",
        "highlighted"
      ],
      "description": "Three side-by-side pricing tiers with the middle plan raised and highlighted, ready for a pricing page.",
      "url": "https://copy-css.com/snippets/pricing-tier-cards",
      "markdown": "https://copy-css.com/snippets/pricing-tier-cards.md",
      "html": "<div class=\"price-tiers\">\n  <article class=\"price-tier\">\n    <h3>Free</h3>\n    <p><strong>$0</strong>/mo</p>\n    <a href=\"#\">Start</a>\n  </article>\n  <article class=\"price-tier price-tier-pop\">\n    <h3>Pro</h3>\n    <p><strong>$12</strong>/mo</p>\n    <a href=\"#\">Upgrade</a>\n  </article>\n  <article class=\"price-tier\">\n    <h3>Team</h3>\n    <p><strong>$29</strong>/mo</p>\n    <a href=\"#\">Contact</a>\n  </article>\n</div>",
      "css": ".price-tiers {\n  display: grid;\n  grid-template-columns: repeat(3, minmax(0, 1fr));\n  align-items: center;\n  gap: 8px;\n  width: 100%;\n  max-width: 360px;\n  font-family: system-ui, sans-serif;\n}\n\n.price-tier {\n  padding: 16px 8px;\n  border: 1px solid #e2e8f0;\n  border-radius: 14px;\n  background: #fff;\n  color: #0f172a;\n  text-align: center;\n}\n\n.price-tier h3 {\n  margin: 0;\n  color: #64748b;\n  font-size: 13px;\n  font-weight: 600;\n}\n\n.price-tier p {\n  margin: 4px 0 12px;\n  color: #64748b;\n  font-size: 12px;\n}\n\n.price-tier strong {\n  color: inherit;\n  font-size: 22px;\n}\n\n.price-tier a {\n  display: block;\n  padding: 7px 2px;\n  border: 1px solid #cbd5e1;\n  border-radius: 8px;\n  color: #0f172a;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n}\n\n.price-tier a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}\n\n.price-tier-pop {\n  padding: 24px 8px;\n  border-color: #2563eb;\n  background: #2563eb;\n  box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.55);\n  color: #fff;\n}\n\n.price-tier-pop h3,\n.price-tier-pop p {\n  color: #dbeafe;\n}\n\n.price-tier-pop a {\n  border-color: #fff;\n  background: #fff;\n  color: #1d4ed8;\n}\n\n.price-tier-pop a:focus-visible {\n  outline-color: #fff;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "pricing-toggle-card",
      "name": "Pricing Toggle Card",
      "category": "cards",
      "tags": [
        "pricing",
        "monthly yearly",
        "billing toggle",
        "has",
        "radio",
        "discount"
      ],
      "description": "A pricing card with a monthly/yearly switch that swaps the price using radio buttons and :has().",
      "url": "https://copy-css.com/snippets/pricing-toggle-card",
      "markdown": "https://copy-css.com/snippets/pricing-toggle-card.md",
      "html": "<article class=\"price-switch\">\n  <fieldset class=\"price-switch-toggle\">\n    <legend>Billing period</legend>\n    <label><input type=\"radio\" name=\"period\" value=\"monthly\" checked> Monthly</label>\n    <label><input type=\"radio\" name=\"period\" value=\"yearly\"> Yearly <em>−20%</em></label>\n  </fieldset>\n  <p class=\"price-switch-amount\">\n    <span class=\"price-switch-monthly\">$15</span>\n    <span class=\"price-switch-yearly\">$12</span>\n    <small>per month</small>\n  </p>\n  <a href=\"#\">Get started</a>\n</article>",
      "css": ".price-switch {\n  width: 240px;\n  padding: 18px;\n  border-radius: 18px;\n  background: #fff;\n  box-shadow: 0 10px 30px -12px rgba(20, 83, 45, 0.3);\n  color: #14532d;\n  font-family: system-ui, sans-serif;\n  text-align: center;\n}\n\n.price-switch-toggle {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  margin: 0;\n  padding: 4px;\n  border: 0;\n  border-radius: 999px;\n  background: #dcfce7;\n}\n\n.price-switch-toggle legend {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n}\n\n.price-switch-toggle label {\n  padding: 7px 4px;\n  border-radius: 999px;\n  font-size: 13px;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.price-switch-toggle input {\n  position: absolute;\n  opacity: 0;\n}\n\n.price-switch-toggle label:has(:checked) {\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);\n}\n\n.price-switch-toggle label:has(:focus-visible) {\n  outline: 2px solid #16a34a;\n  outline-offset: 1px;\n}\n\n.price-switch-toggle em {\n  color: #16a34a;\n  font-size: 11px;\n  font-style: normal;\n}\n\n.price-switch-amount {\n  margin: 14px 0;\n}\n\n.price-switch-amount span {\n  font-size: 40px;\n  font-weight: 800;\n}\n\n.price-switch-amount small {\n  display: block;\n  color: #4d7c5f;\n  font-size: 13px;\n}\n\n.price-switch-yearly,\n.price-switch:has([value=\"yearly\"]:checked) .price-switch-monthly {\n  display: none;\n}\n\n.price-switch:has([value=\"yearly\"]:checked) .price-switch-yearly {\n  display: inline;\n}\n\n.price-switch > a {\n  display: block;\n  padding: 10px;\n  border-radius: 10px;\n  background: #16a34a;\n  color: #fff;\n  font-size: 14px;\n  font-weight: 700;\n  text-decoration: none;\n}\n\n.price-switch > a:focus-visible {\n  outline: 2px solid #14532d;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "clip paths",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "plan-comparison-card",
      "name": "Plan Comparison Card",
      "category": "cards",
      "tags": [
        "pricing",
        "features",
        "included",
        "excluded",
        "checklist",
        "plan"
      ],
      "description": "A pricing card that lists included features with checks and greys out the ones the plan leaves out.",
      "url": "https://copy-css.com/snippets/plan-comparison-card",
      "markdown": "https://copy-css.com/snippets/plan-comparison-card.md",
      "html": "<article class=\"plan-compare\">\n  <header>\n    <h3>Starter</h3>\n    <p><strong>$9</strong> / month</p>\n  </header>\n  <ul>\n    <li>5 projects</li>\n    <li>Basic analytics</li>\n    <li class=\"is-off\"><span class=\"plan-compare-sr\">Not included: </span>Custom domain</li>\n    <li class=\"is-off\"><span class=\"plan-compare-sr\">Not included: </span>Priority support</li>\n  </ul>\n  <a href=\"#\">Choose Starter</a>\n</article>",
      "css": ".plan-compare {\n  width: 220px;\n  padding: 18px;\n  border: 1px solid #f0abfc;\n  border-radius: 16px;\n  background: #fff;\n  color: #4a044e;\n  font-family: system-ui, sans-serif;\n}\n\n.plan-compare header {\n  display: flex;\n  justify-content: space-between;\n  align-items: baseline;\n  padding-bottom: 12px;\n  border-bottom: 1px dashed #f5d0fe;\n}\n\n.plan-compare h3 {\n  margin: 0;\n  font-size: 16px;\n}\n\n.plan-compare header p {\n  margin: 0;\n  color: #a21caf;\n  font-size: 12px;\n}\n\n.plan-compare strong {\n  font-size: 22px;\n}\n\n.plan-compare ul {\n  display: grid;\n  gap: 8px;\n  margin: 14px 0 16px;\n  padding: 0;\n  font-size: 14px;\n  list-style: none;\n}\n\n.plan-compare li::before {\n  content: \"✓\";\n  display: inline-grid;\n  place-items: center;\n  width: 18px;\n  height: 18px;\n  margin-right: 8px;\n  border-radius: 50%;\n  background: #fae8ff;\n  color: #a21caf;\n  font-size: 11px;\n  font-weight: 800;\n}\n\n.plan-compare li.is-off {\n  color: #a3a3a3;\n}\n\n.plan-compare li.is-off::before {\n  content: \"✕\";\n  background: #f5f5f5;\n  color: #a3a3a3;\n}\n\n.plan-compare-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n\n.plan-compare a {\n  display: block;\n  padding: 9px;\n  border: 1.5px solid #c026d3;\n  border-radius: 10px;\n  color: #a21caf;\n  font-size: 14px;\n  font-weight: 700;\n  text-align: center;\n  text-decoration: none;\n  transition: background 0.2s ease, color 0.2s ease;\n}\n\n.plan-compare a:hover {\n  background: #c026d3;\n  color: #fff;\n}\n\n.plan-compare a:focus-visible {\n  outline: 2px solid #c026d3;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "clip paths",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "product-card",
      "name": "Product Card",
      "category": "cards",
      "tags": [
        "ecommerce",
        "shop",
        "add to cart",
        "wishlist",
        "rating",
        "price"
      ],
      "description": "An e-commerce product card with an image, wishlist button, star rating, price and add-to-cart button.",
      "url": "https://copy-css.com/snippets/product-card",
      "markdown": "https://copy-css.com/snippets/product-card.md",
      "html": "<article class=\"shop-card\">\n  <div class=\"shop-card-media\">\n    <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 25'%3E%3Crect width='40' height='25' fill='%23e0e7ff'/%3E%3Crect x='14' y='7' width='12' height='14' rx='2' fill='%236366f1'/%3E%3Cpath d='M17 8V6a3 3 0 0 1 6 0v2' fill='none' stroke='%234338ca' stroke-width='1.4'/%3E%3C/svg%3E\" alt=\"Indigo canvas tote bag\" width=\"200\" height=\"125\">\n    <button class=\"shop-card-wish\" type=\"button\" aria-label=\"Add to wishlist\">\n      <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 20.5 4.1 12.8A5 5 0 0 1 12 6.6a5 5 0 0 1 7.9 6.2Z\"/></svg>\n    </button>\n  </div>\n  <div class=\"shop-card-body\">\n    <h3><a href=\"#\">Canvas Tote</a></h3>\n    <p class=\"shop-card-rating\"><span aria-hidden=\"true\">★</span> 4.8 <span>(212 reviews)</span></p>\n    <div class=\"shop-card-foot\">\n      <strong>$48</strong>\n      <button type=\"button\">Add to cart</button>\n    </div>\n  </div>\n</article>",
      "css": ".shop-card {\n  width: 200px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 20px -8px rgba(0, 0, 0, 0.15);\n  color: #1c1917;\n  font-family: system-ui, sans-serif;\n}\n\n.shop-card-media {\n  position: relative;\n}\n\n.shop-card-media img {\n  display: block;\n  width: 100%;\n  height: auto;\n  aspect-ratio: 8 / 5;\n  object-fit: cover;\n}\n\n.shop-card-wish {\n  position: absolute;\n  top: 8px;\n  right: 8px;\n  display: grid;\n  place-items: center;\n  width: 32px;\n  height: 32px;\n  padding: 0;\n  border: 0;\n  border-radius: 50%;\n  background: #fff;\n  color: #e11d48;\n  cursor: pointer;\n}\n\n.shop-card-wish svg {\n  width: 16px;\n  height: 16px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n}\n\n.shop-card-wish:hover svg {\n  fill: currentColor;\n}\n\n.shop-card-body {\n  padding: 12px 14px 14px;\n}\n\n.shop-card h3 {\n  margin: 0;\n  font-size: 15px;\n}\n\n.shop-card h3 a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.shop-card-rating {\n  margin: 2px 0 10px;\n  font-size: 12px;\n}\n\n.shop-card-rating span:first-child {\n  color: #f59e0b;\n}\n\n.shop-card-rating span:last-child {\n  color: #78716c;\n}\n\n.shop-card-foot {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n\n.shop-card-foot strong {\n  font-size: 18px;\n}\n\n.shop-card-foot button {\n  padding: 7px 12px;\n  border: 0;\n  border-radius: 8px;\n  background: #1c1917;\n  color: #fff;\n  font: 600 13px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.shop-card-foot button:hover {\n  background: #44403c;\n}\n\n.shop-card a:focus-visible,\n.shop-card button:focus-visible {\n  outline: 2px solid #6366f1;\n  outline-offset: 2px;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "aspect-ratio",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "sale-product-card",
      "name": "Sale Product Card",
      "category": "cards",
      "tags": [
        "sale",
        "discount",
        "badge",
        "strikethrough price",
        "low stock",
        "ecommerce"
      ],
      "description": "A product card for discounts, with a percent-off badge, crossed-out old price and a low-stock meter.",
      "url": "https://copy-css.com/snippets/sale-product-card",
      "markdown": "https://copy-css.com/snippets/sale-product-card.md",
      "html": "<article class=\"sale-card\">\n  <div class=\"sale-card-media\">\n    <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 25'%3E%3Crect width='40' height='25' fill='%23ffe4e6'/%3E%3Cpath d='M13 16v-3a7 7 0 0 1 14 0v3' fill='none' stroke='%23be123c' stroke-width='2.2'/%3E%3Crect x='11' y='14' width='5' height='7' rx='2' fill='%23e11d48'/%3E%3Crect x='24' y='14' width='5' height='7' rx='2' fill='%23e11d48'/%3E%3C/svg%3E\" alt=\"Red wireless headphones\" width=\"200\" height=\"125\">\n    <span class=\"sale-card-badge\">−30%</span>\n  </div>\n  <h3><a href=\"#\">Wireless Headphones</a></h3>\n  <p class=\"sale-card-price\"><ins>$139</ins> <del>$199</del></p>\n  <p class=\"sale-card-stock\" style=\"--left: 15%\">Only 3 left</p>\n</article>",
      "css": ".sale-card {\n  width: 200px;\n  padding: 10px 10px 14px;\n  border-radius: 16px;\n  background: #fff;\n  color: #18181b;\n  font-family: system-ui, sans-serif;\n}\n\n.sale-card-media {\n  position: relative;\n  margin-bottom: 10px;\n}\n\n.sale-card-media img {\n  display: block;\n  width: 100%;\n  height: auto;\n  border-radius: 10px;\n}\n\n.sale-card-badge {\n  position: absolute;\n  top: 8px;\n  left: 8px;\n  padding: 3px 8px;\n  border-radius: 6px;\n  background: #e11d48;\n  color: #fff;\n  font-size: 12px;\n  font-weight: 800;\n}\n\n.sale-card h3 {\n  margin: 0 4px;\n  font-size: 14px;\n  font-weight: 600;\n}\n\n.sale-card h3 a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.sale-card h3 a:focus-visible {\n  outline: 2px solid #e11d48;\n  outline-offset: 2px;\n}\n\n.sale-card-price {\n  margin: 4px 4px 8px;\n}\n\n.sale-card-price ins {\n  color: #e11d48;\n  font-size: 18px;\n  font-weight: 800;\n  text-decoration: none;\n}\n\n.sale-card-price del {\n  color: #a1a1aa;\n  font-size: 13px;\n}\n\n.sale-card-stock {\n  margin: 0 4px;\n  color: #be123c;\n  font-size: 12px;\n  font-weight: 600;\n}\n\n.sale-card-stock::after {\n  content: \"\";\n  display: block;\n  height: 5px;\n  margin-top: 5px;\n  border-radius: 999px;\n  background: linear-gradient(90deg, #e11d48 var(--left, 20%), #ffe4e6 0);\n}",
      "features": [
        "linear gradients",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": []
    },
    {
      "id": "product-quick-actions-card",
      "name": "Product Quick Actions Card",
      "category": "cards",
      "tags": [
        "product",
        "hover actions",
        "quick view",
        "add to cart",
        "shop",
        "focus-within"
      ],
      "description": "A product tile whose Quick view and Add to cart buttons slide up on hover or keyboard focus.",
      "url": "https://copy-css.com/snippets/product-quick-actions-card",
      "markdown": "https://copy-css.com/snippets/product-quick-actions-card.md",
      "html": "<article class=\"quick-card\">\n  <div class=\"quick-card-media\">\n    <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E%3Crect width='40' height='30' fill='%23fef3c7'/%3E%3Crect x='13' y='9' width='12' height='14' rx='2' fill='%23d97706'/%3E%3Cpath d='M25 12h2a3 3 0 0 1 0 6h-2' fill='none' stroke='%23b45309' stroke-width='2'/%3E%3C/svg%3E\" alt=\"Amber stoneware mug\" width=\"200\" height=\"150\">\n    <div class=\"quick-card-actions\">\n      <button type=\"button\">Quick view</button>\n      <button type=\"button\">Add to cart</button>\n    </div>\n  </div>\n  <h3><a href=\"#\">Stoneware Mug</a></h3>\n  <p>$24</p>\n</article>",
      "css": ".quick-card {\n  width: 200px;\n  color: #292524;\n  font-family: system-ui, sans-serif;\n}\n\n.quick-card-media {\n  position: relative;\n  overflow: hidden;\n  border-radius: 14px;\n}\n\n.quick-card-media img {\n  display: block;\n  width: 100%;\n  height: auto;\n  transition: transform 0.4s ease;\n}\n\n.quick-card-actions {\n  position: absolute;\n  right: 8px;\n  bottom: 8px;\n  left: 8px;\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 6px;\n  opacity: 0;\n  transform: translateY(12px);\n  transition: opacity 0.25s ease, transform 0.25s ease;\n}\n\n.quick-card-actions button {\n  padding: 8px 4px;\n  border: 0;\n  border-radius: 8px;\n  background: #fff;\n  color: #292524;\n  font: 600 12px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.quick-card-actions button:last-child {\n  background: #292524;\n  color: #fff;\n}\n\n.quick-card:hover .quick-card-actions,\n.quick-card:focus-within .quick-card-actions {\n  opacity: 1;\n  transform: none;\n}\n\n.quick-card:hover img {\n  transform: scale(1.05);\n}\n\n.quick-card button:focus-visible,\n.quick-card a:focus-visible {\n  outline: 2px solid #d97706;\n  outline-offset: 2px;\n}\n\n.quick-card h3 {\n  margin: 10px 0 0;\n  font-size: 14px;\n  font-weight: 600;\n}\n\n.quick-card h3 a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.quick-card p {\n  margin: 2px 0 0;\n  color: #78716c;\n  font-size: 14px;\n}\n\n@media (hover: none) {\n  .quick-card-actions {\n    opacity: 1;\n    transform: none;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .quick-card-media img,\n  .quick-card-actions {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "course-card",
      "name": "Course Card",
      "category": "cards",
      "tags": [
        "course",
        "lesson",
        "elearning",
        "progress",
        "education",
        "lms"
      ],
      "description": "An online course card with a cover tile, level tag, lesson count and a styled progress bar.",
      "url": "https://copy-css.com/snippets/course-card",
      "markdown": "https://copy-css.com/snippets/course-card.md",
      "html": "<article class=\"course-card\">\n  <div class=\"course-card-cover\" aria-hidden=\"true\">CSS</div>\n  <div class=\"course-card-body\">\n    <span class=\"course-card-level\">Intermediate</span>\n    <h3><a href=\"#\">Modern CSS Layouts</a></h3>\n    <p>12 lessons · 3 h 20 min</p>\n    <label>\n      <span>40% complete</span>\n      <progress value=\"40\" max=\"100\">40%</progress>\n    </label>\n  </div>\n</article>",
      "css": ".course-card {\n  display: flex;\n  width: 100%;\n  max-width: 320px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 8px 24px -10px rgba(30, 64, 175, 0.3);\n  color: #172554;\n  font-family: system-ui, sans-serif;\n}\n\n.course-card-cover {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 88px;\n  background: linear-gradient(160deg, #60a5fa, #1d4ed8);\n  color: #fff;\n  font-size: 20px;\n  font-weight: 800;\n}\n\n.course-card-body {\n  flex: 1;\n  padding: 14px;\n}\n\n.course-card-level {\n  padding: 2px 8px;\n  border-radius: 999px;\n  background: #dbeafe;\n  color: #1d4ed8;\n  font-size: 11px;\n  font-weight: 700;\n}\n\n.course-card h3 {\n  margin: 8px 0 2px;\n  font-size: 15px;\n}\n\n.course-card h3 a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.course-card h3 a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}\n\n.course-card p {\n  margin: 0 0 10px;\n  color: #64748b;\n  font-size: 12px;\n}\n\n.course-card label {\n  display: grid;\n  gap: 4px;\n  color: #475569;\n  font-size: 11px;\n  font-weight: 600;\n}\n\n.course-card progress {\n  width: 100%;\n  height: 6px;\n  border: 0;\n  border-radius: 999px;\n  background: #e2e8f0;\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.course-card progress::-webkit-progress-bar {\n  border-radius: 999px;\n  background: #e2e8f0;\n}\n\n.course-card progress::-webkit-progress-value {\n  border-radius: 999px;\n  background: #2563eb;\n}\n\n.course-card progress::-moz-progress-bar {\n  border-radius: 999px;\n  background: #2563eb;\n}",
      "features": [
        "linear gradients",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "article-card",
      "name": "Article Card",
      "category": "cards",
      "tags": [
        "blog",
        "article",
        "post",
        "excerpt",
        "author",
        "clickable card"
      ],
      "description": "A vertical blog article card with a cover image, category, clamped excerpt and author line, all one link.",
      "url": "https://copy-css.com/snippets/article-card",
      "markdown": "https://copy-css.com/snippets/article-card.md",
      "html": "<article class=\"article-card\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Crect width='40' height='16' fill='%23a5f3fc'/%3E%3Ccircle cx='29' cy='5' r='3' fill='%23fde047'/%3E%3Cpath d='M0 16v-6l9-4 8 5 7-3 16 8z' fill='%230d9488'/%3E%3Cpath d='M0 16l14-4 10 2 7-1 9 3z' fill='%23115e59'/%3E%3C/svg%3E\" alt=\"\" width=\"250\" height=\"100\">\n  <div class=\"article-card-body\">\n    <p class=\"article-card-cat\">Engineering</p>\n    <h3><a href=\"#\">How we cut our CSS bundle in half</a></h3>\n    <p class=\"article-card-excerpt\">A practical look at cascade layers, container queries and finally deleting old code.</p>\n    <p class=\"article-card-meta\">Rae Tan · Oct 4 · 7 min read</p>\n  </div>\n</article>",
      "css": ".article-card {\n  position: relative;\n  width: 250px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);\n  color: #0f172a;\n  font-family: system-ui, sans-serif;\n  transition: box-shadow 0.2s ease, transform 0.2s ease;\n}\n\n.article-card:hover {\n  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.25);\n  transform: translateY(-3px);\n}\n\n.article-card img {\n  display: block;\n  width: 100%;\n  height: auto;\n}\n\n.article-card-body {\n  padding: 12px 16px 16px;\n}\n\n.article-card-cat {\n  margin: 0;\n  color: #0d9488;\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.06em;\n  text-transform: uppercase;\n}\n\n.article-card h3 {\n  margin: 4px 0 6px;\n  font-size: 16px;\n  line-height: 1.3;\n}\n\n.article-card h3 a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.article-card h3 a::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n}\n\n.article-card:has(a:focus-visible) {\n  outline: 3px solid #0d9488;\n  outline-offset: 3px;\n}\n\n.article-card h3 a:focus-visible {\n  outline: none;\n}\n\n.article-card-excerpt {\n  display: -webkit-box;\n  margin: 0 0 10px;\n  overflow: hidden;\n  color: #475569;\n  font-size: 13px;\n  line-height: 1.5;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 2;\n}\n\n.article-card-meta {\n  margin: 0;\n  color: #94a3b8;\n  font-size: 12px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .article-card {\n    transition: none;\n  }\n\n  .article-card:hover {\n    transform: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "the :has() selector",
        "line clamping",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "trending-posts-card",
      "name": "Trending Posts Card",
      "category": "cards",
      "tags": [
        "trending",
        "popular posts",
        "sidebar",
        "numbered list",
        "blog",
        "counter"
      ],
      "description": "A sidebar widget listing popular posts with large zero-padded numbers drawn by a CSS counter.",
      "url": "https://copy-css.com/snippets/trending-posts-card",
      "markdown": "https://copy-css.com/snippets/trending-posts-card.md",
      "html": "<section class=\"trending\" aria-labelledby=\"trending-title\">\n  <h3 id=\"trending-title\">Trending</h3>\n  <ol>\n    <li><a href=\"#\">The case for boring CSS</a><span>4 min read</span></li>\n    <li><a href=\"#\">Grid or flexbox, a field guide</a><span>6 min read</span></li>\n    <li><a href=\"#\">Writing forms people finish</a><span>8 min read</span></li>\n  </ol>\n</section>",
      "css": ".trending {\n  width: 260px;\n  padding: 16px 18px;\n  border-radius: 16px;\n  background: #fff;\n  color: #1c1917;\n  font-family: system-ui, sans-serif;\n}\n\n.trending h3 {\n  margin: 0 0 6px;\n  font-size: 13px;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.trending ol {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  counter-reset: trending;\n}\n\n.trending li {\n  display: grid;\n  grid-template-columns: 38px 1fr;\n  padding: 8px 0;\n  border-top: 1px solid #f5f5f4;\n  counter-increment: trending;\n}\n\n.trending li::before {\n  content: counter(trending, decimal-leading-zero);\n  grid-row: span 2;\n  color: #eab308;\n  font-size: 24px;\n  font-weight: 800;\n  line-height: 1;\n}\n\n.trending a {\n  color: inherit;\n  font-size: 14px;\n  font-weight: 600;\n  line-height: 1.3;\n  text-decoration: none;\n}\n\n.trending a:hover {\n  text-decoration: underline;\n}\n\n.trending a:focus-visible {\n  outline: 2px solid #ca8a04;\n  outline-offset: 2px;\n}\n\n.trending span {\n  color: #a8a29e;\n  font-size: 12px;\n}",
      "features": [
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "link-preview-card",
      "name": "Link Preview Card",
      "category": "cards",
      "tags": [
        "link preview",
        "open graph",
        "og image",
        "embed",
        "unfurl",
        "url card"
      ],
      "description": "A rich link preview like chat apps show for shared URLs, with a 1.91:1 image, domain, title and summary.",
      "url": "https://copy-css.com/snippets/link-preview-card",
      "markdown": "https://copy-css.com/snippets/link-preview-card.md",
      "html": "<a class=\"link-preview\" href=\"#\">\n  <span class=\"link-preview-img\" aria-hidden=\"true\"></span>\n  <span class=\"link-preview-body\">\n    <small>example.com</small>\n    <strong>Ship faster with design tokens</strong>\n    <span>A short guide to naming, theming and syncing tokens across code and design.</span>\n  </span>\n</a>",
      "css": ".link-preview {\n  display: block;\n  width: 260px;\n  overflow: hidden;\n  border: 1px solid #e4e4e7;\n  border-radius: 14px;\n  background: #fff;\n  color: #18181b;\n  font-family: system-ui, sans-serif;\n  text-decoration: none;\n  transition: border-color 0.2s ease;\n}\n\n.link-preview:hover {\n  border-color: #a1a1aa;\n}\n\n.link-preview:focus-visible {\n  outline: 3px solid #7c3aed;\n  outline-offset: 2px;\n}\n\n.link-preview-img {\n  display: block;\n  aspect-ratio: 1.91 / 1;\n  background: linear-gradient(135deg, #c4b5fd, #7c3aed 60%, #4c1d95);\n  /* Replace with: background: url(your-og-image.jpg) center / cover; */\n}\n\n.link-preview-body {\n  display: grid;\n  gap: 3px;\n  padding: 10px 14px 12px;\n}\n\n.link-preview small {\n  color: #71717a;\n  font-size: 12px;\n}\n\n.link-preview strong {\n  font-size: 14px;\n  line-height: 1.3;\n}\n\n.link-preview-body span {\n  display: -webkit-box;\n  overflow: hidden;\n  color: #52525b;\n  font-size: 13px;\n  line-height: 1.4;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp: 1;\n}",
      "features": [
        "transitions",
        "linear gradients",
        "CSS Grid",
        "aspect-ratio",
        "line clamping",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "recipe-card",
      "name": "Recipe Card",
      "category": "cards",
      "tags": [
        "recipe",
        "food",
        "cooking",
        "meta icons",
        "blog",
        "plate"
      ],
      "description": "A food blog recipe card with a round dish image breaking out of the top and time, servings and level.",
      "url": "https://copy-css.com/snippets/recipe-card",
      "markdown": "https://copy-css.com/snippets/recipe-card.md",
      "html": "<article class=\"recipe-card\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='19' fill='%23fafaf9'/%3E%3Ccircle cx='20' cy='20' r='13' fill='%23fcd34d'/%3E%3Cpath d='M11 18c4-3 6 3 10 0s6 3 9 0M11 23c4-3 6 3 10 0s6 3 9 0' fill='none' stroke='%23f59e0b' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='15' r='1.5' fill='%2365a30d'/%3E%3Ccircle cx='25' cy='26' r='1.5' fill='%2365a30d'/%3E%3Ccircle cx='23' cy='14' r='1.2' fill='%23dc2626'/%3E%3C/svg%3E\" alt=\"Lemon herb pasta on a white plate\" width=\"96\" height=\"96\">\n  <h3><a href=\"#\">Lemon Herb Pasta</a></h3>\n  <ul class=\"recipe-card-meta\">\n    <li><b>25</b> min</li>\n    <li><b>2</b> servings</li>\n    <li><b>Easy</b> level</li>\n  </ul>\n</article>",
      "css": ".recipe-card {\n  width: 220px;\n  margin-top: 48px;\n  padding: 0 16px 16px;\n  border-radius: 20px;\n  background: #fff;\n  box-shadow: 0 12px 28px -14px rgba(146, 64, 14, 0.4);\n  color: #451a03;\n  font-family: system-ui, sans-serif;\n  text-align: center;\n}\n\n.recipe-card img {\n  display: block;\n  width: 96px;\n  height: 96px;\n  margin: -48px auto 0;\n  border-radius: 50%;\n  box-shadow: 0 10px 20px -6px rgba(0, 0, 0, 0.3);\n  transition: transform 0.6s ease;\n}\n\n.recipe-card:hover img {\n  transform: rotate(40deg);\n}\n\n.recipe-card h3 {\n  margin: 10px 0 12px;\n  font-size: 16px;\n}\n\n.recipe-card h3 a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.recipe-card h3 a:focus-visible {\n  outline: 2px solid #d97706;\n  outline-offset: 2px;\n}\n\n.recipe-card-meta {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  margin: 0;\n  padding: 10px 0 0;\n  border-top: 1px solid #fef3c7;\n  list-style: none;\n  color: #92400e;\n  font-size: 11px;\n}\n\n.recipe-card-meta b {\n  display: block;\n  color: #451a03;\n  font-size: 14px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .recipe-card img {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "glass-profile-card",
      "name": "Glass Profile Card",
      "category": "cards",
      "tags": [
        "glassmorphism",
        "profile",
        "frosted",
        "backdrop-filter",
        "avatar",
        "blur"
      ],
      "description": "A frosted glass profile card with a glowing avatar ring and translucent buttons over a colorful backdrop.",
      "url": "https://copy-css.com/snippets/glass-profile-card",
      "markdown": "https://copy-css.com/snippets/glass-profile-card.md",
      "html": "<article class=\"glass-profile\">\n  <span class=\"glass-profile-avatar\" aria-hidden=\"true\">SK</span>\n  <h3>Sora Kato</h3>\n  <p>Motion designer</p>\n  <div class=\"glass-profile-actions\">\n    <a href=\"#\">Follow</a>\n    <a href=\"#\">Message</a>\n  </div>\n</article>",
      "css": ".glass-profile {\n  width: 210px;\n  padding: 20px;\n  border: 1px solid rgba(255, 255, 255, 0.4);\n  border-radius: 22px;\n  background: rgba(255, 255, 255, 0.18);\n  -webkit-backdrop-filter: blur(16px) saturate(140%);\n  backdrop-filter: blur(16px) saturate(140%);\n  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 30px rgba(15, 23, 42, 0.2);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n  text-align: center;\n}\n\n.glass-profile-avatar {\n  display: grid;\n  place-items: center;\n  width: 60px;\n  height: 60px;\n  margin: 0 auto 10px;\n  border: 2px solid rgba(255, 255, 255, 0.8);\n  border-radius: 50%;\n  background: rgba(255, 255, 255, 0.25);\n  box-shadow: 0 0 24px rgba(255, 255, 255, 0.45);\n  font-size: 18px;\n  font-weight: 700;\n}\n\n.glass-profile h3 {\n  margin: 0;\n  font-size: 17px;\n}\n\n.glass-profile p {\n  margin: 2px 0 14px;\n  font-size: 13px;\n  opacity: 0.85;\n}\n\n.glass-profile-actions {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 8px;\n}\n\n.glass-profile-actions a {\n  padding: 8px 4px;\n  border: 1px solid rgba(255, 255, 255, 0.45);\n  border-radius: 10px;\n  background: rgba(255, 255, 255, 0.15);\n  color: #fff;\n  font-size: 13px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: background 0.2s ease;\n}\n\n.glass-profile-actions a:first-child {\n  background: #fff;\n  color: #4338ca;\n}\n\n.glass-profile-actions a:hover {\n  background: rgba(255, 255, 255, 0.3);\n}\n\n.glass-profile-actions a:first-child:hover {\n  background: #e0e7ff;\n}\n\n.glass-profile-actions a:focus-visible {\n  outline: 2px solid #fff;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "backdrop filters",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "glass-weather-card",
      "name": "Glass Weather Card",
      "category": "cards",
      "tags": [
        "weather",
        "widget",
        "glassmorphism",
        "forecast",
        "frosted",
        "dashboard"
      ],
      "description": "A frosted glass weather widget with a CSS-drawn sun and cloud, the current temperature and a short forecast.",
      "url": "https://copy-css.com/snippets/glass-weather-card",
      "markdown": "https://copy-css.com/snippets/glass-weather-card.md",
      "html": "<article class=\"weather-glass\">\n  <div class=\"weather-glass-now\">\n    <div>\n      <h3>Lisbon</h3>\n      <p>Partly cloudy</p>\n    </div>\n    <span class=\"weather-glass-icon\" aria-hidden=\"true\"></span>\n  </div>\n  <p class=\"weather-glass-temp\">21°</p>\n  <ul>\n    <li>Mon <b>22°</b></li>\n    <li>Tue <b>19°</b></li>\n    <li>Wed <b>24°</b></li>\n  </ul>\n</article>",
      "css": ".weather-glass {\n  width: 220px;\n  padding: 16px 18px;\n  border: 1px solid rgba(255, 255, 255, 0.35);\n  border-radius: 24px;\n  background: linear-gradient(160deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));\n  -webkit-backdrop-filter: blur(18px);\n  backdrop-filter: blur(18px);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.weather-glass-now {\n  display: flex;\n  justify-content: space-between;\n  align-items: flex-start;\n}\n\n.weather-glass h3 {\n  margin: 0;\n  font-size: 16px;\n}\n\n.weather-glass-now p {\n  margin: 2px 0 0;\n  font-size: 12px;\n  opacity: 0.85;\n}\n\n.weather-glass-icon {\n  position: relative;\n  width: 34px;\n  height: 34px;\n  margin: 4px 14px 0 0;\n  border-radius: 50%;\n  background: radial-gradient(circle at 40% 40%, #fef08a, #f59e0b);\n  box-shadow: 0 0 20px rgba(253, 224, 71, 0.7);\n}\n\n.weather-glass-icon::after {\n  content: \"\";\n  position: absolute;\n  top: 18px;\n  left: 12px;\n  width: 34px;\n  height: 14px;\n  border-radius: 999px;\n  background: #fff;\n  box-shadow: 8px -7px 0 2px #fff;\n}\n\n.weather-glass-temp {\n  margin: 2px 0 10px;\n  font-size: 48px;\n  font-weight: 300;\n  line-height: 1;\n}\n\n.weather-glass ul {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 6px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n.weather-glass li {\n  display: grid;\n  gap: 2px;\n  padding: 6px;\n  border-radius: 10px;\n  background: rgba(255, 255, 255, 0.15);\n  font-size: 11px;\n  text-align: center;\n}\n\n.weather-glass b {\n  font-size: 14px;\n}",
      "features": [
        "linear gradients",
        "radial gradients",
        "box shadows",
        "backdrop filters",
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "glass-login-card",
      "name": "Glass Login Card",
      "category": "cards",
      "tags": [
        "glassmorphism",
        "login",
        "sign in",
        "form",
        "frosted",
        "auth"
      ],
      "description": "A glassmorphism sign-in form with frosted fields, labeled inputs and a solid submit button.",
      "url": "https://copy-css.com/snippets/glass-login-card",
      "markdown": "https://copy-css.com/snippets/glass-login-card.md",
      "html": "<form class=\"glass-login\">\n  <h3>Welcome back</h3>\n  <label>\n    Email\n    <input type=\"email\" name=\"email\" autocomplete=\"email\" placeholder=\"you@example.com\" required>\n  </label>\n  <label>\n    Password\n    <input type=\"password\" name=\"password\" autocomplete=\"current-password\" placeholder=\"••••••••\" required>\n  </label>\n  <button type=\"submit\">Sign in</button>\n</form>",
      "css": ".glass-login {\n  display: grid;\n  gap: 10px;\n  width: 240px;\n  padding: 20px;\n  border: 1px solid rgba(255, 255, 255, 0.3);\n  border-radius: 20px;\n  background: rgba(255, 255, 255, 0.12);\n  -webkit-backdrop-filter: blur(20px);\n  backdrop-filter: blur(20px);\n  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.glass-login h3 {\n  margin: 0 0 2px;\n  font-size: 18px;\n}\n\n.glass-login label {\n  display: grid;\n  gap: 4px;\n  font-size: 12px;\n  font-weight: 600;\n}\n\n.glass-login input {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 9px 12px;\n  border: 1px solid rgba(255, 255, 255, 0.35);\n  border-radius: 10px;\n  background: rgba(255, 255, 255, 0.12);\n  color: #fff;\n  font: 14px system-ui, sans-serif;\n}\n\n.glass-login input::placeholder {\n  color: rgba(255, 255, 255, 0.65);\n}\n\n.glass-login input:focus-visible {\n  border-color: #fff;\n  outline: 2px solid rgba(255, 255, 255, 0.5);\n  outline-offset: 1px;\n}\n\n.glass-login button {\n  margin-top: 4px;\n  padding: 10px;\n  border: 0;\n  border-radius: 10px;\n  background: #fff;\n  color: #4c1d95;\n  font: 700 14px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.glass-login button:hover {\n  background: #ede9fe;\n}\n\n.glass-login button:focus-visible {\n  outline: 2px solid #fff;\n  outline-offset: 3px;\n}",
      "features": [
        "box shadows",
        "backdrop filters",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "dark-glass-card",
      "name": "Dark Glass Card",
      "category": "cards",
      "tags": [
        "glassmorphism",
        "dark mode",
        "frosted",
        "gradient border",
        "mask",
        "neon"
      ],
      "description": "A smoky dark glass card with a light-catching gradient edge drawn with a masked pseudo-element.",
      "url": "https://copy-css.com/snippets/dark-glass-card",
      "markdown": "https://copy-css.com/snippets/dark-glass-card.md",
      "html": "<article class=\"glass-dark\">\n  <span class=\"glass-dark-icon\" aria-hidden=\"true\">✦</span>\n  <h3>Night mode</h3>\n  <p>Smoked glass that still lets the color glow through.</p>\n</article>",
      "css": ".glass-dark {\n  position: relative;\n  width: 220px;\n  padding: 22px;\n  border-radius: 20px;\n  background: rgba(15, 23, 42, 0.45);\n  -webkit-backdrop-filter: blur(18px);\n  backdrop-filter: blur(18px);\n  color: #e2e8f0;\n  font-family: system-ui, sans-serif;\n}\n\n.glass-dark::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  padding: 1px;\n  border-radius: inherit;\n  background: linear-gradient(140deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.35));\n  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);\n  -webkit-mask-composite: xor;\n  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);\n  pointer-events: none;\n}\n\n.glass-dark-icon {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  margin-bottom: 14px;\n  border-radius: 12px;\n  background: rgba(255, 255, 255, 0.08);\n  color: #67e8f9;\n  font-size: 20px;\n}\n\n.glass-dark h3 {\n  margin: 0 0 6px;\n  color: #fff;\n  font-size: 17px;\n}\n\n.glass-dark p {\n  margin: 0;\n  color: #94a3b8;\n  font-size: 14px;\n  line-height: 1.5;\n}",
      "features": [
        "linear gradients",
        "backdrop filters",
        "masks",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "flashcard-flip-card",
      "name": "Flashcard Flip Card",
      "category": "cards",
      "tags": [
        "flashcard",
        "flip",
        "click",
        "tap",
        "checkbox",
        "quiz",
        "study"
      ],
      "description": "A study flashcard that flips vertically on click or tap, driven by a hidden checkbox so it works on touch.",
      "url": "https://copy-css.com/snippets/flashcard-flip-card",
      "markdown": "https://copy-css.com/snippets/flashcard-flip-card.md",
      "html": "<label class=\"flashcard\">\n  <input type=\"checkbox\" aria-label=\"Flip card to show the answer\">\n  <span class=\"flashcard-inner\">\n    <span class=\"flashcard-face\">\n      <small>Question</small>\n      What does CSS stand for?\n    </span>\n    <span class=\"flashcard-face flashcard-back\">\n      <small>Answer</small>\n      Cascading Style Sheets\n    </span>\n  </span>\n</label>",
      "css": ".flashcard {\n  display: block;\n  width: 240px;\n  height: 140px;\n  font-family: system-ui, sans-serif;\n  perspective: 800px;\n  cursor: pointer;\n}\n\n.flashcard input {\n  position: absolute;\n  opacity: 0;\n}\n\n.flashcard-inner {\n  position: relative;\n  display: block;\n  height: 100%;\n  border-radius: 16px;\n  transform-style: preserve-3d;\n  transition: transform 0.6s cubic-bezier(0.3, 1.3, 0.5, 1);\n}\n\n.flashcard input:checked + .flashcard-inner {\n  transform: rotateX(180deg);\n}\n\n.flashcard input:focus-visible + .flashcard-inner {\n  outline: 3px solid #0891b2;\n  outline-offset: 4px;\n}\n\n.flashcard-face {\n  position: absolute;\n  inset: 0;\n  display: grid;\n  place-content: center;\n  gap: 6px;\n  padding: 16px;\n  border-radius: inherit;\n  background: #fff;\n  box-shadow: 0 10px 24px -10px rgba(8, 145, 178, 0.45);\n  color: #164e63;\n  font-size: 17px;\n  font-weight: 700;\n  text-align: center;\n  -webkit-backface-visibility: hidden;\n  backface-visibility: hidden;\n}\n\n.flashcard-face small {\n  color: #0891b2;\n  font-size: 11px;\n  letter-spacing: 0.1em;\n  text-transform: uppercase;\n}\n\n.flashcard-back {\n  background: #0891b2;\n  color: #fff;\n  transform: rotateX(180deg);\n}\n\n.flashcard-back small {\n  color: #cffafe;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .flashcard-inner {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "3D transforms",
        "transforms",
        "box shadows",
        "CSS Grid",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "3d-tilt-card",
      "name": "3D Tilt Card",
      "category": "cards",
      "tags": [
        "tilt",
        "3d",
        "perspective",
        "hover",
        "parallax",
        "no javascript"
      ],
      "description": "A card that tilts toward the cursor in 3D using nine invisible hover zones instead of JavaScript.",
      "url": "https://copy-css.com/snippets/3d-tilt-card",
      "markdown": "https://copy-css.com/snippets/3d-tilt-card.md",
      "html": "<div class=\"tilt\">\n  <span></span><span></span><span></span>\n  <span></span><span></span><span></span>\n  <span></span><span></span><span></span>\n  <div class=\"tilt-card\">\n    <h3>Tilt me</h3>\n    <p>Move your cursor around the card.</p>\n  </div>\n</div>",
      "css": ".tilt {\n  --tilt: 10deg;\n  position: relative;\n  display: grid;\n  grid-template: repeat(3, 1fr) / repeat(3, 1fr);\n  width: 230px;\n  height: 150px;\n  perspective: 700px;\n  font-family: system-ui, sans-serif;\n}\n\n.tilt > span {\n  position: relative;\n  z-index: 2;\n}\n\n.tilt-card {\n  position: absolute;\n  inset: 0;\n  display: grid;\n  align-content: end;\n  padding: 18px;\n  border-radius: 18px;\n  background: linear-gradient(135deg, #f472b6, #8b5cf6 55%, #3b82f6);\n  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);\n  color: #fff;\n  transition: transform 0.35s ease;\n}\n\n.tilt-card h3 {\n  margin: 0 0 4px;\n  font-size: 20px;\n}\n\n.tilt-card p {\n  margin: 0;\n  font-size: 13px;\n  opacity: 0.9;\n}\n\n.tilt > span:nth-child(1):hover ~ .tilt-card {\n  transform: rotateX(var(--tilt)) rotateY(calc(var(--tilt) * -1));\n}\n\n.tilt > span:nth-child(2):hover ~ .tilt-card {\n  transform: rotateX(var(--tilt));\n}\n\n.tilt > span:nth-child(3):hover ~ .tilt-card {\n  transform: rotateX(var(--tilt)) rotateY(var(--tilt));\n}\n\n.tilt > span:nth-child(4):hover ~ .tilt-card {\n  transform: rotateY(calc(var(--tilt) * -1));\n}\n\n.tilt > span:nth-child(5):hover ~ .tilt-card {\n  transform: scale(1.03);\n}\n\n.tilt > span:nth-child(6):hover ~ .tilt-card {\n  transform: rotateY(var(--tilt));\n}\n\n.tilt > span:nth-child(7):hover ~ .tilt-card {\n  transform: rotateX(calc(var(--tilt) * -1)) rotateY(calc(var(--tilt) * -1));\n}\n\n.tilt > span:nth-child(8):hover ~ .tilt-card {\n  transform: rotateX(calc(var(--tilt) * -1));\n}\n\n.tilt > span:nth-child(9):hover ~ .tilt-card {\n  transform: rotateX(calc(var(--tilt) * -1)) rotateY(var(--tilt));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tilt-card {\n    transition: none;\n  }\n\n  .tilt > span:hover ~ .tilt-card {\n    transform: none;\n  }\n}",
      "features": [
        "transitions",
        "3D transforms",
        "transforms",
        "linear gradients",
        "box shadows",
        "CSS Grid",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--tilt",
          "value": "10deg"
        }
      ]
    },
    {
      "id": "expanding-details-card",
      "name": "Expanding Details Card",
      "category": "cards",
      "tags": [
        "expand",
        "hover",
        "grid-template-rows",
        "reveal",
        "animate height",
        "focus-within"
      ],
      "description": "A card that smoothly grows to reveal extra text and a link on hover or focus, animating height with grid rows.",
      "url": "https://copy-css.com/snippets/expanding-details-card",
      "markdown": "https://copy-css.com/snippets/expanding-details-card.md",
      "html": "<article class=\"more-card\">\n  <h3>Edge functions</h3>\n  <p>Run code close to your users.</p>\n  <div class=\"more-card-extra\">\n    <div>\n      <p>Deploy in seconds to hundreds of locations, with no servers to manage.</p>\n      <a href=\"#\">Read the docs</a>\n    </div>\n  </div>\n</article>",
      "css": ".more-card {\n  width: 230px;\n  padding: 18px 20px;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 4px 16px -6px rgba(76, 29, 149, 0.25);\n  color: #2e1065;\n  font-family: system-ui, sans-serif;\n}\n\n.more-card h3 {\n  margin: 0;\n  font-size: 17px;\n}\n\n.more-card p {\n  margin: 4px 0 0;\n  color: #6d5c91;\n  font-size: 14px;\n  line-height: 1.5;\n}\n\n.more-card-extra {\n  display: grid;\n  grid-template-rows: 0fr;\n  transition: grid-template-rows 0.35s ease;\n}\n\n.more-card-extra > div {\n  overflow: hidden;\n}\n\n.more-card:hover .more-card-extra,\n.more-card:focus-within .more-card-extra {\n  grid-template-rows: 1fr;\n}\n\n.more-card-extra p {\n  margin-top: 10px;\n  padding-top: 10px;\n  border-top: 1px solid #ede9fe;\n}\n\n.more-card a {\n  display: inline-block;\n  margin: 8px 0 2px;\n  color: #7c3aed;\n  font-size: 14px;\n  font-weight: 700;\n}\n\n.more-card a:focus-visible {\n  outline: 2px solid #7c3aed;\n  outline-offset: 2px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .more-card-extra {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "corner-fill-card",
      "name": "Corner Fill Card",
      "category": "cards",
      "tags": [
        "hover",
        "fill",
        "circle",
        "scale",
        "link card",
        "color change"
      ],
      "description": "A link card where a small corner circle grows to flood the card with color and invert the text on hover.",
      "url": "https://copy-css.com/snippets/corner-fill-card",
      "markdown": "https://copy-css.com/snippets/corner-fill-card.md",
      "html": "<a class=\"fill-card\" href=\"#\">\n  <span class=\"fill-card-arrow\" aria-hidden=\"true\">→</span>\n  <h3>Get started</h3>\n  <p>Set up your first project in under five minutes.</p>\n</a>",
      "css": ".fill-card {\n  position: relative;\n  display: block;\n  width: 220px;\n  padding: 22px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: #fff;\n  color: #431407;\n  font-family: system-ui, sans-serif;\n  text-decoration: none;\n  isolation: isolate;\n  transition: color 0.4s ease;\n}\n\n.fill-card::before {\n  content: \"\";\n  position: absolute;\n  top: -30px;\n  right: -30px;\n  z-index: -1;\n  width: 80px;\n  height: 80px;\n  border-radius: 50%;\n  background: #ea580c;\n  transition: transform 0.5s ease;\n}\n\n.fill-card:hover,\n.fill-card:focus-visible {\n  color: #fff;\n}\n\n.fill-card:hover::before,\n.fill-card:focus-visible::before {\n  transform: scale(8);\n}\n\n.fill-card:focus-visible {\n  outline: 3px solid #9a3412;\n  outline-offset: 3px;\n}\n\n.fill-card-arrow {\n  position: absolute;\n  top: 10px;\n  right: 14px;\n  color: #fff;\n  font-size: 18px;\n  font-weight: 700;\n}\n\n.fill-card h3 {\n  margin: 0 0 6px;\n  font-size: 18px;\n}\n\n.fill-card p {\n  margin: 0;\n  font-size: 14px;\n  line-height: 1.5;\n  opacity: 0.85;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fill-card,\n  .fill-card::before {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "shine-hover-card",
      "name": "Shine Hover Card",
      "category": "cards",
      "tags": [
        "shine",
        "gloss",
        "light sweep",
        "hover",
        "premium",
        "shimmer"
      ],
      "description": "A premium dark card with a glossy light streak that sweeps across it when hovered or focused.",
      "url": "https://copy-css.com/snippets/shine-hover-card",
      "markdown": "https://copy-css.com/snippets/shine-hover-card.md",
      "html": "<a class=\"shine-card\" href=\"#\">\n  <small>Members</small>\n  <h3>Gold Pass</h3>\n  <p>Early access, free shipping and priority support.</p>\n</a>",
      "css": ".shine-card {\n  position: relative;\n  display: block;\n  width: 230px;\n  padding: 22px;\n  overflow: hidden;\n  border-radius: 18px;\n  background: linear-gradient(135deg, #1f2937, #0b0f19);\n  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);\n  color: #f8fafc;\n  font-family: system-ui, sans-serif;\n  text-decoration: none;\n}\n\n.shine-card::after {\n  content: \"\";\n  position: absolute;\n  top: 0;\n  left: -75%;\n  width: 50%;\n  height: 100%;\n  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);\n  transform: skewX(-20deg);\n  transition: left 0.7s ease;\n  pointer-events: none;\n}\n\n.shine-card:hover::after,\n.shine-card:focus-visible::after {\n  left: 130%;\n}\n\n.shine-card:focus-visible {\n  outline: 3px solid #fbbf24;\n  outline-offset: 3px;\n}\n\n.shine-card small {\n  color: #fbbf24;\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.12em;\n  text-transform: uppercase;\n}\n\n.shine-card h3 {\n  margin: 6px 0;\n  background: linear-gradient(90deg, #fde68a, #f59e0b);\n  -webkit-background-clip: text;\n  background-clip: text;\n  color: transparent;\n  font-size: 24px;\n}\n\n.shine-card p {\n  margin: 0;\n  color: #94a3b8;\n  font-size: 13px;\n  line-height: 1.5;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .shine-card::after {\n    display: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "linear gradients",
        "box shadows",
        "gradient-clipped text",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "review-card",
      "name": "Review Card",
      "category": "cards",
      "tags": [
        "review",
        "rating",
        "stars",
        "verified",
        "customer",
        "social proof"
      ],
      "description": "A customer review card with a star rating, verified-buyer badge, short title, review text and date.",
      "url": "https://copy-css.com/snippets/review-card",
      "markdown": "https://copy-css.com/snippets/review-card.md",
      "html": "<article class=\"review-card\">\n  <header>\n    <p class=\"review-card-stars\" role=\"img\" aria-label=\"5 out of 5 stars\">★★★★★</p>\n    <span class=\"review-card-verified\">Verified buyer</span>\n  </header>\n  <h3>Exactly what I needed</h3>\n  <p>Setup took two minutes and it has run without a hiccup since. Support answered within the hour.</p>\n  <footer><strong>Priya S.</strong> · Sep 2026</footer>\n</article>",
      "css": ".review-card {\n  width: 260px;\n  padding: 16px 18px;\n  border: 1px solid #e2e8f0;\n  border-radius: 14px;\n  background: #fff;\n  color: #0f172a;\n  font-family: system-ui, sans-serif;\n}\n\n.review-card header {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n}\n\n.review-card-stars {\n  margin: 0;\n  color: #f59e0b;\n  font-size: 16px;\n  letter-spacing: 2px;\n}\n\n.review-card-verified {\n  padding: 2px 8px;\n  border-radius: 999px;\n  background: #dcfce7;\n  color: #166534;\n  font-size: 11px;\n  font-weight: 600;\n}\n\n.review-card-verified::before {\n  content: \"✓ \";\n}\n\n.review-card h3 {\n  margin: 10px 0 4px;\n  font-size: 15px;\n}\n\n.review-card > p {\n  margin: 0;\n  color: #475569;\n  font-size: 13px;\n  line-height: 1.5;\n}\n\n.review-card footer {\n  margin-top: 10px;\n  color: #94a3b8;\n  font-size: 12px;\n}\n\n.review-card footer strong {\n  color: #0f172a;\n}",
      "features": [
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "social-post-card",
      "name": "Social Post Card",
      "category": "cards",
      "tags": [
        "tweet",
        "social media",
        "post",
        "embed",
        "testimonial",
        "wall of love"
      ],
      "description": "A social media post embed with avatar, name, handle, post text, timestamp and like count for testimonial walls.",
      "url": "https://copy-css.com/snippets/social-post-card",
      "markdown": "https://copy-css.com/snippets/social-post-card.md",
      "html": "<article class=\"post-embed\">\n  <header>\n    <span class=\"post-embed-avatar\" aria-hidden=\"true\">DV</span>\n    <p><strong>Dana Vu</strong><span>@danavu</span></p>\n  </header>\n  <p>Shipped our new pricing page with zero JavaScript. CSS :has() is doing all the heavy lifting.</p>\n  <footer>\n    <time datetime=\"2026-11-03T14:14\">2:14 PM · Nov 3, 2026</time>\n    <span><span aria-hidden=\"true\">♥</span> 248 likes</span>\n  </footer>\n</article>",
      "css": ".post-embed {\n  width: 270px;\n  padding: 14px 16px;\n  border: 1px solid #e0f2fe;\n  border-radius: 16px;\n  background: #fff;\n  color: #0f172a;\n  font-family: system-ui, sans-serif;\n}\n\n.post-embed header {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n}\n\n.post-embed-avatar {\n  display: grid;\n  place-items: center;\n  width: 38px;\n  height: 38px;\n  border-radius: 50%;\n  background: linear-gradient(135deg, #38bdf8, #0369a1);\n  color: #fff;\n  font-size: 13px;\n  font-weight: 700;\n}\n\n.post-embed header p {\n  display: grid;\n  margin: 0;\n  font-size: 14px;\n  line-height: 1.25;\n}\n\n.post-embed header p span {\n  color: #64748b;\n  font-size: 13px;\n}\n\n.post-embed > p {\n  margin: 10px 0;\n  font-size: 14px;\n  line-height: 1.5;\n}\n\n.post-embed footer {\n  display: flex;\n  justify-content: space-between;\n  padding-top: 8px;\n  border-top: 1px solid #f1f5f9;\n  color: #64748b;\n  font-size: 12px;\n}\n\n.post-embed footer span span {\n  color: #e11d48;\n}",
      "features": [
        "linear gradients",
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "centered-testimonial-card",
      "name": "Centered Testimonial",
      "category": "cards",
      "tags": [
        "testimonial",
        "quote",
        "avatar",
        "centered",
        "landing page",
        "customer"
      ],
      "description": "A centered testimonial with the avatar sitting on the top edge, a large quote and name with company below.",
      "url": "https://copy-css.com/snippets/centered-testimonial-card",
      "markdown": "https://copy-css.com/snippets/centered-testimonial-card.md",
      "html": "<figure class=\"tcenter\">\n  <span class=\"tcenter-avatar\" aria-hidden=\"true\">EM</span>\n  <blockquote>We replaced three internal tools with this, and nobody misses them.</blockquote>\n  <figcaption>\n    <strong>Elena Marsh</strong>\n    <span>COO, Brightpath</span>\n  </figcaption>\n</figure>",
      "css": ".tcenter {\n  width: 250px;\n  margin: 30px 0 0;\n  padding: 38px 20px 18px;\n  border-radius: 18px;\n  background: #fff;\n  box-shadow: 0 12px 30px -16px rgba(6, 78, 59, 0.4);\n  color: #064e3b;\n  font-family: system-ui, sans-serif;\n  text-align: center;\n}\n\n.tcenter-avatar {\n  display: grid;\n  place-items: center;\n  width: 56px;\n  height: 56px;\n  margin: -66px auto 12px;\n  border: 4px solid #ecfdf5;\n  border-radius: 50%;\n  background: #10b981;\n  color: #fff;\n  font-weight: 700;\n}\n\n.tcenter blockquote {\n  margin: 0;\n  font-size: 16px;\n  font-weight: 500;\n  line-height: 1.45;\n}\n\n.tcenter blockquote::before {\n  content: \"“\";\n}\n\n.tcenter blockquote::after {\n  content: \"”\";\n}\n\n.tcenter figcaption {\n  display: grid;\n  margin-top: 12px;\n  font-size: 13px;\n}\n\n.tcenter figcaption span {\n  color: #6b8f80;\n}",
      "features": [
        "box shadows",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "sparkline-stat-card",
      "name": "Sparkline Stat Card",
      "category": "cards",
      "tags": [
        "dashboard",
        "kpi",
        "sparkline",
        "chart",
        "svg",
        "analytics",
        "dark"
      ],
      "description": "A dark dashboard metric card with a big number, change badge and an inline SVG sparkline with area fill.",
      "url": "https://copy-css.com/snippets/sparkline-stat-card",
      "markdown": "https://copy-css.com/snippets/sparkline-stat-card.md",
      "html": "<article class=\"spark-stat\">\n  <p>Revenue</p>\n  <strong>$84.2k</strong>\n  <span class=\"spark-stat-delta\">+8.1%</span>\n  <svg viewBox=\"0 0 120 40\" preserveAspectRatio=\"none\" aria-hidden=\"true\">\n    <path class=\"spark-stat-area\" d=\"M0 34 15 28 30 30 45 20 60 24 75 14 90 16 105 8 120 10V40H0Z\"/>\n    <path class=\"spark-stat-line\" d=\"M0 34 15 28 30 30 45 20 60 24 75 14 90 16 105 8 120 10\"/>\n  </svg>\n</article>",
      "css": ".spark-stat {\n  --spark: #34d399;\n  display: grid;\n  grid-template-columns: 1fr auto;\n  align-items: center;\n  width: 220px;\n  padding: 16px 18px 0;\n  overflow: hidden;\n  border: 1px solid #1e293b;\n  border-radius: 16px;\n  background: #111827;\n  color: #f8fafc;\n  font-family: system-ui, sans-serif;\n}\n\n.spark-stat p {\n  grid-column: 1 / -1;\n  margin: 0;\n  color: #94a3b8;\n  font-size: 13px;\n}\n\n.spark-stat strong {\n  font-size: 28px;\n  letter-spacing: -0.02em;\n}\n\n.spark-stat-delta {\n  padding: 2px 8px;\n  border-radius: 999px;\n  background: rgba(52, 211, 153, 0.15);\n  color: var(--spark);\n  font-size: 12px;\n  font-weight: 700;\n}\n\n.spark-stat svg {\n  grid-column: 1 / -1;\n  width: calc(100% + 36px);\n  height: 48px;\n  margin: 8px -18px 0;\n}\n\n.spark-stat-area {\n  fill: var(--spark);\n  opacity: 0.15;\n}\n\n.spark-stat-line {\n  fill: none;\n  stroke: var(--spark);\n  stroke-width: 2;\n  stroke-linejoin: round;\n  vector-effect: non-scaling-stroke;\n}",
      "features": [
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--spark",
          "value": "#34d399"
        }
      ]
    },
    {
      "id": "goal-progress-card",
      "name": "Goal Progress Card",
      "category": "cards",
      "tags": [
        "progress ring",
        "goal",
        "conic-gradient",
        "dashboard",
        "kpi",
        "percentage"
      ],
      "description": "A metric card with a conic-gradient progress ring, set by one custom property, next to the goal amount.",
      "url": "https://copy-css.com/snippets/goal-progress-card",
      "markdown": "https://copy-css.com/snippets/goal-progress-card.md",
      "html": "<article class=\"goal-card\">\n  <div class=\"goal-card-ring\" style=\"--p: 72\" role=\"img\" aria-label=\"72% of goal reached\">\n    <span>72%</span>\n  </div>\n  <div>\n    <p>Monthly goal</p>\n    <strong>$7,200 <small>/ $10,000</small></strong>\n    <span>18 days left</span>\n  </div>\n</article>",
      "css": ".goal-card {\n  --ring: #db2777;\n  display: flex;\n  align-items: center;\n  gap: 16px;\n  width: 270px;\n  padding: 16px 18px;\n  border-radius: 18px;\n  background: #fff;\n  box-shadow: 0 8px 24px -12px rgba(131, 24, 67, 0.35);\n  color: #500724;\n  font-family: system-ui, sans-serif;\n}\n\n.goal-card-ring {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 72px;\n  height: 72px;\n  border-radius: 50%;\n  background: conic-gradient(var(--ring) calc(var(--p) * 1%), #fce7f3 0);\n}\n\n.goal-card-ring span {\n  display: grid;\n  place-items: center;\n  width: 56px;\n  height: 56px;\n  border-radius: 50%;\n  background: #fff;\n  font-size: 15px;\n  font-weight: 800;\n}\n\n.goal-card p {\n  margin: 0;\n  color: #9d4b73;\n  font-size: 12px;\n}\n\n.goal-card strong {\n  display: block;\n  margin: 2px 0;\n  font-size: 20px;\n}\n\n.goal-card small {\n  color: #be8aa5;\n  font-size: 12px;\n  font-weight: 500;\n}\n\n.goal-card-ring + div > span {\n  color: var(--ring);\n  font-size: 12px;\n  font-weight: 600;\n}",
      "features": [
        "conic gradients",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--ring",
          "value": "#db2777"
        }
      ]
    },
    {
      "id": "floating-label-input",
      "name": "Floating Label Input",
      "category": "forms",
      "tags": [
        "input",
        "label",
        "form",
        "material",
        "focus"
      ],
      "description": "A text input whose label floats up when focused or filled. No JavaScript.",
      "url": "https://copy-css.com/snippets/floating-label-input",
      "markdown": "https://copy-css.com/snippets/floating-label-input.md",
      "html": "<label class=\"field-float\">\n  <input type=\"email\" placeholder=\" \">\n  <span>Email address</span>\n</label>",
      "css": ".field-float {\n  position: relative;\n  display: block;\n  width: 240px;\n  font-family: system-ui, sans-serif;\n}\n\n.field-float input {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 22px 14px 8px;\n  border: 1.5px solid #d1d5db;\n  border-radius: 10px;\n  background: #fff;\n  font-size: 16px;\n  outline: none;\n  transition: border-color 0.2s ease;\n}\n\n.field-float span {\n  position: absolute;\n  top: 50%;\n  left: 15px;\n  color: #6b7280;\n  font-size: 16px;\n  pointer-events: none;\n  transform: translateY(-50%);\n  transition: 0.2s ease;\n}\n\n.field-float input:focus {\n  border-color: #6366f1;\n}\n\n.field-float input:focus + span,\n.field-float input:not(:placeholder-shown) + span {\n  top: 15px;\n  color: #6366f1;\n  font-size: 12px;\n}",
      "features": [
        "transitions",
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "toggle-switch",
      "name": "Toggle Switch",
      "category": "forms",
      "tags": [
        "switch",
        "toggle",
        "checkbox",
        "mobile"
      ],
      "description": "An accessible mobile-style toggle switch built on a real checkbox.",
      "url": "https://copy-css.com/snippets/toggle-switch",
      "markdown": "https://copy-css.com/snippets/toggle-switch.md",
      "html": "<label class=\"switch\">\n  <input type=\"checkbox\" checked aria-label=\"Notifications\">\n  <span class=\"slider\"></span>\n</label>",
      "css": ".switch {\n  position: relative;\n  display: inline-block;\n  width: 52px;\n  height: 30px;\n}\n\n.switch input {\n  width: 0;\n  height: 0;\n  opacity: 0;\n}\n\n.switch .slider {\n  position: absolute;\n  inset: 0;\n  border-radius: 999px;\n  background: #d1d5db;\n  cursor: pointer;\n  transition: background 0.25s ease;\n}\n\n.switch .slider::before {\n  content: \"\";\n  position: absolute;\n  top: 3px;\n  left: 3px;\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);\n  transition: transform 0.25s ease;\n}\n\n.switch input:checked + .slider {\n  background: #22c55e;\n}\n\n.switch input:checked + .slider::before {\n  transform: translateX(22px);\n}\n\n.switch input:focus-visible + .slider {\n  outline: 2px solid #22c55e;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "custom-checkbox",
      "name": "Custom Checkbox",
      "category": "forms",
      "tags": [
        "checkbox",
        "check",
        "form",
        "appearance"
      ],
      "description": "A styled checkbox with a crisp checkmark, using appearance: none.",
      "url": "https://copy-css.com/snippets/custom-checkbox",
      "markdown": "https://copy-css.com/snippets/custom-checkbox.md",
      "html": "<label class=\"checkbox\">\n  <input type=\"checkbox\" checked>\n  Remember me\n</label>",
      "css": ".checkbox {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  font: 16px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.checkbox input {\n  display: grid;\n  place-content: center;\n  width: 22px;\n  height: 22px;\n  margin: 0;\n  border: 2px solid #9ca3af;\n  border-radius: 6px;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n  transition: background 0.2s ease, border-color 0.2s ease;\n}\n\n.checkbox input::before {\n  content: \"\";\n  width: 12px;\n  height: 12px;\n  background: #fff;\n  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);\n  transform: scale(0);\n  transition: transform 0.15s ease;\n}\n\n.checkbox input:checked {\n  border-color: #6366f1;\n  background: #6366f1;\n}\n\n.checkbox input:checked::before {\n  transform: scale(1);\n}",
      "features": [
        "transitions",
        "transforms",
        "clip paths",
        "CSS Grid",
        "Flexbox",
        "the :checked state (no JavaScript)"
      ],
      "customProperties": []
    },
    {
      "id": "range-slider",
      "name": "Range Slider",
      "category": "forms",
      "tags": [
        "range",
        "slider",
        "input",
        "gradient"
      ],
      "description": "A custom range slider with a gradient track and a ring-style thumb.",
      "url": "https://copy-css.com/snippets/range-slider",
      "markdown": "https://copy-css.com/snippets/range-slider.md",
      "html": "<input class=\"range\" type=\"range\" min=\"0\" max=\"100\" value=\"60\" aria-label=\"Volume\">",
      "css": ".range {\n  width: 220px;\n  height: 6px;\n  border-radius: 999px;\n  background: linear-gradient(90deg, #6366f1, #ec4899);\n  outline: none;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.range::-webkit-slider-thumb {\n  width: 22px;\n  height: 22px;\n  border: 4px solid #6366f1;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.range::-moz-range-thumb {\n  width: 14px;\n  height: 14px;\n  border: 4px solid #6366f1;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n}\n\n/* Keyboard focus: a ring around the thumb (kept as two rules, browsers drop mixed selector lists) */\n.range:focus-visible::-webkit-slider-thumb {\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35);\n}\n\n.range:focus-visible::-moz-range-thumb {\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.35);\n}",
      "features": [
        "linear gradients",
        "box shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "search-input",
      "name": "Search Input",
      "category": "forms",
      "tags": [
        "search",
        "input",
        "icon",
        "focus ring",
        "pill"
      ],
      "description": "A rounded search field with a built-in icon and a soft focus ring.",
      "url": "https://copy-css.com/snippets/search-input",
      "markdown": "https://copy-css.com/snippets/search-input.md",
      "html": "<input class=\"search-input\" type=\"search\" placeholder=\"Search…\" aria-label=\"Search\">",
      "css": ".search-input {\n  box-sizing: border-box;\n  width: 220px;\n  padding: 12px 16px 12px 42px;\n  border: 1.5px solid #e5e7eb;\n  border-radius: 999px;\n  background: #fff url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E\") no-repeat 15px center / 18px;\n  color: #111;\n  font: 15px system-ui, sans-serif;\n  outline: none;\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n}\n\n.search-input:focus {\n  border-color: #6366f1;\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);\n}",
      "features": [
        "transitions",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "segmented-control",
      "name": "Segmented Control",
      "category": "forms",
      "tags": [
        "segmented",
        "radio",
        "switch",
        "toggle",
        "tabs",
        "billing"
      ],
      "description": "A mobile-style segmented switch built on accessible radio buttons.",
      "url": "https://copy-css.com/snippets/segmented-control",
      "markdown": "https://copy-css.com/snippets/segmented-control.md",
      "html": "<div class=\"segmented\">\n  <label><input type=\"radio\" name=\"billing\" checked><span>Monthly</span></label>\n  <label><input type=\"radio\" name=\"billing\"><span>Yearly</span></label>\n</div>",
      "css": ".segmented {\n  display: inline-flex;\n  padding: 4px;\n  border-radius: 12px;\n  background: #f1f5f9;\n  font: 600 14px system-ui, sans-serif;\n}\n\n.segmented input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.segmented span {\n  display: block;\n  padding: 9px 18px;\n  border-radius: 9px;\n  color: #64748b;\n  cursor: pointer;\n  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;\n}\n\n.segmented input:checked + span {\n  background: #fff;\n  color: #0f172a;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);\n}\n\n.segmented input:focus-visible + span {\n  outline: 2px solid #6366f1;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "custom-select",
      "name": "Custom Select",
      "category": "forms",
      "tags": [
        "select",
        "dropdown",
        "chevron",
        "appearance",
        "form"
      ],
      "description": "A native select restyled with a custom chevron. Still fully accessible.",
      "url": "https://copy-css.com/snippets/custom-select",
      "markdown": "https://copy-css.com/snippets/custom-select.md",
      "html": "<select class=\"select\" aria-label=\"Framework\">\n  <option>Vanilla CSS</option>\n  <option>PostCSS</option>\n  <option>Sass</option>\n</select>",
      "css": ".select {\n  width: 220px;\n  padding: 12px 40px 12px 14px;\n  border: 1.5px solid #d1d5db;\n  border-radius: 10px;\n  background: #fff url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\") no-repeat right 14px center / 16px;\n  color: #111;\n  font: 15px system-ui, sans-serif;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.select:focus {\n  border-color: #6366f1;\n  outline: none;\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);\n}",
      "features": [
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "otp-input",
      "name": "OTP Code Input",
      "category": "forms",
      "tags": [
        "otp",
        "code",
        "verification",
        "pin",
        "2fa",
        "input"
      ],
      "description": "Boxed one-time-code inputs for verification and two-factor screens.",
      "url": "https://copy-css.com/snippets/otp-input",
      "markdown": "https://copy-css.com/snippets/otp-input.md",
      "html": "<div class=\"otp\">\n  <input type=\"text\" inputmode=\"numeric\" maxlength=\"1\" value=\"4\" aria-label=\"Digit 1\">\n  <input type=\"text\" inputmode=\"numeric\" maxlength=\"1\" value=\"2\" aria-label=\"Digit 2\">\n  <input type=\"text\" inputmode=\"numeric\" maxlength=\"1\" aria-label=\"Digit 3\">\n  <input type=\"text\" inputmode=\"numeric\" maxlength=\"1\" aria-label=\"Digit 4\">\n</div>",
      "css": ".otp {\n  display: flex;\n  gap: 10px;\n}\n\n.otp input {\n  box-sizing: border-box;\n  width: 46px;\n  height: 56px;\n  border: 1.5px solid #d1d5db;\n  border-radius: 12px;\n  background: #fff;\n  color: #111;\n  caret-color: #6366f1;\n  font: 700 22px system-ui, sans-serif;\n  text-align: center;\n  outline: none;\n  transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n\n.otp input:focus {\n  border-color: #6366f1;\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);\n}",
      "features": [
        "transitions",
        "box shadows",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "star-rating",
      "name": "Star Rating",
      "category": "forms",
      "tags": [
        "rating",
        "stars",
        "review",
        "radio",
        "has"
      ],
      "description": "A clickable five-star rating built from radio buttons, with hover preview.",
      "url": "https://copy-css.com/snippets/star-rating",
      "markdown": "https://copy-css.com/snippets/star-rating.md",
      "html": "<div class=\"rating\">\n  <label><input type=\"radio\" name=\"rating\" value=\"5\" aria-label=\"5 stars\">★</label>\n  <label><input type=\"radio\" name=\"rating\" value=\"4\" aria-label=\"4 stars\" checked>★</label>\n  <label><input type=\"radio\" name=\"rating\" value=\"3\" aria-label=\"3 stars\">★</label>\n  <label><input type=\"radio\" name=\"rating\" value=\"2\" aria-label=\"2 stars\">★</label>\n  <label><input type=\"radio\" name=\"rating\" value=\"1\" aria-label=\"1 star\">★</label>\n</div>",
      "css": "/* Stars are listed 5 → 1 and displayed reversed */\n.rating {\n  display: inline-flex;\n  flex-direction: row-reverse;\n  gap: 4px;\n  font-size: 34px;\n  line-height: 1;\n}\n\n.rating input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.rating label {\n  color: #d1d5db;\n  cursor: pointer;\n  transition: color 0.15s ease, transform 0.15s ease;\n}\n\n.rating label:hover,\n.rating label:hover ~ label,\n.rating label:has(input:checked),\n.rating label:has(input:checked) ~ label {\n  color: #f59e0b;\n}\n\n.rating label:hover {\n  transform: scale(1.15);\n}",
      "features": [
        "transitions",
        "transforms",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)"
      ],
      "customProperties": []
    },
    {
      "id": "radio-cards",
      "name": "Radio Cards",
      "category": "forms",
      "tags": [
        "radio",
        "cards",
        "choice",
        "has",
        "selection"
      ],
      "description": "Large, clickable option cards built on real radio buttons, highlighted with :has().",
      "url": "https://copy-css.com/snippets/radio-cards",
      "markdown": "https://copy-css.com/snippets/radio-cards.md",
      "html": "<div class=\"radio-cards\">\n  <label><input type=\"radio\" name=\"plan\" checked><strong>Monthly</strong><span>$9 / month</span></label>\n  <label><input type=\"radio\" name=\"plan\"><strong>Yearly</strong><span>$90 / year</span></label>\n</div>",
      "css": ".radio-cards {\n  display: flex;\n  gap: 10px;\n  font-family: system-ui, sans-serif;\n}\n\n.radio-cards label {\n  position: relative;\n  display: grid;\n  flex: 1 1 0;\n  gap: 2px;\n  min-width: 0;\n  padding: 14px 16px;\n  border: 2px solid #e2e8f0;\n  border-radius: 12px;\n  background: #fff;\n  cursor: pointer;\n  transition: border-color 0.15s ease, background 0.15s ease;\n}\n\n/* Keep the radio accessible but invisible */\n.radio-cards input {\n  position: absolute;\n  opacity: 0;\n}\n\n.radio-cards strong {\n  color: #0f172a;\n  font-size: 15px;\n}\n\n.radio-cards span {\n  color: #64748b;\n  font-size: 13px;\n}\n\n.radio-cards label:has(:checked) {\n  border-color: #0ea5e9;\n  background: #f0f9ff;\n}\n\n.radio-cards label:has(:focus-visible) {\n  outline: 2px solid #0ea5e9;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "file-drop-zone",
      "name": "File Drop Zone",
      "category": "forms",
      "tags": [
        "file",
        "upload",
        "dropzone",
        "input",
        "dashed"
      ],
      "description": "A dashed upload area that wraps a real file input, so click and drop both work.",
      "url": "https://copy-css.com/snippets/file-drop-zone",
      "markdown": "https://copy-css.com/snippets/file-drop-zone.md",
      "html": "<label class=\"dropzone\">\n  <input type=\"file\" multiple>\n  <svg viewBox=\"0 0 24 24\" width=\"28\" height=\"28\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 16V4m0 0-4 4m4-4 4 4\"/><path d=\"M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3\"/></svg>\n  <span><b>Click to upload</b> or drag files here</span>\n</label>",
      "css": ".dropzone {\n  position: relative;\n  display: grid;\n  justify-items: center;\n  gap: 8px;\n  width: 260px;\n  padding: 26px 16px;\n  border: 2px dashed #cbd5e1;\n  border-radius: 14px;\n  background: #f8fafc;\n  color: #64748b;\n  font: 14px/1.4 system-ui, sans-serif;\n  text-align: center;\n  cursor: pointer;\n  transition: border-color 0.15s ease, background 0.15s ease;\n}\n\n/* The input covers the whole zone so files can be dropped anywhere on it */\n.dropzone input {\n  position: absolute;\n  inset: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n.dropzone b {\n  color: #7c3aed;\n}\n\n.dropzone:hover,\n.dropzone:has(:focus-visible) {\n  border-color: #a78bfa;\n  background: #f5f3ff;\n  color: #6d28d9;\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "the :has() selector",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "validated-input",
      "name": "Validated Input",
      "category": "forms",
      "tags": [
        "validation",
        "user-invalid",
        "error",
        "email",
        "input"
      ],
      "description": "Shows a red error state only after the user has typed something invalid, with no JavaScript.",
      "url": "https://copy-css.com/snippets/validated-input",
      "markdown": "https://copy-css.com/snippets/validated-input.md",
      "html": "<label class=\"field-validate\">\n  <span>Email</span>\n  <input type=\"email\" required placeholder=\"you@site.dev\" value=\"not-an-email\">\n  <small>Please enter a valid email address.</small>\n</label>",
      "css": ".field-validate {\n  display: grid;\n  gap: 6px;\n  width: 240px;\n  font: 14px/1.3 system-ui, sans-serif;\n  color: #27272a;\n}\n\n.field-validate span {\n  font-weight: 600;\n}\n\n.field-validate input {\n  padding: 10px 12px;\n  border: 1.5px solid #d4d4d8;\n  border-radius: 10px;\n  background: #fff;\n  font: inherit;\n  outline: none;\n  transition: border-color 0.15s ease, box-shadow 0.15s ease;\n}\n\n.field-validate input:focus {\n  border-color: #6366f1;\n  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);\n}\n\n.field-validate small {\n  display: none;\n  color: #dc2626;\n}\n\n/* Invalid, but only once the field has text in it */\n.field-validate input:invalid:not(:placeholder-shown) {\n  border-color: #dc2626;\n  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);\n}\n\n.field-validate input:invalid:not(:placeholder-shown) + small {\n  display: block;\n}",
      "features": [
        "transitions",
        "box shadows",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "checkbox-chips",
      "name": "Checkbox Chips",
      "category": "forms",
      "tags": [
        "chips",
        "tags",
        "filter",
        "checkbox",
        "multi-select"
      ],
      "description": "Toggleable filter chips made from checkboxes, with a check icon when selected.",
      "url": "https://copy-css.com/snippets/checkbox-chips",
      "markdown": "https://copy-css.com/snippets/checkbox-chips.md",
      "html": "<fieldset class=\"chips\">\n  <legend>Topics</legend>\n  <label><input type=\"checkbox\" checked>Design</label>\n  <label><input type=\"checkbox\">Code</label>\n  <label><input type=\"checkbox\" checked>Motion</label>\n  <label><input type=\"checkbox\">Audio</label>\n</fieldset>",
      "css": ".chips {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 8px;\n  max-width: 280px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  font: 500 14px/1 system-ui, sans-serif;\n}\n\n.chips legend {\n  width: 100%;\n  margin-bottom: 10px;\n  color: #3f3f46;\n  font-weight: 700;\n}\n\n.chips label {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 8px 14px;\n  border: 1.5px solid #e4e4e7;\n  border-radius: 999px;\n  color: #3f3f46;\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n\n.chips input {\n  flex: none;\n  color: inherit;\n  width: 0;\n  height: 14px;\n  margin: 0 -6px 0 0; /* hides the gap while unchecked */\n  border: 0;\n  background: currentColor;\n  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\") center / contain no-repeat;\n  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E\") center / contain no-repeat;\n  appearance: none;\n  transition: width 0.15s ease, margin 0.15s ease;\n}\n\n.chips label:has(:checked) {\n  border-color: #18181b;\n  background: #18181b;\n  color: #fff;\n}\n\n.chips input:checked {\n  width: 14px;\n  margin-right: 0;\n}\n\n.chips label:has(:focus-visible) {\n  outline: 2px solid #18181b;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "masks",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "newsletter-input",
      "name": "Newsletter Signup",
      "category": "forms",
      "tags": [
        "newsletter",
        "subscribe",
        "email",
        "input",
        "button",
        "inline"
      ],
      "description": "An email field with the subscribe button tucked inside, plus a focus ring around the whole thing.",
      "url": "https://copy-css.com/snippets/newsletter-input",
      "markdown": "https://copy-css.com/snippets/newsletter-input.md",
      "html": "<form class=\"subscribe\">\n  <input type=\"email\" placeholder=\"you@example.com\" aria-label=\"Email address\" required>\n  <button type=\"submit\">Subscribe</button>\n</form>",
      "css": ".subscribe {\n  display: flex;\n  width: 100%;\n  max-width: 340px;\n  padding: 5px;\n  border: 1px solid #e4e4e7;\n  border-radius: 999px;\n  background: #fff;\n  box-shadow: 0 6px 20px -12px rgba(0, 0, 0, 0.25);\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n}\n\n.subscribe:focus-within {\n  border-color: #6366f1;\n  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);\n}\n\n.subscribe input {\n  flex: 1;\n  min-width: 0;\n  padding: 0 14px;\n  border: 0;\n  outline: 0;\n  background: transparent;\n  color: #18181b;\n  font: 15px system-ui, sans-serif;\n}\n\n.subscribe button {\n  padding: 11px 18px;\n  border: 0;\n  border-radius: 999px;\n  background: #6366f1;\n  color: #fff;\n  font: 600 14px system-ui, sans-serif;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.subscribe button:hover {\n  background: #4f46e5;\n}\n\n.subscribe button:focus-visible {\n  outline: 2px solid #312e81;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "custom-radio",
      "name": "Custom Radio Buttons",
      "category": "forms",
      "tags": [
        "radio",
        "custom",
        "appearance",
        "form",
        "options"
      ],
      "description": "Restyled native radio buttons with a dot that pops in, using appearance: none.",
      "url": "https://copy-css.com/snippets/custom-radio",
      "markdown": "https://copy-css.com/snippets/custom-radio.md",
      "html": "<div class=\"radios\">\n  <label><input type=\"radio\" name=\"plan\" checked> Starter</label>\n  <label><input type=\"radio\" name=\"plan\"> Team</label>\n  <label><input type=\"radio\" name=\"plan\"> Enterprise</label>\n</div>",
      "css": ".radios {\n  display: grid;\n  gap: 12px;\n  color: #27272a;\n  font: 500 15px system-ui, sans-serif;\n}\n\n.radios label {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  cursor: pointer;\n}\n\n.radios input {\n  display: grid;\n  place-content: center;\n  width: 20px;\n  height: 20px;\n  margin: 0;\n  border: 2px solid #a1a1aa;\n  border-radius: 50%;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n  transition: border-color 0.2s ease;\n}\n\n.radios input::before {\n  content: \"\";\n  width: 10px;\n  height: 10px;\n  border-radius: 50%;\n  background: #10b981;\n  transform: scale(0);\n  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.6, 1);\n}\n\n.radios input:hover {\n  border-color: #71717a;\n}\n\n.radios input:checked {\n  border-color: #10b981;\n}\n\n.radios input:checked::before {\n  transform: scale(1);\n}\n\n.radios input:focus-visible {\n  outline: 2px solid #10b981;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "theme-toggle",
      "name": "Day / Night Toggle",
      "category": "forms",
      "tags": [
        "dark mode",
        "theme",
        "toggle",
        "switch",
        "sun",
        "moon",
        "checkbox"
      ],
      "description": "A dark-mode switch where the sun slides across and turns into a crescent moon.",
      "url": "https://copy-css.com/snippets/theme-toggle",
      "markdown": "https://copy-css.com/snippets/theme-toggle.md",
      "html": "<label class=\"theme-toggle\">\n  <input type=\"checkbox\" aria-label=\"Dark mode\">\n  <span></span>\n</label>",
      "css": ".theme-toggle {\n  position: relative;\n  display: inline-block;\n  width: 64px;\n  height: 34px;\n}\n\n.theme-toggle input {\n  position: absolute;\n  inset: 0;\n  z-index: 1;\n  margin: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n.theme-toggle span {\n  position: absolute;\n  inset: 0;\n  border-radius: 999px;\n  background: #38bdf8;\n  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);\n  transition: background 0.4s ease;\n}\n\n/* The sun */\n.theme-toggle span::before {\n  content: \"\";\n  position: absolute;\n  top: 4px;\n  left: 4px;\n  width: 26px;\n  height: 26px;\n  border-radius: 50%;\n  background: #fde047;\n  box-shadow:\n    inset 0 0 0 0 #f8fafc,\n    0 0 10px 2px rgba(253, 224, 71, 0.6);\n  transition: transform 0.4s cubic-bezier(0.4, 1.4, 0.6, 1), background 0.4s ease, box-shadow 0.4s ease;\n}\n\n.theme-toggle input:checked + span {\n  background: #1e1b4b;\n}\n\n/* ...becomes the moon */\n.theme-toggle input:checked + span::before {\n  background: rgba(253, 224, 71, 0);\n  box-shadow:\n    inset -9px -3px 0 0 #f8fafc,\n    0 0 10px 2px rgba(248, 250, 252, 0);\n  transform: translateX(30px);\n}\n\n.theme-toggle input:focus-visible + span {\n  outline: 2px solid #6366f1;\n  outline-offset: 3px;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "input-addon",
      "name": "Input with Prefix & Suffix",
      "category": "forms",
      "tags": [
        "input group",
        "addon",
        "prefix",
        "suffix",
        "currency",
        "price"
      ],
      "description": "A text field with attached prefix and suffix labels, like a currency sign and code.",
      "url": "https://copy-css.com/snippets/input-addon",
      "markdown": "https://copy-css.com/snippets/input-addon.md",
      "html": "<label class=\"addon\">\n  <span>$</span>\n  <input type=\"text\" inputmode=\"decimal\" placeholder=\"0.00\" aria-label=\"Amount\">\n  <span>USD</span>\n</label>",
      "css": ".addon {\n  display: flex;\n  width: 100%;\n  max-width: 260px;\n  overflow: hidden;\n  border: 1px solid #d4d4d8;\n  border-radius: 10px;\n  background: #fff;\n  font: 15px system-ui, sans-serif;\n  transition: border-color 0.2s ease, box-shadow 0.2s ease;\n}\n\n.addon:focus-within {\n  border-color: #0ea5e9;\n  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);\n}\n\n.addon span {\n  display: flex;\n  align-items: center;\n  padding: 0 12px;\n  background: #f4f4f5;\n  color: #71717a;\n}\n\n.addon span:first-child {\n  border-right: 1px solid #e4e4e7;\n}\n\n.addon span:last-child {\n  border-left: 1px solid #e4e4e7;\n  font-size: 13px;\n  font-weight: 600;\n}\n\n.addon input {\n  flex: 1;\n  min-width: 0;\n  padding: 11px 12px;\n  border: 0;\n  outline: 0;\n  background: transparent;\n  color: #18181b;\n  font: inherit;\n}",
      "features": [
        "transitions",
        "box shadows",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "color-swatches",
      "name": "Color Swatch Picker",
      "category": "forms",
      "tags": [
        "swatch",
        "color",
        "variant",
        "radio",
        "product",
        "shop"
      ],
      "description": "Round color swatches for product variants, built on radio buttons with a ring around the chosen one.",
      "url": "https://copy-css.com/snippets/color-swatches",
      "markdown": "https://copy-css.com/snippets/color-swatches.md",
      "html": "<fieldset class=\"swatches\">\n  <legend>Color</legend>\n  <label style=\"--c: #18181b\"><input type=\"radio\" name=\"color\" aria-label=\"Black\" checked></label>\n  <label style=\"--c: #d6c3a5\"><input type=\"radio\" name=\"color\" aria-label=\"Sand\"></label>\n  <label style=\"--c: #84a98c\"><input type=\"radio\" name=\"color\" aria-label=\"Sage\"></label>\n  <label style=\"--c: #1e3a8a\"><input type=\"radio\" name=\"color\" aria-label=\"Navy\"></label>\n  <label style=\"--c: #e11d48\"><input type=\"radio\" name=\"color\" aria-label=\"Rose\"></label>\n</fieldset>",
      "css": ".swatches {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n}\n\n.swatches legend {\n  width: 100%;\n  margin-bottom: 12px;\n  padding: 0;\n  color: #3f3f46;\n  font: 700 14px system-ui, sans-serif;\n}\n\n/* Each label sets its own --c */\n.swatches label {\n  position: relative;\n  width: 32px;\n  height: 32px;\n  border-radius: 50%;\n  background: var(--c);\n  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);\n  cursor: pointer;\n  transition: box-shadow 0.2s ease;\n}\n\n.swatches input {\n  position: absolute;\n  inset: 0;\n  margin: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n.swatches label:has(:checked) {\n  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c);\n}\n\n.swatches label:has(:focus-visible) {\n  outline: 2px solid #6366f1;\n  outline-offset: 7px;\n}",
      "features": [
        "transitions",
        "box shadows",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": []
    },
    {
      "id": "expanding-search",
      "name": "Expanding Search",
      "category": "forms",
      "tags": [
        "search",
        "expand",
        "icon",
        "focus",
        "input",
        "header"
      ],
      "description": "A round search icon that stretches into a full search field when it gets focus.",
      "url": "https://copy-css.com/snippets/expanding-search",
      "markdown": "https://copy-css.com/snippets/expanding-search.md",
      "html": "<input class=\"search-expand\" type=\"search\" placeholder=\"Search…\" aria-label=\"Search\">",
      "css": ".search-expand {\n  box-sizing: border-box;\n  width: 44px;\n  height: 44px;\n  padding: 0 0 0 42px;\n  border: 1px solid #e2e8f0;\n  border-radius: 999px;\n  background: #fff url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E\") 13px 50% / 17px no-repeat;\n  color: #0f172a;\n  font: 15px system-ui, sans-serif;\n  -webkit-appearance: none;\n  appearance: none;\n  outline: none;\n  cursor: pointer;\n  transition: width 0.35s cubic-bezier(0.3, 0.7, 0.4, 1), border-color 0.2s ease, box-shadow 0.2s ease;\n}\n\n/* Stay open while focused or while it has text */\n.search-expand:focus,\n.search-expand:not(:placeholder-shown) {\n  width: 220px;\n  padding-right: 14px;\n  border-color: #0ea5e9;\n  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);\n  cursor: text;\n}",
      "features": [
        "transitions",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "labeled-toggle-switch",
      "name": "Labeled Toggle Switch",
      "category": "forms",
      "tags": [
        "toggle",
        "switch",
        "on off",
        "role switch",
        "checkbox",
        "settings"
      ],
      "description": "A toggle switch with ON and OFF text inside the track and a visible label, built on a role=\"switch\" checkbox.",
      "url": "https://copy-css.com/snippets/labeled-toggle-switch",
      "markdown": "https://copy-css.com/snippets/labeled-toggle-switch.md",
      "html": "<label class=\"tgl-text\">\n  <span>Wi-Fi</span>\n  <input type=\"checkbox\" role=\"switch\" checked>\n  <span class=\"tgl-text-track\" aria-hidden=\"true\"></span>\n</label>",
      "css": ".tgl-text {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 12px;\n  color: #0f172a;\n  font: 600 15px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.tgl-text input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.tgl-text-track {\n  position: relative;\n  width: 64px;\n  height: 30px;\n  border-radius: 999px;\n  background: #cbd5e1;\n  transition: background 0.25s ease;\n}\n\n.tgl-text-track::before {\n  content: \"\";\n  position: absolute;\n  top: 3px;\n  left: 3px;\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);\n  transition: transform 0.25s ease;\n}\n\n.tgl-text-track::after {\n  content: \"OFF\";\n  position: absolute;\n  top: 50%;\n  right: 9px;\n  color: #475569;\n  font-size: 10px;\n  font-weight: 800;\n  transform: translateY(-50%);\n}\n\n.tgl-text input:checked + .tgl-text-track {\n  background: #2563eb;\n}\n\n.tgl-text input:checked + .tgl-text-track::before {\n  transform: translateX(34px);\n}\n\n.tgl-text input:checked + .tgl-text-track::after {\n  content: \"ON\";\n  right: auto;\n  left: 11px;\n  color: #fff;\n}\n\n.tgl-text input:focus-visible + .tgl-text-track {\n  outline: 2px solid #2563eb;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tgl-text-track,\n  .tgl-text-track::before {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "icon-toggle-switch",
      "name": "Icon Toggle Switch",
      "category": "forms",
      "tags": [
        "toggle",
        "switch",
        "check icon",
        "cross icon",
        "checkbox",
        "accessible"
      ],
      "description": "A toggle switch whose knob shows a cross when off and a check mark when on, so state is not shown by color alone.",
      "url": "https://copy-css.com/snippets/icon-toggle-switch",
      "markdown": "https://copy-css.com/snippets/icon-toggle-switch.md",
      "html": "<label class=\"tgl-icon\">\n  <input type=\"checkbox\" role=\"switch\">\n  <span class=\"tgl-icon-track\" aria-hidden=\"true\"></span>\n  Email alerts\n</label>",
      "css": ".tgl-icon {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  color: #500724;\n  font: 500 15px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.tgl-icon input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.tgl-icon-track {\n  position: relative;\n  width: 56px;\n  height: 32px;\n  border-radius: 999px;\n  background: #e4e4e7;\n  transition: background 0.3s ease;\n}\n\n.tgl-icon-track::before {\n  content: \"✕\";\n  position: absolute;\n  top: 4px;\n  left: 4px;\n  display: grid;\n  place-items: center;\n  width: 24px;\n  height: 24px;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n  color: #71717a;\n  font-size: 12px;\n  font-weight: 800;\n  transition: transform 0.3s cubic-bezier(0.4, 1.4, 0.6, 1);\n}\n\n.tgl-icon input:checked + .tgl-icon-track {\n  background: #db2777;\n}\n\n.tgl-icon input:checked + .tgl-icon-track::before {\n  content: \"✓\";\n  color: #db2777;\n  transform: translateX(24px);\n}\n\n.tgl-icon input:focus-visible + .tgl-icon-track {\n  outline: 2px solid #db2777;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tgl-icon-track,\n  .tgl-icon-track::before {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "settings-toggle-list",
      "name": "Settings Toggle List",
      "category": "forms",
      "tags": [
        "settings",
        "preferences",
        "toggle",
        "switch",
        "list",
        "notifications"
      ],
      "description": "A settings panel of rows with a title, a short description and a switch, where the whole row is clickable.",
      "url": "https://copy-css.com/snippets/settings-toggle-list",
      "markdown": "https://copy-css.com/snippets/settings-toggle-list.md",
      "html": "<fieldset class=\"settings-list\">\n  <legend>Notifications</legend>\n  <label>\n    <span><strong>Comments</strong>When someone replies to you</span>\n    <input type=\"checkbox\" role=\"switch\" checked>\n  </label>\n  <label>\n    <span><strong>Mentions</strong>When someone tags you</span>\n    <input type=\"checkbox\" role=\"switch\">\n  </label>\n  <label>\n    <span><strong>Weekly digest</strong>A summary every Monday</span>\n    <input type=\"checkbox\" role=\"switch\" checked>\n  </label>\n</fieldset>",
      "css": ".settings-list {\n  width: 100%;\n  max-width: 300px;\n  margin: 0;\n  padding: 0;\n  overflow: hidden;\n  border: 1px solid #e4e4e7;\n  border-radius: 14px;\n  background: #fff;\n  color: #18181b;\n  font-family: system-ui, sans-serif;\n}\n\n.settings-list legend {\n  float: left;\n  width: 100%;\n  padding: 12px 16px 4px;\n  color: #71717a;\n  font-size: 12px;\n  font-weight: 700;\n  letter-spacing: 0.06em;\n  text-transform: uppercase;\n}\n\n.settings-list label {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  gap: 12px;\n  clear: both;\n  padding: 10px 16px;\n  border-top: 1px solid #f4f4f5;\n  cursor: pointer;\n}\n\n.settings-list label:first-of-type {\n  border-top: 0;\n}\n\n.settings-list label:hover {\n  background: #fafafa;\n}\n\n.settings-list span {\n  display: grid;\n  color: #71717a;\n  font-size: 12px;\n}\n\n.settings-list strong {\n  color: #18181b;\n  font-size: 14px;\n  font-weight: 600;\n}\n\n.settings-list input {\n  position: relative;\n  flex: none;\n  width: 40px;\n  height: 24px;\n  margin: 0;\n  border-radius: 999px;\n  background: #d4d4d8;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.settings-list input::before {\n  content: \"\";\n  position: absolute;\n  top: 3px;\n  left: 3px;\n  width: 18px;\n  height: 18px;\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);\n  transition: transform 0.2s ease;\n}\n\n.settings-list input:checked {\n  background: #16a34a;\n}\n\n.settings-list input:checked::before {\n  transform: translateX(16px);\n}\n\n.settings-list input:focus-visible {\n  outline: 2px solid #16a34a;\n  outline-offset: 2px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .settings-list input,\n  .settings-list input::before {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "material-toggle-switch",
      "name": "Material Toggle Switch",
      "category": "forms",
      "tags": [
        "material design",
        "android",
        "toggle",
        "switch",
        "single element",
        "appearance"
      ],
      "description": "An Android-style switch made from a single input, with a slim track, an oversized thumb and a focus halo.",
      "url": "https://copy-css.com/snippets/material-toggle-switch",
      "markdown": "https://copy-css.com/snippets/material-toggle-switch.md",
      "html": "<label class=\"tgl-md\">\n  <input type=\"checkbox\" role=\"switch\" checked>\n  Dark theme\n</label>",
      "css": ".tgl-md {\n  display: inline-flex;\n  align-items: center;\n  gap: 14px;\n  color: #3b0764;\n  font: 500 15px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.tgl-md input {\n  position: relative;\n  width: 36px;\n  height: 14px;\n  margin: 0 4px;\n  border-radius: 999px;\n  background: #d4d4d8;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.tgl-md input::before {\n  content: \"\";\n  position: absolute;\n  top: 50%;\n  left: -4px;\n  width: 22px;\n  height: 22px;\n  border-radius: 50%;\n  background: #fafafa;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);\n  transform: translateY(-50%);\n  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;\n}\n\n.tgl-md input:checked {\n  background: #d8b4fe;\n}\n\n.tgl-md input:checked::before {\n  background: #7e22ce;\n  transform: translate(22px, -50%);\n}\n\n.tgl-md input:focus-visible {\n  outline: none;\n}\n\n.tgl-md input:focus-visible::before {\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 10px rgba(126, 34, 206, 0.18);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tgl-md input,\n  .tgl-md input::before {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "animated-checkbox",
      "name": "Animated Checkbox",
      "category": "forms",
      "tags": [
        "checkbox",
        "animation",
        "svg",
        "stroke",
        "draw",
        "check mark"
      ],
      "description": "A checkbox whose tick draws itself with an SVG stroke animation and a little bounce when checked.",
      "url": "https://copy-css.com/snippets/animated-checkbox",
      "markdown": "https://copy-css.com/snippets/animated-checkbox.md",
      "html": "<label class=\"check-draw\">\n  <input type=\"checkbox\" checked>\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M5 12.5 10 17 19 7\"/></svg>\n  Send me product updates\n</label>",
      "css": ".check-draw {\n  position: relative;\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  color: #14532d;\n  font: 500 15px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.check-draw input {\n  flex: none;\n  width: 24px;\n  height: 24px;\n  margin: 0;\n  border: 2px solid #86efac;\n  border-radius: 7px;\n  background: #fff;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;\n}\n\n.check-draw input:checked {\n  border-color: #16a34a;\n  background: #16a34a;\n  animation: check-draw-pop 0.3s ease;\n}\n\n.check-draw input:focus-visible {\n  outline: 2px solid #16a34a;\n  outline-offset: 2px;\n}\n\n.check-draw svg {\n  position: absolute;\n  left: 3px;\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: #fff;\n  stroke-width: 3;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-dasharray: 22;\n  stroke-dashoffset: 22;\n  pointer-events: none;\n  transition: stroke-dashoffset 0.3s ease 0.05s;\n}\n\n.check-draw input:checked + svg {\n  stroke-dashoffset: 0;\n}\n\n@keyframes check-draw-pop {\n  50% {\n    transform: scale(1.15);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .check-draw input,\n  .check-draw svg {\n    transition: none;\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "transitions",
        "transforms",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "todo-checklist",
      "name": "To-Do Checklist",
      "category": "forms",
      "tags": [
        "todo",
        "task list",
        "checkbox",
        "strikethrough",
        "done",
        "checklist"
      ],
      "description": "A to-do list with round checkboxes where finished tasks get a line drawn through them and fade out.",
      "url": "https://copy-css.com/snippets/todo-checklist",
      "markdown": "https://copy-css.com/snippets/todo-checklist.md",
      "html": "<fieldset class=\"todo-list\">\n  <legend>Today</legend>\n  <label><input type=\"checkbox\" checked><span>Review pull request</span></label>\n  <label><input type=\"checkbox\"><span>Write release notes</span></label>\n  <label><input type=\"checkbox\"><span>Book team lunch</span></label>\n</fieldset>",
      "css": ".todo-list {\n  display: grid;\n  gap: 4px;\n  width: 240px;\n  margin: 0;\n  padding: 14px 16px;\n  border: 0;\n  border-radius: 14px;\n  background: #fff;\n  box-shadow: 0 6px 18px -10px rgba(113, 63, 18, 0.35);\n  color: #422006;\n  font-family: system-ui, sans-serif;\n}\n\n.todo-list legend {\n  float: left;\n  margin-bottom: 4px;\n  font-size: 16px;\n  font-weight: 800;\n}\n\n.todo-list label {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  padding: 6px 0;\n  font-size: 14px;\n  cursor: pointer;\n}\n\n.todo-list input {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 20px;\n  height: 20px;\n  margin: 0;\n  border: 2px solid #facc15;\n  border-radius: 50%;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.todo-list input::before {\n  content: \"✓\";\n  color: #fff;\n  font-size: 12px;\n  font-weight: 900;\n  transform: scale(0);\n  transition: transform 0.15s ease;\n}\n\n.todo-list input:checked {\n  border-color: #ca8a04;\n  background: #ca8a04;\n}\n\n.todo-list input:checked::before {\n  transform: scale(1);\n}\n\n.todo-list input:focus-visible {\n  outline: 2px solid #ca8a04;\n  outline-offset: 2px;\n}\n\n.todo-list span {\n  background: linear-gradient(#a16207, #a16207) no-repeat 0 55% / 0 1.5px;\n  transition: background-size 0.3s ease, color 0.3s ease;\n}\n\n.todo-list input:checked + span {\n  background-size: 100% 1.5px;\n  color: #a8a29e;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .todo-list span,\n  .todo-list input::before {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "linear gradients",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "checkbox-tiles",
      "name": "Checkbox Tiles",
      "category": "forms",
      "tags": [
        "checkbox",
        "tiles",
        "multi-select",
        "icons",
        "has",
        "options grid"
      ],
      "description": "Large icon tiles for picking several options at once, each a real checkbox with a corner check badge.",
      "url": "https://copy-css.com/snippets/checkbox-tiles",
      "markdown": "https://copy-css.com/snippets/checkbox-tiles.md",
      "html": "<fieldset class=\"check-tiles\">\n  <legend>What are you building?</legend>\n  <label>\n    <input type=\"checkbox\" checked>\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"3\" y=\"4\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"M8 21h8M12 18v3\"/></svg>\n    Website\n  </label>\n  <label>\n    <input type=\"checkbox\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"7\" y=\"2\" width=\"10\" height=\"20\" rx=\"2\"/><path d=\"M11 18h2\"/></svg>\n    Mobile app\n  </label>\n  <label>\n    <input type=\"checkbox\" checked>\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M4 7h16M4 12h16M4 17h10\"/></svg>\n    Docs\n  </label>\n</fieldset>",
      "css": ".check-tiles {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 8px;\n  width: 100%;\n  max-width: 300px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  font-family: system-ui, sans-serif;\n}\n\n.check-tiles legend {\n  margin-bottom: 8px;\n  padding: 0;\n  color: #1e3a8a;\n  font-size: 14px;\n  font-weight: 700;\n}\n\n.check-tiles label {\n  position: relative;\n  display: grid;\n  justify-items: center;\n  gap: 6px;\n  padding: 14px 6px 12px;\n  border: 1.5px solid #dbeafe;\n  border-radius: 12px;\n  background: #fff;\n  color: #334155;\n  font-size: 13px;\n  font-weight: 600;\n  text-align: center;\n  cursor: pointer;\n  transition: border-color 0.2s ease, background 0.2s ease;\n}\n\n.check-tiles svg {\n  width: 26px;\n  height: 26px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 1.8;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.check-tiles input {\n  position: absolute;\n  top: 6px;\n  right: 6px;\n  display: grid;\n  place-items: center;\n  width: 18px;\n  height: 18px;\n  margin: 0;\n  border: 1.5px solid #bfdbfe;\n  border-radius: 50%;\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.check-tiles input:checked {\n  border-color: #2563eb;\n  background: #2563eb;\n}\n\n.check-tiles input:checked::before {\n  content: \"✓\";\n  color: #fff;\n  font-size: 11px;\n  font-weight: 900;\n}\n\n.check-tiles label:has(:checked) {\n  border-color: #2563eb;\n  background: #eff6ff;\n  color: #1d4ed8;\n}\n\n.check-tiles label:has(:focus-visible) {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "terms-consent-checkbox",
      "name": "Terms Consent Checkbox",
      "category": "forms",
      "tags": [
        "terms",
        "consent",
        "agree",
        "required",
        "user-invalid",
        "gdpr"
      ],
      "description": "A required \"I agree to the terms\" checkbox with a link, which turns red with a message only after a failed submit.",
      "url": "https://copy-css.com/snippets/terms-consent-checkbox",
      "markdown": "https://copy-css.com/snippets/terms-consent-checkbox.md",
      "html": "<form class=\"consent\">\n  <label>\n    <input type=\"checkbox\" required aria-describedby=\"consent-error\">\n    <span>I agree to the <a href=\"#\">Terms of Service</a> and <a href=\"#\">Privacy Policy</a>.</span>\n  </label>\n  <p id=\"consent-error\" class=\"consent-error\">Please accept the terms to continue.</p>\n  <button type=\"submit\">Create account</button>\n</form>",
      "css": ".consent {\n  display: grid;\n  gap: 10px;\n  width: 260px;\n  color: #1f2937;\n  font: 14px/1.45 system-ui, sans-serif;\n}\n\n.consent label {\n  display: flex;\n  align-items: flex-start;\n  gap: 10px;\n  cursor: pointer;\n}\n\n.consent input {\n  flex: none;\n  width: 18px;\n  height: 18px;\n  margin: 1px 0 0;\n  accent-color: #4f46e5;\n  cursor: pointer;\n}\n\n.consent input:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 2px;\n}\n\n.consent a {\n  color: #4f46e5;\n  font-weight: 600;\n}\n\n.consent a:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 2px;\n  border-radius: 2px;\n}\n\n.consent-error {\n  display: none;\n  margin: -4px 0 0 28px;\n  color: #dc2626;\n  font-size: 13px;\n}\n\n.consent:has(input:user-invalid) .consent-error {\n  display: block;\n}\n\n.consent input:user-invalid {\n  outline: 2px solid #dc2626;\n  outline-offset: 1px;\n}\n\n.consent button {\n  padding: 10px;\n  border: 0;\n  border-radius: 10px;\n  background: #4f46e5;\n  color: #fff;\n  font: 600 14px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.consent button:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 2px;\n}",
      "features": [
        "CSS Grid",
        "Flexbox",
        "the :has() selector",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "shipping-options-radio",
      "name": "Shipping Options Radio",
      "category": "forms",
      "tags": [
        "radio",
        "shipping",
        "checkout",
        "delivery",
        "option list",
        "has"
      ],
      "description": "A stacked list of checkout shipping options with delivery times and prices, built on real radio buttons.",
      "url": "https://copy-css.com/snippets/shipping-options-radio",
      "markdown": "https://copy-css.com/snippets/shipping-options-radio.md",
      "html": "<fieldset class=\"ship-opts\">\n  <legend>Shipping method</legend>\n  <label>\n    <input type=\"radio\" name=\"ship\" checked>\n    <span><strong>Standard</strong>4–6 business days</span>\n    <b>Free</b>\n  </label>\n  <label>\n    <input type=\"radio\" name=\"ship\">\n    <span><strong>Express</strong>1–2 business days</span>\n    <b>$9.90</b>\n  </label>\n  <label>\n    <input type=\"radio\" name=\"ship\">\n    <span><strong>Same day</strong>Order before 2 PM</span>\n    <b>$19</b>\n  </label>\n</fieldset>",
      "css": ".ship-opts {\n  width: 100%;\n  max-width: 300px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  color: #0f172a;\n  font-family: system-ui, sans-serif;\n}\n\n.ship-opts legend {\n  margin-bottom: 8px;\n  padding: 0;\n  font-size: 14px;\n  font-weight: 700;\n}\n\n.ship-opts label {\n  position: relative;\n  display: flex;\n  align-items: center;\n  gap: 12px;\n  margin-top: -1px;\n  padding: 11px 14px;\n  border: 1px solid #e2e8f0;\n  background: #fff;\n  cursor: pointer;\n}\n\n.ship-opts label:first-of-type {\n  border-radius: 12px 12px 0 0;\n}\n\n.ship-opts label:last-of-type {\n  border-radius: 0 0 12px 12px;\n}\n\n.ship-opts label:has(:checked) {\n  z-index: 1;\n  border-color: #0ea5e9;\n  background: #f0f9ff;\n}\n\n.ship-opts input {\n  display: grid;\n  flex: none;\n  place-items: center;\n  width: 18px;\n  height: 18px;\n  margin: 0;\n  border: 2px solid #cbd5e1;\n  border-radius: 50%;\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.ship-opts input:checked {\n  border-color: #0ea5e9;\n}\n\n.ship-opts input:checked::before {\n  content: \"\";\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  background: #0ea5e9;\n}\n\n.ship-opts input:focus-visible {\n  outline: 2px solid #0ea5e9;\n  outline-offset: 2px;\n}\n\n.ship-opts span {\n  display: grid;\n  flex: 1;\n  color: #64748b;\n  font-size: 12px;\n}\n\n.ship-opts strong {\n  color: #0f172a;\n  font-size: 14px;\n}\n\n.ship-opts b {\n  font-size: 14px;\n}",
      "features": [
        "CSS Grid",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "size-picker",
      "name": "Size Picker",
      "category": "forms",
      "tags": [
        "size",
        "variant",
        "product options",
        "radio",
        "sold out",
        "shop"
      ],
      "description": "Clothing size buttons built on radios, with a filled selected state and a crossed-out sold-out size.",
      "url": "https://copy-css.com/snippets/size-picker",
      "markdown": "https://copy-css.com/snippets/size-picker.md",
      "html": "<fieldset class=\"size-pick\">\n  <legend>Size</legend>\n  <label><input type=\"radio\" name=\"size\" value=\"s\">S</label>\n  <label><input type=\"radio\" name=\"size\" value=\"m\" checked>M</label>\n  <label><input type=\"radio\" name=\"size\" value=\"l\">L</label>\n  <label><input type=\"radio\" name=\"size\" value=\"xl\">XL</label>\n  <label><input type=\"radio\" name=\"size\" value=\"xxl\" disabled aria-describedby=\"size-pick-note\">XXL</label>\n  <small id=\"size-pick-note\">XXL is sold out</small>\n</fieldset>",
      "css": ".size-pick {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 8px;\n  max-width: 280px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  font-family: system-ui, sans-serif;\n}\n\n.size-pick legend {\n  margin-bottom: 8px;\n  padding: 0;\n  color: #1c1917;\n  font-size: 14px;\n  font-weight: 700;\n}\n\n.size-pick label {\n  position: relative;\n  display: grid;\n  place-items: center;\n  min-width: 44px;\n  height: 44px;\n  padding: 0 8px;\n  box-sizing: border-box;\n  border: 1.5px solid #d6d3d1;\n  border-radius: 10px;\n  background: #fff;\n  color: #1c1917;\n  font-size: 14px;\n  font-weight: 600;\n  cursor: pointer;\n}\n\n.size-pick input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.size-pick label:hover {\n  border-color: #1c1917;\n}\n\n.size-pick label:has(:checked) {\n  border-color: #1c1917;\n  background: #1c1917;\n  color: #fff;\n}\n\n.size-pick label:has(:focus-visible) {\n  outline: 2px solid #1c1917;\n  outline-offset: 2px;\n}\n\n.size-pick label:has(:disabled) {\n  border-color: #e7e5e4;\n  background: linear-gradient(to top right, transparent calc(50% - 1px), #d6d3d1 0 calc(50% + 1px), transparent 0) #fafaf9;\n  color: #a8a29e;\n  cursor: not-allowed;\n}\n\n.size-pick small {\n  width: 100%;\n  color: #78716c;\n  font-size: 12px;\n}",
      "features": [
        "linear gradients",
        "CSS Grid",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "nps-rating-scale",
      "name": "NPS Rating Scale",
      "category": "forms",
      "tags": [
        "nps",
        "survey",
        "rating",
        "0 to 10",
        "feedback",
        "radio",
        "scale"
      ],
      "description": "A 0 to 10 \"how likely are you to recommend us\" scale where the chosen score turns red, amber or green.",
      "url": "https://copy-css.com/snippets/nps-rating-scale",
      "markdown": "https://copy-css.com/snippets/nps-rating-scale.md",
      "html": "<fieldset class=\"nps-survey\">\n  <legend>How likely are you to recommend us to a friend?</legend>\n  <div class=\"nps-survey-scale\">\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"0\">0</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"1\">1</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"2\">2</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"3\">3</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"4\">4</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"5\">5</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"6\">6</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"7\">7</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"8\">8</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"9\" checked>9</label>\n    <label><input type=\"radio\" name=\"nps-survey\" value=\"10\">10</label>\n  </div>\n  <p class=\"nps-survey-ends\"><span>Not likely</span><span>Very likely</span></p>\n</fieldset>",
      "css": ".nps-survey {\n  width: 100%;\n  min-width: 0;\n  max-width: 340px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  color: #0f172a;\n  font-family: system-ui, sans-serif;\n}\n\n.nps-survey legend {\n  margin-bottom: 10px;\n  padding: 0;\n  font-size: 14px;\n  font-weight: 600;\n}\n\n.nps-survey-scale {\n  display: grid;\n  grid-template-columns: repeat(11, minmax(0, 1fr));\n  gap: 3px;\n}\n\n.nps-survey-scale label {\n  position: relative;\n  display: grid;\n  place-items: center;\n  height: 34px;\n  border: 1px solid #e2e8f0;\n  border-radius: 6px;\n  background: #fff;\n  font-size: 13px;\n  font-weight: 600;\n  cursor: pointer;\n}\n\n.nps-survey-scale input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.nps-survey-scale label:hover {\n  border-color: #94a3b8;\n}\n\n.nps-survey-scale label:nth-child(-n + 7):has(:checked) {\n  border-color: #ef4444;\n  background: #ef4444;\n  color: #fff;\n}\n\n.nps-survey-scale label:nth-child(n + 8):nth-child(-n + 9):has(:checked) {\n  border-color: #f59e0b;\n  background: #f59e0b;\n  color: #fff;\n}\n\n.nps-survey-scale label:nth-child(n + 10):has(:checked) {\n  border-color: #16a34a;\n  background: #16a34a;\n  color: #fff;\n}\n\n.nps-survey-scale label:has(:focus-visible) {\n  outline: 2px solid #0f172a;\n  outline-offset: 2px;\n}\n\n.nps-survey-ends {\n  display: flex;\n  justify-content: space-between;\n  margin: 6px 0 0;\n  color: #64748b;\n  font-size: 12px;\n}",
      "features": [
        "CSS Grid",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "emoji-feedback-rating",
      "name": "Emoji Feedback Rating",
      "category": "forms",
      "tags": [
        "emoji",
        "feedback",
        "rating",
        "satisfaction",
        "radio",
        "survey"
      ],
      "description": "Five emoji faces for quick feedback, greyed out until one is picked, which then pops up in full color.",
      "url": "https://copy-css.com/snippets/emoji-feedback-rating",
      "markdown": "https://copy-css.com/snippets/emoji-feedback-rating.md",
      "html": "<fieldset class=\"emoji-rate\">\n  <legend>How was your experience?</legend>\n  <label><input type=\"radio\" name=\"mood\" value=\"1\" aria-label=\"Terrible\"><span aria-hidden=\"true\">😠</span></label>\n  <label><input type=\"radio\" name=\"mood\" value=\"2\" aria-label=\"Bad\"><span aria-hidden=\"true\">🙁</span></label>\n  <label><input type=\"radio\" name=\"mood\" value=\"3\" aria-label=\"Okay\"><span aria-hidden=\"true\">😐</span></label>\n  <label><input type=\"radio\" name=\"mood\" value=\"4\" aria-label=\"Good\" checked><span aria-hidden=\"true\">🙂</span></label>\n  <label><input type=\"radio\" name=\"mood\" value=\"5\" aria-label=\"Great\"><span aria-hidden=\"true\">😍</span></label>\n</fieldset>",
      "css": ".emoji-rate {\n  margin: 0;\n  padding: 16px 14px;\n  border: 0;\n  border-radius: 16px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n  text-align: center;\n}\n\n.emoji-rate legend {\n  float: left;\n  width: 100%;\n  margin-bottom: 10px;\n  padding: 0;\n  color: #431407;\n  font-size: 15px;\n  font-weight: 700;\n  text-align: center;\n}\n\n.emoji-rate label {\n  position: relative;\n  display: inline-grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  border-radius: 50%;\n  cursor: pointer;\n}\n\n.emoji-rate input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.emoji-rate span {\n  font-size: 26px;\n  line-height: 1;\n  filter: grayscale(1);\n  opacity: 0.5;\n  transition: transform 0.2s cubic-bezier(0.4, 1.6, 0.6, 1), filter 0.2s ease, opacity 0.2s ease;\n}\n\n.emoji-rate label:hover span {\n  filter: grayscale(0.3);\n  opacity: 0.9;\n}\n\n.emoji-rate input:checked + span {\n  filter: none;\n  opacity: 1;\n  transform: scale(1.3);\n}\n\n.emoji-rate label:has(:checked) {\n  background: #ffedd5;\n}\n\n.emoji-rate label:has(:focus-visible) {\n  outline: 2px solid #ea580c;\n  outline-offset: 2px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .emoji-rate span {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "filters",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "outlined-floating-label",
      "name": "Outlined Floating Label",
      "category": "forms",
      "tags": [
        "floating label",
        "outlined",
        "material",
        "notch",
        "input",
        "placeholder-shown"
      ],
      "description": "A Material-style outlined input whose label shrinks into a notch on the top border when focused or filled.",
      "url": "https://copy-css.com/snippets/outlined-floating-label",
      "markdown": "https://copy-css.com/snippets/outlined-floating-label.md",
      "html": "<label class=\"outlined\">\n  <input type=\"text\" name=\"name\" autocomplete=\"name\" placeholder=\" \">\n  <span>Full name</span>\n</label>",
      "css": ".outlined {\n  --accent: #0d9488;\n  position: relative;\n  display: block;\n  width: 240px;\n  font-family: system-ui, sans-serif;\n}\n\n.outlined input {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 14px 14px;\n  border: 1.5px solid #a1a1aa;\n  border-radius: 8px;\n  background: #fff;\n  color: #18181b;\n  font: 16px system-ui, sans-serif;\n  outline: none;\n  transition: border-color 0.2s ease;\n}\n\n.outlined span {\n  position: absolute;\n  top: 50%;\n  left: 10px;\n  padding: 0 4px;\n  background: #fff;\n  color: #71717a;\n  font-size: 16px;\n  line-height: 1;\n  pointer-events: none;\n  transform: translateY(-50%);\n  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;\n}\n\n.outlined input:hover {\n  border-color: #52525b;\n}\n\n.outlined input:focus {\n  border-color: var(--accent);\n  box-shadow: inset 0 0 0 1px var(--accent);\n}\n\n.outlined input:focus + span,\n.outlined input:not(:placeholder-shown) + span {\n  top: 0;\n  font-size: 12px;\n}\n\n.outlined input:focus + span {\n  color: var(--accent);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .outlined span {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--accent",
          "value": "#0d9488"
        }
      ]
    },
    {
      "id": "input-with-icon",
      "name": "Input with Icon",
      "category": "forms",
      "tags": [
        "icon",
        "email",
        "leading icon",
        "valid",
        "checkmark",
        "input"
      ],
      "description": "An email field with a leading mail icon that tints on focus and a green check that appears once the value is valid.",
      "url": "https://copy-css.com/snippets/input-with-icon",
      "markdown": "https://copy-css.com/snippets/input-with-icon.md",
      "html": "<label class=\"icon-field\">\n  <span class=\"icon-field-label\">Work email</span>\n  <span class=\"icon-field-box\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\"/><path d=\"m3 7 9 6 9-6\"/></svg>\n    <input type=\"email\" name=\"email\" autocomplete=\"email\" placeholder=\"you@company.com\" value=\"sam@studio.dev\">\n  </span>\n</label>",
      "css": ".icon-field {\n  display: grid;\n  gap: 6px;\n  width: 260px;\n  font-family: system-ui, sans-serif;\n}\n\n.icon-field-label {\n  color: #3b0764;\n  font-size: 13px;\n  font-weight: 600;\n}\n\n.icon-field-box {\n  position: relative;\n  display: block;\n}\n\n.icon-field svg {\n  position: absolute;\n  top: 50%;\n  left: 12px;\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: #a1a1aa;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  transform: translateY(-50%);\n  pointer-events: none;\n  transition: stroke 0.2s ease;\n}\n\n.icon-field input {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 11px 38px 11px 40px;\n  border: 1.5px solid #ddd6fe;\n  border-radius: 10px;\n  background: #fff no-repeat right 12px center / 16px;\n  color: #18181b;\n  font: 15px system-ui, sans-serif;\n  outline: none;\n}\n\n.icon-field input:focus {\n  border-color: #7c3aed;\n  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);\n}\n\n.icon-field-box:focus-within svg {\n  stroke: #7c3aed;\n}\n\n.icon-field input:valid:not(:placeholder-shown) {\n  background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E\");\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "underline-input",
      "name": "Underline Input",
      "category": "forms",
      "tags": [
        "underline",
        "minimal",
        "focus line",
        "animated border",
        "input",
        "clean"
      ],
      "description": "A minimal input with only a bottom border, where a colored line grows out from the center on focus.",
      "url": "https://copy-css.com/snippets/underline-input",
      "markdown": "https://copy-css.com/snippets/underline-input.md",
      "html": "<label class=\"line-field\">\n  <span>Company</span>\n  <input type=\"text\" name=\"company\" autocomplete=\"organization\" placeholder=\"Acme Inc.\">\n  <i aria-hidden=\"true\"></i>\n</label>",
      "css": ".line-field {\n  position: relative;\n  display: grid;\n  width: 240px;\n  font-family: system-ui, sans-serif;\n}\n\n.line-field span {\n  color: #78716c;\n  font-size: 12px;\n  font-weight: 600;\n  letter-spacing: 0.04em;\n  text-transform: uppercase;\n  transition: color 0.2s ease;\n}\n\n.line-field input {\n  padding: 8px 0;\n  border: 0;\n  border-bottom: 1.5px solid #d6d3d1;\n  border-radius: 0;\n  background: transparent;\n  color: #1c1917;\n  font: 17px system-ui, sans-serif;\n  outline: none;\n}\n\n.line-field input::placeholder {\n  color: #a8a29e;\n}\n\n.line-field i {\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  height: 2px;\n  background: #ea580c;\n  transform: scaleX(0);\n  transition: transform 0.3s ease;\n}\n\n.line-field input:focus + i {\n  transform: scaleX(1);\n}\n\n.line-field:focus-within span {\n  color: #ea580c;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .line-field i {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "auto-resize-textarea",
      "name": "Auto-Resize Textarea",
      "category": "forms",
      "tags": [
        "textarea",
        "auto grow",
        "field-sizing",
        "comment box",
        "message",
        "resize"
      ],
      "description": "A textarea that grows with its content using field-sizing: content, capped at a max height, with no JavaScript.",
      "url": "https://copy-css.com/snippets/auto-resize-textarea",
      "markdown": "https://copy-css.com/snippets/auto-resize-textarea.md",
      "html": "<label class=\"grow-area\">\n  <span>Your message</span>\n  <textarea name=\"message\" rows=\"2\" placeholder=\"Type a few lines and watch me grow…\"></textarea>\n</label>",
      "css": ".grow-area {\n  display: grid;\n  gap: 6px;\n  width: 260px;\n  color: #0c4a6e;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.grow-area textarea {\n  box-sizing: border-box;\n  width: 100%;\n  min-height: 3lh;\n  max-height: 8lh;\n  padding: 10px 12px;\n  border: 1.5px solid #bae6fd;\n  border-radius: 12px;\n  background: #fff;\n  color: #0f172a;\n  font: 400 15px/1.5 system-ui, sans-serif;\n  resize: vertical;\n  field-sizing: content;\n}\n\n.grow-area textarea:focus-visible {\n  border-color: #0284c7;\n  outline: none;\n  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);\n}\n\n@supports (field-sizing: content) {\n  .grow-area textarea {\n    resize: none;\n  }\n}",
      "features": [
        "field-sizing",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "input-states",
      "name": "Input States",
      "category": "forms",
      "tags": [
        "error",
        "helper text",
        "disabled",
        "aria-invalid",
        "design system",
        "validation"
      ],
      "description": "Default, error and disabled text field states with helper and error text linked via aria-describedby.",
      "url": "https://copy-css.com/snippets/input-states",
      "markdown": "https://copy-css.com/snippets/input-states.md",
      "html": "<div class=\"field-states\">\n  <label>\n    Username\n    <input type=\"text\" value=\"mira\" aria-describedby=\"field-states-hint\">\n    <small id=\"field-states-hint\">Letters and numbers only.</small>\n  </label>\n  <label>\n    Email\n    <input type=\"email\" value=\"mira@\" aria-invalid=\"true\" aria-describedby=\"field-states-error\">\n    <small id=\"field-states-error\">Enter a full email address.</small>\n  </label>\n  <label>\n    Plan\n    <input type=\"text\" value=\"Free\" disabled>\n  </label>\n</div>",
      "css": ".field-states {\n  display: grid;\n  gap: 12px;\n  width: 240px;\n  font-family: system-ui, sans-serif;\n}\n\n.field-states label {\n  display: grid;\n  gap: 4px;\n  color: #27272a;\n  font-size: 13px;\n  font-weight: 600;\n}\n\n.field-states input {\n  padding: 8px 11px;\n  border: 1.5px solid #d4d4d8;\n  border-radius: 8px;\n  background: #fff;\n  color: #18181b;\n  font: 14px system-ui, sans-serif;\n}\n\n.field-states input:focus-visible {\n  border-color: #2563eb;\n  outline: 3px solid rgba(37, 99, 235, 0.2);\n  outline-offset: 0;\n}\n\n.field-states small {\n  color: #71717a;\n  font-size: 12px;\n  font-weight: 400;\n}\n\n.field-states input[aria-invalid=\"true\"] {\n  border-color: #dc2626;\n}\n\n.field-states input[aria-invalid=\"true\"]:focus-visible {\n  outline-color: rgba(220, 38, 38, 0.2);\n}\n\n.field-states input[aria-invalid=\"true\"] + small {\n  color: #dc2626;\n}\n\n.field-states input[aria-invalid=\"true\"] + small::before {\n  content: \"⚠ \";\n}\n\n.field-states input:disabled {\n  border-color: #e4e4e7;\n  background: #f4f4f5;\n  color: #a1a1aa;\n  cursor: not-allowed;\n}",
      "features": [
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "contact-form",
      "name": "Contact Form",
      "category": "forms",
      "tags": [
        "contact",
        "form",
        "message",
        "textarea",
        "responsive",
        "grid"
      ],
      "description": "A tidy contact form with name and email side by side on wide screens, a message box and a send button.",
      "url": "https://copy-css.com/snippets/contact-form",
      "markdown": "https://copy-css.com/snippets/contact-form.md",
      "html": "<form class=\"contact-form\">\n  <label>Name<input type=\"text\" name=\"name\" autocomplete=\"name\" required></label>\n  <label>Email<input type=\"email\" name=\"email\" autocomplete=\"email\" required></label>\n  <label class=\"contact-form-wide\">Message<textarea name=\"message\" rows=\"3\" required></textarea></label>\n  <button type=\"submit\">Send message</button>\n</form>",
      "css": ".contact-form {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));\n  gap: 10px;\n  width: 100%;\n  max-width: 340px;\n  padding: 16px;\n  box-sizing: border-box;\n  border-radius: 16px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.contact-form label {\n  display: grid;\n  gap: 4px;\n  color: #334155;\n  font-size: 12px;\n  font-weight: 600;\n}\n\n.contact-form-wide,\n.contact-form button {\n  grid-column: 1 / -1;\n}\n\n.contact-form input,\n.contact-form textarea {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 8px 10px;\n  border: 1px solid #cbd5e1;\n  border-radius: 8px;\n  background: #f8fafc;\n  color: #0f172a;\n  font: 14px system-ui, sans-serif;\n  resize: vertical;\n}\n\n.contact-form input:focus-visible,\n.contact-form textarea:focus-visible {\n  border-color: #0f172a;\n  outline: 2px solid #0f172a;\n  outline-offset: -1px;\n  background: #fff;\n}\n\n.contact-form button {\n  padding: 10px;\n  border: 0;\n  border-radius: 8px;\n  background: #0f172a;\n  color: #fff;\n  font: 600 14px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.contact-form button:hover {\n  background: #334155;\n}\n\n.contact-form button:focus-visible {\n  outline: 2px solid #0f172a;\n  outline-offset: 2px;\n}",
      "features": [
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "floating-label-select",
      "name": "Floating Label Select",
      "category": "forms",
      "tags": [
        "select",
        "floating label",
        "dropdown",
        "placeholder",
        "invalid",
        "form"
      ],
      "description": "A native select with a label that sits inside like a placeholder, then floats up once an option is chosen.",
      "url": "https://copy-css.com/snippets/floating-label-select",
      "markdown": "https://copy-css.com/snippets/floating-label-select.md",
      "html": "<label class=\"float-select\">\n  <select name=\"country\" required>\n    <option value=\"\" disabled selected></option>\n    <option>Canada</option>\n    <option>Germany</option>\n    <option>Japan</option>\n  </select>\n  <span>Country</span>\n</label>",
      "css": ".float-select {\n  position: relative;\n  display: block;\n  width: 240px;\n  font-family: system-ui, sans-serif;\n}\n\n.float-select select {\n  box-sizing: border-box;\n  width: 100%;\n  height: 54px;\n  padding: 20px 40px 4px 14px;\n  border: 1.5px solid #a7f3d0;\n  border-radius: 10px;\n  background: #fff url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\") no-repeat right 14px center / 16px;\n  color: #064e3b;\n  font: 16px system-ui, sans-serif;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.float-select span {\n  position: absolute;\n  top: 10px;\n  left: 15px;\n  color: #059669;\n  font-size: 12px;\n  pointer-events: none;\n  transition: top 0.2s ease, font-size 0.2s ease;\n}\n\n.float-select select:invalid + span {\n  top: 17px;\n  color: #6b7280;\n  font-size: 16px;\n}\n\n.float-select select:focus-visible {\n  border-color: #059669;\n  outline: none;\n  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .float-select span {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "box shadows",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "inline-sort-select",
      "name": "Inline Sort Select",
      "category": "forms",
      "tags": [
        "sort by",
        "select",
        "inline",
        "filter",
        "toolbar",
        "minimal"
      ],
      "description": "A borderless \"Sort by\" select that reads like part of the sentence, for product lists and search results.",
      "url": "https://copy-css.com/snippets/inline-sort-select",
      "markdown": "https://copy-css.com/snippets/inline-sort-select.md",
      "html": "<label class=\"sort-by\">\n  Sort by\n  <select name=\"sort\">\n    <option>Newest</option>\n    <option>Price: low to high</option>\n    <option>Price: high to low</option>\n    <option>Best rated</option>\n  </select>\n</label>",
      "css": ".sort-by {\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  color: #71717a;\n  font: 14px system-ui, sans-serif;\n}\n\n.sort-by select {\n  padding: 4px 22px 4px 6px;\n  border: 0;\n  border-radius: 6px;\n  background: transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\") no-repeat right 4px center / 12px;\n  color: #18181b;\n  font: 600 14px system-ui, sans-serif;\n  -webkit-appearance: none;\n  appearance: none;\n  field-sizing: content;\n  cursor: pointer;\n}\n\n.sort-by select:hover {\n  background-color: #f4f4f5;\n}\n\n.sort-by select:focus-visible {\n  outline: 2px solid #18181b;\n  outline-offset: 1px;\n}",
      "features": [
        "field-sizing",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "styled-select-options",
      "name": "Styled Select Options",
      "category": "forms",
      "tags": [
        "select",
        "base-select",
        "picker",
        "dropdown",
        "option styling",
        "progressive enhancement"
      ],
      "description": "A select whose open dropdown and options are fully styled with appearance: base-select, falling back to a native select.",
      "url": "https://copy-css.com/snippets/styled-select-options",
      "markdown": "https://copy-css.com/snippets/styled-select-options.md",
      "html": "<label class=\"select-pick\">\n  <span>Status</span>\n  <select name=\"status\">\n    <option>Backlog</option>\n    <option selected>In progress</option>\n    <option>In review</option>\n    <option>Done</option>\n  </select>\n</label>",
      "css": ".select-pick {\n  display: grid;\n  gap: 6px;\n  width: 220px;\n  color: #312e81;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.select-pick select {\n  padding: 10px 12px;\n  border: 1.5px solid #c7d2fe;\n  border-radius: 10px;\n  background: #fff;\n  color: #1e1b4b;\n  font: 15px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.select-pick select:focus-visible {\n  border-color: #4f46e5;\n  outline: 3px solid rgba(79, 70, 229, 0.2);\n  outline-offset: 0;\n}\n\n/* Browsers that support customizable selects get a fully styled dropdown. */\n.select-pick select,\n.select-pick select::picker(select) {\n  appearance: base-select;\n}\n\n.select-pick select::picker(select) {\n  margin-top: 4px;\n  padding: 4px;\n  border: 1px solid #c7d2fe;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 12px 30px -10px rgba(49, 46, 129, 0.35);\n}\n\n.select-pick option {\n  padding: 8px 10px;\n  border-radius: 8px;\n  color: #1e1b4b;\n}\n\n.select-pick option:hover,\n.select-pick option:focus-visible {\n  background: #eef2ff;\n  outline: none;\n}\n\n.select-pick option:checked {\n  background: #4f46e5;\n  color: #fff;\n  font-weight: 600;\n}\n\n.select-pick option::checkmark {\n  content: \"✓\";\n}\n\n.select-pick select::picker-icon {\n  color: #4f46e5;\n  transition: rotate 0.2s ease;\n}\n\n.select-pick select:open::picker-icon {\n  rotate: 180deg;\n}",
      "features": [
        "customizable select (appearance: base-select)",
        "transitions",
        "box shadows",
        "CSS Grid",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "language-select",
      "name": "Language Select",
      "category": "forms",
      "tags": [
        "language",
        "locale",
        "select",
        "globe icon",
        "i18n",
        "footer"
      ],
      "description": "A compact language switcher: a native select with a globe icon on the left and a chevron on the right.",
      "url": "https://copy-css.com/snippets/language-select",
      "markdown": "https://copy-css.com/snippets/language-select.md",
      "html": "<label class=\"lang-select\">\n  <span class=\"lang-select-sr\">Language</span>\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\"/></svg>\n  <select name=\"lang\">\n    <option value=\"en\" selected>English</option>\n    <option value=\"de\">Deutsch</option>\n    <option value=\"es\">Español</option>\n    <option value=\"ja\">日本語</option>\n  </select>\n</label>",
      "css": ".lang-select {\n  position: relative;\n  display: inline-block;\n  font-family: system-ui, sans-serif;\n}\n\n.lang-select-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n\n.lang-select svg {\n  position: absolute;\n  top: 50%;\n  left: 12px;\n  width: 16px;\n  height: 16px;\n  fill: none;\n  stroke: #94a3b8;\n  stroke-width: 2;\n  transform: translateY(-50%);\n  pointer-events: none;\n}\n\n.lang-select select {\n  padding: 8px 32px 8px 36px;\n  border: 1px solid #334155;\n  border-radius: 999px;\n  background: #1e293b url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\") no-repeat right 12px center / 14px;\n  color: #e2e8f0;\n  font: 500 14px system-ui, sans-serif;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.lang-select select:hover {\n  border-color: #475569;\n}\n\n.lang-select select:focus-visible {\n  outline: 2px solid #38bdf8;\n  outline-offset: 2px;\n}\n\n.lang-select option {\n  background: #1e293b;\n  color: #e2e8f0;\n}",
      "features": [
        "transforms",
        "clip paths",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "range-slider-ticks",
      "name": "Range Slider with Ticks",
      "category": "forms",
      "tags": [
        "range",
        "slider",
        "ticks",
        "steps",
        "scale labels",
        "input"
      ],
      "description": "A stepped range slider that snaps to five values, with tick marks and labels drawn under the track.",
      "url": "https://copy-css.com/snippets/range-slider-ticks",
      "markdown": "https://copy-css.com/snippets/range-slider-ticks.md",
      "html": "<label class=\"range-ticks\">\n  <span>Team size</span>\n  <input type=\"range\" min=\"0\" max=\"4\" step=\"1\" value=\"2\">\n  <span class=\"range-ticks-scale\" aria-hidden=\"true\">\n    <span>1</span><span>5</span><span>10</span><span>25</span><span>50+</span>\n  </span>\n</label>",
      "css": ".range-ticks {\n  --thumb: 20px;\n  display: grid;\n  gap: 8px;\n  width: 260px;\n  color: #422006;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.range-ticks input {\n  width: 100%;\n  height: var(--thumb);\n  margin: 0;\n  background:\n    linear-gradient(#fde68a, #fde68a) center / calc(100% - var(--thumb)) 4px no-repeat,\n    repeating-linear-gradient(90deg, #ca8a04 0 2px, transparent 0 calc((100% - 2px) / 4)) calc(var(--thumb) / 2 - 1px) 100% / calc(100% - var(--thumb) + 2px) 6px no-repeat;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.range-ticks input::-webkit-slider-thumb {\n  width: var(--thumb);\n  height: var(--thumb);\n  border: 3px solid #ca8a04;\n  border-radius: 50%;\n  background: #fff;\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.range-ticks input::-moz-range-thumb {\n  box-sizing: border-box;\n  width: var(--thumb);\n  height: var(--thumb);\n  border: 3px solid #ca8a04;\n  border-radius: 50%;\n  background: #fff;\n}\n\n.range-ticks input:focus-visible {\n  outline: 2px solid #ca8a04;\n  outline-offset: 4px;\n}\n\n.range-ticks-scale {\n  display: flex;\n  justify-content: space-between;\n  margin: 0 calc(var(--thumb) / 2 - 8px);\n  color: #a16207;\n  font-size: 11px;\n  font-weight: 500;\n}\n\n.range-ticks-scale span {\n  width: 16px;\n  text-align: center;\n}",
      "features": [
        "linear gradients",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--thumb",
          "value": "20px"
        }
      ]
    },
    {
      "id": "filled-range-slider",
      "name": "Filled Range Slider",
      "category": "forms",
      "tags": [
        "range",
        "slider",
        "fill",
        "progress",
        "volume",
        "no javascript"
      ],
      "description": "A thick range slider that fills with color up to the thumb in every browser, using a clipped box-shadow trick.",
      "url": "https://copy-css.com/snippets/filled-range-slider",
      "markdown": "https://copy-css.com/snippets/filled-range-slider.md",
      "html": "<label class=\"range-fill\">\n  <span>Volume</span>\n  <input type=\"range\" min=\"0\" max=\"100\" value=\"65\">\n</label>",
      "css": ".range-fill {\n  --fill: #0284c7;\n  display: grid;\n  gap: 8px;\n  width: 240px;\n  color: #0c4a6e;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.range-fill input {\n  height: 16px;\n  margin: 0;\n  overflow: hidden;\n  border-radius: 999px;\n  background: #e0f2fe;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.range-fill input::-webkit-slider-thumb {\n  width: 16px;\n  height: 16px;\n  border: 3px solid var(--fill);\n  border-radius: 50%;\n  background: #fff;\n  box-shadow: -408px 0 0 400px var(--fill);\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.range-fill input::-moz-range-thumb {\n  box-sizing: border-box;\n  width: 16px;\n  height: 16px;\n  border: 3px solid var(--fill);\n  border-radius: 50%;\n  background: #fff;\n}\n\n.range-fill input::-moz-range-progress {\n  height: 16px;\n  background: var(--fill);\n}\n\n.range-fill input:focus-visible {\n  outline: 2px solid var(--fill);\n  outline-offset: 3px;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--fill",
          "value": "#0284c7"
        }
      ]
    },
    {
      "id": "vertical-range-slider",
      "name": "Vertical Range Slider",
      "category": "forms",
      "tags": [
        "range",
        "vertical",
        "writing-mode",
        "brightness",
        "control center",
        "slider"
      ],
      "description": "A tall, pill-shaped vertical slider like a phone brightness control, made with writing-mode on a range input.",
      "url": "https://copy-css.com/snippets/vertical-range-slider",
      "markdown": "https://copy-css.com/snippets/vertical-range-slider.md",
      "html": "<input class=\"range-tall\" type=\"range\" min=\"0\" max=\"100\" value=\"60\" aria-label=\"Brightness\">",
      "css": ".range-tall {\n  --fill: #f8fafc;\n  width: 56px;\n  height: 150px;\n  margin: 0;\n  overflow: hidden;\n  border-radius: 20px;\n  background: rgba(148, 163, 184, 0.35);\n  writing-mode: vertical-lr;\n  direction: rtl;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.range-tall::-webkit-slider-thumb {\n  width: 56px;\n  height: 2px;\n  background: var(--fill);\n  box-shadow: 0 300px 0 300px var(--fill);\n  -webkit-appearance: none;\n  appearance: none;\n}\n\n.range-tall::-moz-range-thumb {\n  width: 56px;\n  height: 2px;\n  border: 0;\n  border-radius: 0;\n  background: var(--fill);\n}\n\n.range-tall::-moz-range-progress {\n  width: 56px;\n  background: var(--fill);\n}\n\n.range-tall:focus-visible {\n  outline: 3px solid #38bdf8;\n  outline-offset: 3px;\n}",
      "features": [
        "box shadows",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--fill",
          "value": "#f8fafc"
        }
      ]
    },
    {
      "id": "price-range-slider",
      "name": "Price Range Slider",
      "category": "forms",
      "tags": [
        "dual range",
        "min max",
        "price filter",
        "two thumbs",
        "slider",
        "ecommerce"
      ],
      "description": "A dual-handle price filter built from two stacked range inputs where only the thumbs catch the pointer.",
      "url": "https://copy-css.com/snippets/price-range-slider",
      "markdown": "https://copy-css.com/snippets/price-range-slider.md",
      "html": "<fieldset class=\"price-range\">\n  <legend>Price</legend>\n  <div class=\"price-range-track\">\n    <input type=\"range\" min=\"0\" max=\"500\" step=\"10\" value=\"80\" aria-label=\"Minimum price\">\n    <input type=\"range\" min=\"0\" max=\"500\" step=\"10\" value=\"360\" aria-label=\"Maximum price\">\n  </div>\n  <p><span>$0</span><span>$500</span></p>\n</fieldset>",
      "css": ".price-range {\n  --thumb: 20px;\n  width: 260px;\n  margin: 0;\n  padding: 0;\n  border: 0;\n  color: #4a044e;\n  font-family: system-ui, sans-serif;\n}\n\n.price-range legend {\n  margin-bottom: 8px;\n  padding: 0;\n  font-size: 14px;\n  font-weight: 700;\n}\n\n.price-range-track {\n  position: relative;\n  height: var(--thumb);\n}\n\n.price-range-track::before {\n  content: \"\";\n  position: absolute;\n  top: 50%;\n  right: calc(var(--thumb) / 2);\n  left: calc(var(--thumb) / 2);\n  height: 4px;\n  border-radius: 999px;\n  background: #f5d0fe;\n  transform: translateY(-50%);\n}\n\n.price-range input {\n  position: absolute;\n  inset: 0;\n  width: 100%;\n  height: var(--thumb);\n  margin: 0;\n  background: none;\n  -webkit-appearance: none;\n  appearance: none;\n  pointer-events: none;\n}\n\n.price-range input::-webkit-slider-thumb {\n  width: var(--thumb);\n  height: var(--thumb);\n  border: 0;\n  border-radius: 50%;\n  background: #c026d3;\n  box-shadow: 0 0 0 4px #fff, 0 2px 6px 4px rgba(112, 26, 117, 0.25);\n  -webkit-appearance: none;\n  appearance: none;\n  pointer-events: auto;\n  cursor: grab;\n}\n\n.price-range input::-moz-range-thumb {\n  width: var(--thumb);\n  height: var(--thumb);\n  border: 0;\n  border-radius: 50%;\n  background: #c026d3;\n  box-shadow: 0 0 0 4px #fff, 0 2px 6px 4px rgba(112, 26, 117, 0.25);\n  pointer-events: auto;\n  cursor: grab;\n}\n\n.price-range input:focus-visible {\n  outline: none;\n}\n\n.price-range input:focus-visible::-webkit-slider-thumb {\n  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #c026d3;\n}\n\n.price-range input:focus-visible::-moz-range-thumb {\n  box-shadow: 0 0 0 4px #fff, 0 0 0 6px #c026d3;\n}\n\n.price-range p {\n  display: flex;\n  justify-content: space-between;\n  margin: 8px 0 0;\n  color: #a21caf;\n  font-size: 12px;\n}",
      "features": [
        "transforms",
        "box shadows",
        "Flexbox",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--thumb",
          "value": "20px"
        }
      ]
    },
    {
      "id": "search-recent-dropdown",
      "name": "Search with Recent Items",
      "category": "forms",
      "tags": [
        "search",
        "recent searches",
        "dropdown",
        "focus-within",
        "suggestions",
        "panel"
      ],
      "description": "A search field that opens a panel of recent searches while it has focus, using :focus-within and no JavaScript.",
      "url": "https://copy-css.com/snippets/search-recent-dropdown",
      "markdown": "https://copy-css.com/snippets/search-recent-dropdown.md",
      "html": "<form class=\"search-recent\" role=\"search\">\n  <label class=\"search-recent-sr\" for=\"search-recent-q\">Search</label>\n  <input id=\"search-recent-q\" type=\"search\" name=\"q\" placeholder=\"Search docs…\" autocomplete=\"off\">\n  <div class=\"search-recent-panel\">\n    <p>Recent</p>\n    <a href=\"#\">container queries</a>\n    <a href=\"#\">grid template areas</a>\n    <a href=\"#\">color-mix()</a>\n  </div>\n</form>",
      "css": ".search-recent {\n  position: relative;\n  width: 260px;\n  font-family: system-ui, sans-serif;\n}\n\n.search-recent-sr {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  overflow: hidden;\n  clip-path: inset(50%);\n  white-space: nowrap;\n}\n\n.search-recent input {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 11px 14px 11px 40px;\n  border: 1.5px solid #e2e8f0;\n  border-radius: 12px;\n  background: #fff url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E\") no-repeat 13px center / 17px;\n  color: #0f172a;\n  font: 15px system-ui, sans-serif;\n  outline: none;\n}\n\n.search-recent input:focus {\n  border-color: #6366f1;\n}\n\n.search-recent-panel {\n  position: absolute;\n  top: calc(100% + 6px);\n  right: 0;\n  left: 0;\n  z-index: 10;\n  display: grid;\n  padding: 6px;\n  border: 1px solid #e2e8f0;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.25);\n  opacity: 0;\n  visibility: hidden;\n  transform: translateY(-4px);\n  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;\n}\n\n.search-recent:focus-within .search-recent-panel {\n  opacity: 1;\n  visibility: visible;\n  transform: none;\n}\n\n.search-recent-panel p {\n  margin: 4px 8px;\n  color: #94a3b8;\n  font-size: 11px;\n  font-weight: 700;\n  text-transform: uppercase;\n}\n\n.search-recent-panel a {\n  padding: 7px 8px;\n  border-radius: 8px;\n  color: #334155;\n  font-size: 14px;\n  text-decoration: none;\n}\n\n.search-recent-panel a:hover,\n.search-recent-panel a:focus-visible {\n  background: #eef2ff;\n  color: #4338ca;\n  outline: none;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "clip paths",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "command-search-bar",
      "name": "Command Search Bar",
      "category": "forms",
      "tags": [
        "search",
        "command palette",
        "keyboard shortcut",
        "kbd",
        "cmd k",
        "docs"
      ],
      "description": "A docs-style search bar with a ⌘K shortcut hint that hides itself once you focus the field or start typing.",
      "url": "https://copy-css.com/snippets/command-search-bar",
      "markdown": "https://copy-css.com/snippets/command-search-bar.md",
      "html": "<form class=\"cmd-search\" role=\"search\">\n  <input type=\"search\" name=\"q\" placeholder=\"Search…\" aria-label=\"Search\" aria-keyshortcuts=\"Meta+K\">\n  <kbd aria-hidden=\"true\">⌘K</kbd>\n</form>",
      "css": ".cmd-search {\n  position: relative;\n  width: 240px;\n  font-family: system-ui, sans-serif;\n}\n\n.cmd-search input {\n  box-sizing: border-box;\n  width: 100%;\n  padding: 9px 52px 9px 36px;\n  border: 1px solid #3f3f46;\n  border-radius: 10px;\n  background: #27272a url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E\") no-repeat 11px center / 16px;\n  color: #fafafa;\n  font: 14px system-ui, sans-serif;\n  outline: none;\n  transition: border-color 0.2s ease, background-color 0.2s ease;\n}\n\n.cmd-search input::placeholder {\n  color: #a1a1aa;\n}\n\n.cmd-search input:hover {\n  border-color: #52525b;\n}\n\n.cmd-search input:focus-visible {\n  border-color: #a78bfa;\n  background-color: #18181b;\n  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);\n}\n\n.cmd-search kbd {\n  position: absolute;\n  top: 50%;\n  right: 8px;\n  padding: 2px 6px;\n  border: 1px solid #52525b;\n  border-radius: 6px;\n  color: #a1a1aa;\n  font: 600 11px system-ui, sans-serif;\n  pointer-events: none;\n  transform: translateY(-50%);\n  transition: opacity 0.15s ease;\n}\n\n.cmd-search input:focus ~ kbd,\n.cmd-search input:not(:placeholder-shown) ~ kbd {\n  opacity: 0;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "category-search-bar",
      "name": "Search with Category",
      "category": "forms",
      "tags": [
        "search",
        "category",
        "select",
        "marketplace",
        "input group",
        "button"
      ],
      "description": "A marketplace search bar that joins a category select, a search field and a search button into one pill.",
      "url": "https://copy-css.com/snippets/category-search-bar",
      "markdown": "https://copy-css.com/snippets/category-search-bar.md",
      "html": "<form class=\"cat-search\" role=\"search\">\n  <select name=\"cat\" aria-label=\"Category\">\n    <option>All</option>\n    <option>Books</option>\n    <option>Music</option>\n  </select>\n  <input type=\"search\" name=\"q\" placeholder=\"Search products\" aria-label=\"Search products\">\n  <button type=\"submit\" aria-label=\"Search\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/></svg>\n  </button>\n</form>",
      "css": ".cat-search {\n  display: flex;\n  width: 100%;\n  max-width: 320px;\n  overflow: hidden;\n  border: 2px solid #f97316;\n  border-radius: 12px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.cat-search:focus-within {\n  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);\n}\n\n.cat-search select {\n  padding: 0 24px 0 12px;\n  border: 0;\n  border-right: 1px solid #fed7aa;\n  background: #fff7ed url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a3412' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E\") no-repeat right 8px center / 10px;\n  color: #7c2d12;\n  font: 600 13px system-ui, sans-serif;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n}\n\n.cat-search input {\n  flex: 1;\n  min-width: 0;\n  padding: 10px 12px;\n  border: 0;\n  background: transparent;\n  color: #1c1917;\n  font: 15px system-ui, sans-serif;\n}\n\n.cat-search button {\n  display: grid;\n  place-items: center;\n  width: 46px;\n  border: 0;\n  background: #f97316;\n  color: #fff;\n  cursor: pointer;\n}\n\n.cat-search button:hover {\n  background: #ea580c;\n}\n\n.cat-search svg {\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2.5;\n  stroke-linecap: round;\n}\n\n.cat-search select:focus-visible,\n.cat-search input:focus-visible,\n.cat-search button:focus-visible {\n  outline: 2px solid #9a3412;\n  outline-offset: -3px;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "styled-file-input",
      "name": "Styled File Input",
      "category": "forms",
      "tags": [
        "file input",
        "upload",
        "file-selector-button",
        "attachment",
        "browse",
        "form"
      ],
      "description": "A native file input restyled with ::file-selector-button, keeping the browser's own file name display.",
      "url": "https://copy-css.com/snippets/styled-file-input",
      "markdown": "https://copy-css.com/snippets/styled-file-input.md",
      "html": "<label class=\"file-pick\">\n  <span>Attach a file</span>\n  <input type=\"file\" name=\"attachment\" accept=\".pdf,.png,.jpg\">\n  <small>PDF, PNG or JPG, up to 10 MB</small>\n</label>",
      "css": ".file-pick {\n  display: grid;\n  gap: 6px;\n  width: 100%;\n  max-width: 280px;\n  color: #0f172a;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.file-pick input {\n  min-width: 0;\n  padding: 6px;\n  border: 1.5px dashed #cbd5e1;\n  border-radius: 10px;\n  background: #fff;\n  color: #64748b;\n  font: 13px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.file-pick input::file-selector-button {\n  margin-right: 10px;\n  padding: 7px 12px;\n  border: 0;\n  border-radius: 7px;\n  background: #0f172a;\n  color: #fff;\n  font: 600 13px system-ui, sans-serif;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.file-pick input:hover::file-selector-button {\n  background: #334155;\n}\n\n.file-pick input:focus-visible {\n  border-color: #0f172a;\n  outline: 2px solid #0f172a;\n  outline-offset: 2px;\n}\n\n.file-pick small {\n  color: #64748b;\n  font-size: 12px;\n  font-weight: 400;\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "avatar-upload",
      "name": "Avatar Upload",
      "category": "forms",
      "tags": [
        "avatar",
        "profile photo",
        "upload",
        "file input",
        "camera",
        "circle"
      ],
      "description": "A round profile-photo picker with a camera badge, where the whole circle is a label for a hidden file input.",
      "url": "https://copy-css.com/snippets/avatar-upload",
      "markdown": "https://copy-css.com/snippets/avatar-upload.md",
      "html": "<label class=\"avatar-up\">\n  <input type=\"file\" name=\"avatar\" accept=\"image/*\">\n  <span class=\"avatar-up-photo\" aria-hidden=\"true\">\n    <svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"9\" r=\"4\"/><path d=\"M4 21a8 8 0 0 1 16 0\"/></svg>\n  </span>\n  <span class=\"avatar-up-badge\" aria-hidden=\"true\">\n    <svg viewBox=\"0 0 24 24\"><path d=\"M4 8h3l2-3h6l2 3h3v11H4z\"/><circle cx=\"12\" cy=\"13\" r=\"3.5\"/></svg>\n  </span>\n  <span class=\"avatar-up-text\">Upload photo</span>\n</label>",
      "css": ".avatar-up {\n  position: relative;\n  display: grid;\n  justify-items: center;\n  gap: 8px;\n  color: #0f766e;\n  font: 600 13px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.avatar-up input {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  opacity: 0;\n}\n\n.avatar-up-photo {\n  display: grid;\n  place-items: end center;\n  width: 88px;\n  height: 88px;\n  overflow: hidden;\n  border: 2px dashed #5eead4;\n  border-radius: 50%;\n  background: #ccfbf1;\n  transition: border-color 0.2s ease;\n}\n\n.avatar-up-photo svg {\n  width: 70px;\n  height: 70px;\n  fill: #99f6e4;\n  stroke: #5eead4;\n  stroke-width: 1;\n}\n\n.avatar-up-badge {\n  position: absolute;\n  top: 60px;\n  left: calc(50% + 18px);\n  display: grid;\n  place-items: center;\n  width: 30px;\n  height: 30px;\n  border: 3px solid #f0fdfa;\n  border-radius: 50%;\n  background: #0d9488;\n  transition: transform 0.2s ease;\n}\n\n.avatar-up-badge svg {\n  width: 15px;\n  height: 15px;\n  fill: none;\n  stroke: #fff;\n  stroke-width: 2;\n  stroke-linejoin: round;\n}\n\n.avatar-up:hover .avatar-up-photo {\n  border-color: #0d9488;\n}\n\n.avatar-up:hover .avatar-up-badge {\n  transform: scale(1.1);\n}\n\n.avatar-up:has(:focus-visible) .avatar-up-photo {\n  outline: 3px solid #0d9488;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .avatar-up-badge {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "the :has() selector",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "css-tabs",
      "name": "Pure CSS Tabs",
      "category": "navigation",
      "tags": [
        "tabs",
        "radio",
        "has",
        "panels",
        "no javascript"
      ],
      "description": "Working tabs with panels and no JavaScript, powered by radio buttons and :has().",
      "url": "https://copy-css.com/snippets/css-tabs",
      "markdown": "https://copy-css.com/snippets/css-tabs.md",
      "html": "<div class=\"tabs\">\n  <div class=\"tab-list\">\n    <label><input type=\"radio\" name=\"tab\" checked>Overview</label>\n    <label><input type=\"radio\" name=\"tab\">Specs</label>\n    <label><input type=\"radio\" name=\"tab\">Reviews</label>\n  </div>\n  <div class=\"tab-panels\">\n    <div>A quick overview of the product.</div>\n    <div>Dimensions, materials and more.</div>\n    <div>4.8 out of 5 from 120 reviews.</div>\n  </div>\n</div>",
      "css": ".tabs {\n  width: 280px;\n  font: 14px/1.5 system-ui, sans-serif;\n}\n\n.tab-list {\n  display: flex;\n  gap: 4px;\n  border-bottom: 1px solid #e5e7eb;\n}\n\n.tab-list label {\n  margin-bottom: -1px;\n  padding: 10px 14px;\n  color: #6b7280;\n  font-weight: 600;\n  cursor: pointer;\n}\n\n.tab-list input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.tab-list label:has(input:checked) {\n  color: #111;\n  box-shadow: inset 0 -2px 0 #6366f1;\n}\n\n.tab-list label:has(input:focus-visible) {\n  border-radius: 6px;\n  outline: 2px solid #6366f1;\n}\n\n.tab-panels > div {\n  display: none;\n  padding: 14px 2px;\n  color: #374151;\n}\n\n.tabs:has(label:nth-child(1) input:checked) .tab-panels > :nth-child(1),\n.tabs:has(label:nth-child(2) input:checked) .tab-panels > :nth-child(2),\n.tabs:has(label:nth-child(3) input:checked) .tab-panels > :nth-child(3) {\n  display: block;\n}",
      "features": [
        "box shadows",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "breadcrumbs",
      "name": "Breadcrumbs",
      "category": "navigation",
      "tags": [
        "breadcrumbs",
        "navigation",
        "seo",
        "list",
        "separator"
      ],
      "description": "Accessible breadcrumb navigation with CSS-generated separators.",
      "url": "https://copy-css.com/snippets/breadcrumbs",
      "markdown": "https://copy-css.com/snippets/breadcrumbs.md",
      "html": "<nav class=\"breadcrumbs\" aria-label=\"Breadcrumb\">\n  <ol>\n    <li><a href=\"#\">Home</a></li>\n    <li><a href=\"#\">Docs</a></li>\n    <li aria-current=\"page\">Buttons</li>\n  </ol>\n</nav>",
      "css": ".breadcrumbs ol {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  gap: 8px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  font: 500 15px system-ui, sans-serif;\n}\n\n.breadcrumbs li + li::before {\n  content: \"/\";\n  margin-right: 8px;\n  color: #cbd5e1;\n}\n\n.breadcrumbs a {\n  color: #64748b;\n  text-decoration: none;\n}\n\n.breadcrumbs a:hover {\n  color: #111;\n  text-decoration: underline;\n}\n\n.breadcrumbs [aria-current] {\n  color: #111;\n  font-weight: 600;\n}",
      "features": [
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "pagination",
      "name": "Pagination",
      "category": "navigation",
      "tags": [
        "pagination",
        "pages",
        "navigation",
        "buttons"
      ],
      "description": "Rounded pagination buttons with a clear current page and ellipsis.",
      "url": "https://copy-css.com/snippets/pagination",
      "markdown": "https://copy-css.com/snippets/pagination.md",
      "html": "<nav class=\"pagination\" aria-label=\"Pagination\">\n  <a href=\"#\" aria-label=\"Previous page\">‹</a>\n  <a href=\"#\">1</a>\n  <a href=\"#\" aria-current=\"page\">2</a>\n  <span>…</span>\n  <a href=\"#\">9</a>\n  <a href=\"#\" aria-label=\"Next page\">›</a>\n</nav>",
      "css": ".pagination {\n  display: flex;\n  gap: 6px;\n  font: 600 14px system-ui, sans-serif;\n}\n\n.pagination a,\n.pagination span {\n  display: grid;\n  place-items: center;\n  box-sizing: border-box;\n  min-width: 36px;\n  height: 36px;\n  padding: 0 6px;\n  border-radius: 10px;\n  color: #374151;\n  text-decoration: none;\n}\n\n.pagination a {\n  border: 1px solid #e5e7eb;\n  background: #fff;\n  transition: border-color 0.15s ease;\n}\n\n.pagination a:hover {\n  border-color: #111;\n}\n\n.pagination [aria-current=\"page\"] {\n  border-color: #111;\n  background: #111;\n  color: #fff;\n}\n\n.pagination span {\n  color: #9ca3af;\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "dropdown-menu",
      "name": "Dropdown Menu",
      "category": "navigation",
      "tags": [
        "dropdown",
        "menu",
        "hover",
        "focus-within",
        "navigation"
      ],
      "description": "A dropdown that opens on hover and on keyboard focus. No JavaScript.",
      "url": "https://copy-css.com/snippets/dropdown-menu",
      "markdown": "https://copy-css.com/snippets/dropdown-menu.md",
      "html": "<div class=\"dropdown\">\n  <button class=\"dropdown-toggle\">Account ▾</button>\n  <ul class=\"dropdown-menu\">\n    <li><a href=\"#\">Profile</a></li>\n    <li><a href=\"#\">Settings</a></li>\n    <li><a href=\"#\">Sign out</a></li>\n  </ul>\n</div>",
      "css": ".dropdown {\n  position: relative;\n  display: inline-block;\n  font: 500 15px system-ui, sans-serif;\n}\n\n.dropdown-toggle {\n  padding: 10px 16px;\n  border: 1px solid #e5e7eb;\n  border-radius: 10px;\n  background: #fff;\n  color: #111;\n  font: inherit;\n  cursor: pointer;\n}\n\n.dropdown-menu {\n  position: absolute;\n  top: calc(100% + 8px);\n  left: 0;\n  min-width: 170px;\n  margin: 0;\n  padding: 6px;\n  list-style: none;\n  border: 1px solid #e5e7eb;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.18);\n  opacity: 0;\n  visibility: hidden;\n  transform: translateY(-6px);\n  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;\n}\n\n/* Invisible bridge so the menu stays open while the pointer crosses the gap */\n.dropdown-menu::before {\n  content: \"\";\n  position: absolute;\n  top: -10px;\n  right: 0;\n  left: 0;\n  height: 10px;\n}\n\n.dropdown:hover .dropdown-menu,\n.dropdown:focus-within .dropdown-menu {\n  opacity: 1;\n  visibility: visible;\n  transform: none;\n}\n\n.dropdown-menu a {\n  display: block;\n  padding: 8px 12px;\n  border-radius: 8px;\n  color: #111;\n  text-decoration: none;\n}\n\n.dropdown-menu a:hover {\n  background: #f3f4f6;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "underline-nav",
      "name": "Underline Nav Links",
      "category": "navigation",
      "tags": [
        "nav",
        "links",
        "underline",
        "active",
        "header"
      ],
      "description": "Header navigation links with an underline that grows in on hover and marks the active page.",
      "url": "https://copy-css.com/snippets/underline-nav",
      "markdown": "https://copy-css.com/snippets/underline-nav.md",
      "html": "<nav class=\"nav-links\">\n  <a href=\"#\" aria-current=\"page\">Home</a>\n  <a href=\"#\">Pricing</a>\n  <a href=\"#\">Blog</a>\n</nav>",
      "css": ".nav-links {\n  display: flex;\n  gap: 22px;\n  font: 600 16px system-ui, sans-serif;\n}\n\n.nav-links a {\n  position: relative;\n  padding: 6px 0;\n  color: #64748b;\n  text-decoration: none;\n  transition: color 0.2s ease;\n}\n\n.nav-links a::after {\n  content: \"\";\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  height: 2px;\n  border-radius: 2px;\n  background: #6366f1;\n  transform: scaleX(0);\n  transition: transform 0.25s ease;\n}\n\n.nav-links a:hover,\n.nav-links a[aria-current=\"page\"] {\n  color: #111;\n}\n\n.nav-links a:hover::after,\n.nav-links a[aria-current=\"page\"]::after {\n  transform: scaleX(1);\n}",
      "features": [
        "transitions",
        "transforms",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "mobile-tab-bar",
      "name": "Mobile Tab Bar",
      "category": "navigation",
      "tags": [
        "mobile",
        "tab bar",
        "bottom navigation",
        "icons",
        "app"
      ],
      "description": "An app-style bottom navigation bar with icons, labels and an active pill.",
      "url": "https://copy-css.com/snippets/mobile-tab-bar",
      "markdown": "https://copy-css.com/snippets/mobile-tab-bar.md",
      "html": "<nav class=\"tab-bar\">\n  <a href=\"#\" aria-current=\"page\"><svg viewBox=\"0 0 24 24\"><path d=\"M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z\"/></svg>Home</a>\n  <a href=\"#\"><svg viewBox=\"0 0 24 24\"><circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/></svg>Search</a>\n  <a href=\"#\"><svg viewBox=\"0 0 24 24\"><path d=\"M19.5 12.6 12 20l-7.5-7.4A4.9 4.9 0 0 1 12 6a4.9 4.9 0 0 1 7.5 6.6z\"/></svg>Saved</a>\n  <a href=\"#\"><svg viewBox=\"0 0 24 24\"><circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21a8 8 0 0 1 16 0\"/></svg>Profile</a>\n</nav>",
      "css": ".tab-bar {\n  display: flex;\n  width: 280px;\n  padding: 8px;\n  border-radius: 20px;\n  background: #fff;\n  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);\n  font: 600 11px system-ui, sans-serif;\n}\n\n.tab-bar a {\n  display: flex;\n  flex: 1;\n  flex-direction: column;\n  align-items: center;\n  gap: 4px;\n  padding: 8px 0;\n  border-radius: 14px;\n  color: #94a3b8;\n  text-decoration: none;\n  transition: background 0.2s ease, color 0.2s ease;\n}\n\n.tab-bar svg {\n  width: 22px;\n  height: 22px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.tab-bar a:hover {\n  color: #4f46e5;\n}\n\n.tab-bar a[aria-current=\"page\"] {\n  background: #eef2ff;\n  color: #4f46e5;\n}",
      "features": [
        "transitions",
        "box shadows",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "stepper",
      "name": "Progress Stepper",
      "category": "navigation",
      "tags": [
        "steps",
        "wizard",
        "checkout",
        "progress",
        "counter"
      ],
      "description": "A numbered step indicator for checkouts and wizards, with done, current and upcoming states.",
      "url": "https://copy-css.com/snippets/stepper",
      "markdown": "https://copy-css.com/snippets/stepper.md",
      "html": "<ol class=\"stepper\">\n  <li class=\"done\">Cart</li>\n  <li aria-current=\"step\">Shipping</li>\n  <li>Payment</li>\n</ol>",
      "css": ".stepper {\n  display: flex;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  counter-reset: step;\n  font: 600 13px/1 system-ui, sans-serif;\n}\n\n.stepper li {\n  position: relative;\n  display: grid;\n  justify-items: center;\n  gap: 8px;\n  width: 90px;\n  color: #94a3b8;\n  counter-increment: step;\n}\n\n/* Number bubble */\n.stepper li::before {\n  content: counter(step);\n  z-index: 1;\n  display: grid;\n  place-items: center;\n  width: 30px;\n  height: 30px;\n  border: 2px solid #cbd5e1;\n  border-radius: 50%;\n  background: #fff;\n}\n\n/* Connector line to the previous step */\n.stepper li + li::after {\n  content: \"\";\n  position: absolute;\n  top: 15px;\n  right: 50%;\n  width: 100%;\n  height: 2px;\n  background: #e2e8f0;\n}\n\n.stepper .done,\n.stepper [aria-current] {\n  color: #0f172a;\n}\n\n.stepper .done::before {\n  content: \"\\2713\";\n  border-color: #10b981;\n  background: #10b981;\n  color: #fff;\n}\n\n.stepper [aria-current]::before {\n  border-color: #10b981;\n  color: #10b981;\n}\n\n.stepper [aria-current]::after {\n  background: #10b981;\n}",
      "features": [
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "vertical-nav",
      "name": "Vertical Side Nav",
      "category": "navigation",
      "tags": [
        "sidebar",
        "menu",
        "vertical",
        "active",
        "dashboard"
      ],
      "description": "A dashboard side menu with an accent bar on the active item.",
      "url": "https://copy-css.com/snippets/vertical-nav",
      "markdown": "https://copy-css.com/snippets/vertical-nav.md",
      "html": "<nav class=\"side-nav\" aria-label=\"Main\">\n  <a href=\"#\" aria-current=\"page\">Dashboard</a>\n  <a href=\"#\">Projects</a>\n  <a href=\"#\">Team</a>\n  <a href=\"#\">Settings</a>\n</nav>",
      "css": ".side-nav {\n  display: grid;\n  gap: 2px;\n  width: 180px;\n  padding: 8px;\n  border-radius: 14px;\n  background: #fff;\n  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);\n  font: 500 14px/1 system-ui, sans-serif;\n}\n\n.side-nav a {\n  position: relative;\n  padding: 10px 14px;\n  border-radius: 8px;\n  color: #475569;\n  text-decoration: none;\n  transition: background 0.15s ease, color 0.15s ease;\n}\n\n.side-nav a:hover {\n  background: #f1f5f9;\n  color: #0f172a;\n}\n\n.side-nav a[aria-current=\"page\"] {\n  background: #eef2ff;\n  color: #4338ca;\n  font-weight: 600;\n}\n\n.side-nav a[aria-current=\"page\"]::before {\n  content: \"\";\n  position: absolute;\n  top: 8px;\n  bottom: 8px;\n  left: 0;\n  width: 3px;\n  border-radius: 0 3px 3px 0;\n  background: #4f46e5;\n}",
      "features": [
        "transitions",
        "box shadows",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "pill-nav",
      "name": "Pill Nav",
      "category": "navigation",
      "tags": [
        "pill",
        "nav",
        "links",
        "rounded",
        "active"
      ],
      "description": "A rounded navigation bar where the current link sits in a solid pill.",
      "url": "https://copy-css.com/snippets/pill-nav",
      "markdown": "https://copy-css.com/snippets/pill-nav.md",
      "html": "<nav class=\"pill-nav\" aria-label=\"Main\">\n  <a href=\"#\" aria-current=\"page\">Home</a>\n  <a href=\"#\">Work</a>\n  <a href=\"#\">About</a>\n  <a href=\"#\">Contact</a>\n</nav>",
      "css": ".pill-nav {\n  display: inline-flex;\n  gap: 4px;\n  padding: 5px;\n  border: 1px solid rgba(255, 255, 255, 0.1);\n  border-radius: 999px;\n  background: #27272a;\n  font: 500 14px/1 system-ui, sans-serif;\n}\n\n.pill-nav a {\n  padding: 9px 16px;\n  border-radius: 999px;\n  color: #a1a1aa;\n  text-decoration: none;\n  transition: color 0.15s ease, background 0.15s ease;\n}\n\n.pill-nav a:hover {\n  color: #fafafa;\n}\n\n.pill-nav a[aria-current=\"page\"] {\n  background: #fafafa;\n  color: #18181b;\n}",
      "features": [
        "transitions",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "back-to-top",
      "name": "Back to Top Button",
      "category": "navigation",
      "tags": [
        "scroll",
        "top",
        "fixed",
        "smooth scroll",
        "anchor"
      ],
      "description": "A floating round button that smoothly scrolls the page back to the top.",
      "url": "https://copy-css.com/snippets/back-to-top",
      "markdown": "https://copy-css.com/snippets/back-to-top.md",
      "html": "<a class=\"to-top\" href=\"#top\" aria-label=\"Back to top\">\n  <svg viewBox=\"0 0 24 24\" width=\"20\" height=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M12 19V5M5 12l7-7 7 7\"/></svg>\n</a>",
      "css": "/* Smooth scrolling for anchor links (respects reduced motion) */\n@media (prefers-reduced-motion: no-preference) {\n  html { scroll-behavior: smooth; }\n}\n\n.to-top {\n  position: fixed;\n  right: 24px;\n  bottom: 24px;\n  display: grid;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  border-radius: 50%;\n  background: #0d9488;\n  box-shadow: 0 8px 20px -6px rgba(13, 148, 136, 0.6);\n  color: #fff;\n  transition: transform 0.2s ease, background 0.2s ease;\n}\n\n.to-top:hover {\n  background: #0f766e;\n  transform: translateY(-3px);\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "table-of-contents",
      "name": "Table of Contents",
      "category": "navigation",
      "tags": [
        "toc",
        "contents",
        "counters",
        "docs",
        "sidebar",
        "numbered"
      ],
      "description": "A docs-style \"On this page\" list with automatic 1, 1.1, 1.2 numbering from CSS counters.",
      "url": "https://copy-css.com/snippets/table-of-contents",
      "markdown": "https://copy-css.com/snippets/table-of-contents.md",
      "html": "<nav class=\"toc\" aria-label=\"On this page\">\n  <ol>\n    <li><a href=\"#\">Getting started</a>\n      <ol>\n        <li><a href=\"#\" aria-current=\"true\">Install</a></li>\n        <li><a href=\"#\">Configure</a></li>\n      </ol>\n    </li>\n    <li><a href=\"#\">Usage</a></li>\n    <li><a href=\"#\">FAQ</a></li>\n  </ol>\n</nav>",
      "css": ".toc {\n  font: 14px/1.4 system-ui, sans-serif;\n}\n\n.toc ol {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  counter-reset: toc;\n}\n\n.toc li {\n  counter-increment: toc;\n}\n\n.toc a {\n  display: flex;\n  gap: 8px;\n  padding: 5px 14px;\n  border-left: 2px solid #e4e4e7;\n  color: #52525b;\n  text-decoration: none;\n  transition: color 0.2s ease, border-color 0.2s ease;\n}\n\n/* 1, 1.1, 1.2, 2 ... */\n.toc a::before {\n  content: counters(toc, \".\");\n  color: #a1a1aa;\n  font-variant-numeric: tabular-nums;\n}\n\n.toc ol ol a {\n  padding-left: 28px;\n}\n\n.toc a:hover {\n  color: #18181b;\n}\n\n.toc a[aria-current] {\n  border-color: #2563eb;\n  color: #2563eb;\n  font-weight: 600;\n}\n\n.toc a[aria-current]::before {\n  color: inherit;\n}",
      "features": [
        "transitions",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "sliding-indicator-nav",
      "name": "Sliding Hover Nav",
      "category": "navigation",
      "tags": [
        "nav",
        "has",
        "indicator",
        "hover",
        "slide",
        "highlight"
      ],
      "description": "Nav links with one highlight that slides to whichever link you hover, using :has(). No JavaScript.",
      "url": "https://copy-css.com/snippets/sliding-indicator-nav",
      "markdown": "https://copy-css.com/snippets/sliding-indicator-nav.md",
      "html": "<nav class=\"slide-nav\" aria-label=\"Main\">\n  <a href=\"#\" aria-current=\"page\">Home</a>\n  <a href=\"#\">Work</a>\n  <a href=\"#\">Blog</a>\n  <a href=\"#\">Shop</a>\n</nav>",
      "css": ".slide-nav {\n  --n: 4; /* number of links */\n  --i: 0; /* index of the highlighted link */\n  position: relative;\n  display: grid;\n  grid-auto-columns: 1fr;\n  grid-auto-flow: column;\n  padding: 4px;\n  border: 1px solid #e0e7ff;\n  border-radius: 12px;\n  font: 600 14px system-ui, sans-serif;\n}\n\n.slide-nav::before {\n  content: \"\";\n  position: absolute;\n  top: 4px;\n  bottom: 4px;\n  left: 4px;\n  width: calc((100% - 8px) / var(--n));\n  border-radius: 8px;\n  background: #e0e7ff;\n  transform: translateX(calc(var(--i) * 100%));\n  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.4, 1);\n}\n\n.slide-nav a {\n  position: relative;\n  padding: 9px 16px;\n  color: #64748b;\n  text-align: center;\n  text-decoration: none;\n  transition: color 0.2s ease;\n}\n\n.slide-nav a:hover,\n.slide-nav a:focus-visible,\n.slide-nav:not(:hover) a[aria-current] {\n  color: #3730a3;\n}\n\n.slide-nav a:focus-visible {\n  outline: 2px solid #6366f1;\n  border-radius: 8px;\n}\n\n/* Rest on the current page... */\n.slide-nav:has(> :nth-child(2)[aria-current]) { --i: 1; }\n.slide-nav:has(> :nth-child(3)[aria-current]) { --i: 2; }\n.slide-nav:has(> :nth-child(4)[aria-current]) { --i: 3; }\n\n/* ...and follow the pointer or keyboard focus */\n.slide-nav:has(> :nth-child(1):is(:hover, :focus-visible)) { --i: 0; }\n.slide-nav:has(> :nth-child(2):is(:hover, :focus-visible)) { --i: 1; }\n.slide-nav:has(> :nth-child(3):is(:hover, :focus-visible)) { --i: 2; }\n.slide-nav:has(> :nth-child(4):is(:hover, :focus-visible)) { --i: 3; }",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "the :has() selector",
        "keyboard focus styles",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--n",
          "value": "4"
        },
        {
          "name": "--i",
          "value": "0"
        }
      ]
    },
    {
      "id": "carousel-dots",
      "name": "Carousel Dots",
      "category": "navigation",
      "tags": [
        "dots",
        "carousel",
        "slider",
        "indicator",
        "pagination",
        "radio"
      ],
      "description": "Slide indicator dots where the active one stretches into a pill. Built on radio buttons, so it works with the keyboard.",
      "url": "https://copy-css.com/snippets/carousel-dots",
      "markdown": "https://copy-css.com/snippets/carousel-dots.md",
      "html": "<div class=\"carousel-dots\" role=\"radiogroup\" aria-label=\"Slides\">\n  <input type=\"radio\" name=\"slide\" aria-label=\"Slide 1\" checked>\n  <input type=\"radio\" name=\"slide\" aria-label=\"Slide 2\">\n  <input type=\"radio\" name=\"slide\" aria-label=\"Slide 3\">\n  <input type=\"radio\" name=\"slide\" aria-label=\"Slide 4\">\n</div>",
      "css": ".carousel-dots {\n  display: flex;\n  gap: 8px;\n  padding: 10px 12px;\n  border-radius: 999px;\n  background: #f1f5f9;\n}\n\n.carousel-dots input {\n  width: 10px;\n  height: 10px;\n  margin: 0;\n  border-radius: 999px;\n  background: #cbd5e1;\n  -webkit-appearance: none;\n  appearance: none;\n  cursor: pointer;\n  transition: width 0.3s ease, background 0.3s ease;\n}\n\n.carousel-dots input:hover {\n  background: #94a3b8;\n}\n\n.carousel-dots input:checked {\n  width: 28px;\n  background: #0f172a;\n}\n\n.carousel-dots input:focus-visible {\n  outline: 2px solid #0ea5e9;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "Flexbox",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "offcanvas-menu",
      "name": "Off-canvas Menu",
      "category": "navigation",
      "tags": [
        "drawer",
        "sidebar",
        "off-canvas",
        "details",
        "mobile menu",
        "slide"
      ],
      "description": "A slide-in drawer menu with no JavaScript, built on <details> so it is keyboard and screen reader friendly.",
      "url": "https://copy-css.com/snippets/offcanvas-menu",
      "markdown": "https://copy-css.com/snippets/offcanvas-menu.md",
      "html": "<details class=\"offcanvas\">\n  <summary aria-label=\"Menu\"></summary>\n  <nav>\n    <a href=\"#\">Home</a>\n    <a href=\"#\">Projects</a>\n    <a href=\"#\">About</a>\n    <a href=\"#\">Contact</a>\n  </nav>\n</details>",
      "css": ".offcanvas summary {\n  position: relative;\n  z-index: 2;\n  display: grid;\n  place-items: center;\n  width: 44px;\n  height: 44px;\n  border-radius: 12px;\n  background: #0f172a;\n  color: #fff;\n  list-style: none;\n  cursor: pointer;\n}\n\n.offcanvas summary::-webkit-details-marker {\n  display: none;\n}\n\n/* Hamburger: three lines that fold into an X when open */\n.offcanvas summary::before,\n.offcanvas summary::after {\n  content: \"\";\n  grid-area: 1 / 1;\n  width: 18px;\n  height: 2px;\n  border-radius: 2px;\n  background: currentColor;\n  transition: transform 0.25s ease, box-shadow 0.25s ease;\n}\n\n.offcanvas summary::before {\n  box-shadow: 0 -6px currentColor, 0 6px currentColor;\n}\n\n.offcanvas[open] summary::before {\n  box-shadow: 0 0 transparent, 0 0 transparent;\n  transform: rotate(45deg);\n}\n\n.offcanvas[open] summary::after {\n  transform: rotate(-45deg);\n}\n\n.offcanvas summary:focus-visible {\n  outline: 2px solid #38bdf8;\n  outline-offset: 2px;\n}\n\n.offcanvas nav {\n  position: fixed;\n  inset: 0 auto 0 0;\n  z-index: 1;\n  display: grid;\n  align-content: start;\n  gap: 4px;\n  width: min(260px, 80vw);\n  padding: 72px 12px 12px;\n  background: #fff;\n  box-shadow: 8px 0 32px -12px rgba(0, 0, 0, 0.35);\n  animation: offcanvas-in 0.3s cubic-bezier(0.3, 0.7, 0.4, 1);\n}\n\n.offcanvas nav a {\n  padding: 10px 12px;\n  border-radius: 8px;\n  color: #334155;\n  font: 500 15px system-ui, sans-serif;\n  text-decoration: none;\n}\n\n.offcanvas nav a:hover {\n  background: #f1f5f9;\n  color: #0f172a;\n}\n\n@keyframes offcanvas-in {\n  from { transform: translateX(-100%); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .offcanvas nav {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "skip-link",
      "name": "Skip to Content Link",
      "category": "navigation",
      "tags": [
        "skip link",
        "accessibility",
        "a11y",
        "keyboard",
        "focus",
        "wcag"
      ],
      "description": "A “Skip to content” link that stays hidden until a keyboard user tabs to it. The preview loops it so you can see it.",
      "url": "https://copy-css.com/snippets/skip-link",
      "markdown": "https://copy-css.com/snippets/skip-link.md",
      "html": "<a class=\"skip-link\" href=\"#main\">Skip to content</a>",
      "css": "/* Put it first inside <body>, and give your main content id=\"main\" */\n.skip-link {\n  position: absolute;\n  top: 12px;\n  left: 12px;\n  z-index: 100;\n  padding: 10px 16px;\n  border-radius: 8px;\n  background: #0f172a;\n  color: #fff;\n  font: 600 14px system-ui, sans-serif;\n  text-decoration: none;\n  transform: translateY(-150%);\n  transition: transform 0.2s ease;\n}\n\n.skip-link:focus {\n  transform: none;\n  outline: 2px solid #38bdf8;\n  outline-offset: 2px;\n}",
      "features": [
        "transitions",
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "responsive-navbar",
      "name": "Responsive Navbar",
      "category": "navigation",
      "tags": [
        "hamburger",
        "mobile menu",
        "header",
        "checkbox",
        "container query"
      ],
      "description": "A header nav that collapses into a hamburger menu on narrow widths, using a checkbox and a container query.",
      "url": "https://copy-css.com/snippets/responsive-navbar",
      "markdown": "https://copy-css.com/snippets/responsive-navbar.md",
      "html": "<div class=\"rnav\">\n  <header class=\"rnav-bar\">\n    <a class=\"rnav-logo\" href=\"#\">Brand</a>\n    <input class=\"rnav-toggle\" id=\"rnav-toggle\" type=\"checkbox\" aria-label=\"Menu\">\n    <label class=\"rnav-burger\" for=\"rnav-toggle\" aria-hidden=\"true\"><span></span></label>\n    <nav class=\"rnav-links\" aria-label=\"Main\">\n      <a href=\"#\" aria-current=\"page\">Home</a>\n      <a href=\"#\">Pricing</a>\n      <a href=\"#\">Blog</a>\n      <a href=\"#\">Contact</a>\n    </nav>\n  </header>\n</div>",
      "css": ".rnav {\n  container-type: inline-size;\n  font: 500 15px system-ui, sans-serif;\n}\n\n.rnav-bar {\n  position: relative;\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 8px 24px;\n  padding: 10px 12px 10px 18px;\n  border-radius: 14px;\n  background: #ffffff;\n  box-shadow: 0 1px 3px #0f172a1f;\n}\n\n.rnav-logo {\n  color: #0f172a;\n  font-weight: 800;\n  text-decoration: none;\n}\n\n/* Hidden visually, still reachable with Tab and toggled with Space */\n.rnav-toggle {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.rnav-burger {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  border-radius: 10px;\n  cursor: pointer;\n}\n\n.rnav-burger span,\n.rnav-burger span::before,\n.rnav-burger span::after {\n  display: block;\n  width: 18px;\n  height: 2px;\n  border-radius: 2px;\n  background: #0f172a;\n  transition: transform 0.25s ease, background-color 0.25s ease;\n}\n\n.rnav-burger span {\n  position: relative;\n}\n\n.rnav-burger span::before,\n.rnav-burger span::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n}\n\n.rnav-burger span::before {\n  top: -6px;\n}\n\n.rnav-burger span::after {\n  top: 6px;\n}\n\n.rnav-toggle:checked + .rnav-burger span {\n  background: transparent;\n}\n\n.rnav-toggle:checked + .rnav-burger span::before {\n  transform: translateY(6px) rotate(45deg);\n}\n\n.rnav-toggle:checked + .rnav-burger span::after {\n  transform: translateY(-6px) rotate(-45deg);\n}\n\n.rnav-toggle:focus-visible + .rnav-burger {\n  outline: 2px solid #4f46e5;\n  outline-offset: 2px;\n}\n\n.rnav-links {\n  display: none;\n  flex-basis: 100%;\n  flex-direction: column;\n  gap: 2px;\n}\n\n.rnav-toggle:checked ~ .rnav-links {\n  display: flex;\n}\n\n.rnav-links a {\n  padding: 10px 12px;\n  border-radius: 8px;\n  color: #475569;\n  text-decoration: none;\n}\n\n.rnav-links a:hover,\n.rnav-links a[aria-current=\"page\"] {\n  background: #f1f5f9;\n  color: #0f172a;\n}\n\n.rnav-links a:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 1px;\n}\n\n/* Wide enough: links inline, no burger */\n@container (min-width: 520px) {\n  .rnav-toggle,\n  .rnav-burger {\n    display: none;\n  }\n\n  .rnav-links {\n    display: flex;\n    flex-basis: auto;\n    flex-direction: row;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "container queries",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "fullscreen-overlay-menu",
      "name": "Fullscreen Overlay Menu",
      "category": "navigation",
      "tags": [
        "hamburger",
        "details",
        "full screen",
        "mobile menu",
        "big links"
      ],
      "description": "A menu button that opens a full-screen overlay of large links rising into place, built on details.",
      "url": "https://copy-css.com/snippets/fullscreen-overlay-menu",
      "markdown": "https://copy-css.com/snippets/fullscreen-overlay-menu.md",
      "html": "<details class=\"overlay-menu\">\n  <summary>\n    <span class=\"overlay-menu-open\">Menu</span>\n    <span class=\"overlay-menu-close\">Close</span>\n  </summary>\n  <nav aria-label=\"Main\">\n    <a href=\"#\">Work</a>\n    <a href=\"#\">Studio</a>\n    <a href=\"#\">Journal</a>\n    <a href=\"#\">Contact</a>\n  </nav>\n</details>",
      "css": ".overlay-menu summary {\n  position: relative;\n  z-index: 11;\n  padding: 10px 18px;\n  border-radius: 999px;\n  background: #0f172a;\n  color: #ffffff;\n  font: 600 14px system-ui, sans-serif;\n  list-style: none;\n  cursor: pointer;\n}\n\n.overlay-menu summary::-webkit-details-marker {\n  display: none;\n}\n\n.overlay-menu summary:focus-visible {\n  outline: 2px solid #a5b4fc;\n  outline-offset: 3px;\n}\n\n.overlay-menu[open] summary {\n  background: #ffffff;\n  color: #0f172a;\n}\n\n.overlay-menu-close,\n.overlay-menu[open] .overlay-menu-open {\n  display: none;\n}\n\n.overlay-menu[open] .overlay-menu-close {\n  display: inline;\n}\n\n.overlay-menu nav {\n  position: fixed;\n  inset: 0;\n  z-index: 10;\n  display: grid;\n  place-content: center;\n  gap: 6px;\n  background: #0f172a;\n  text-align: center;\n  animation: overlay-menu-fade 0.3s ease;\n}\n\n.overlay-menu nav a {\n  color: #f8fafc;\n  font: 800 clamp(28px, 6vw, 48px)/1.15 system-ui, sans-serif;\n  text-decoration: none;\n  animation: overlay-menu-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;\n}\n\n.overlay-menu nav a:nth-child(2) {\n  animation-delay: 0.05s;\n}\n\n.overlay-menu nav a:nth-child(3) {\n  animation-delay: 0.1s;\n}\n\n.overlay-menu nav a:nth-child(4) {\n  animation-delay: 0.15s;\n}\n\n.overlay-menu nav a:hover {\n  color: #a5b4fc;\n}\n\n.overlay-menu nav a:focus-visible {\n  border-radius: 4px;\n  outline: 2px solid #a5b4fc;\n  outline-offset: 4px;\n}\n\n@keyframes overlay-menu-fade {\n  from { opacity: 0; }\n}\n\n@keyframes overlay-menu-rise {\n  from {\n    opacity: 0;\n    transform: translateY(20px);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .overlay-menu nav,\n  .overlay-menu nav a { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "circle-reveal-menu",
      "name": "Circle Reveal Menu",
      "category": "navigation",
      "tags": [
        "hamburger",
        "clip-path",
        "details",
        "expand",
        "mobile menu"
      ],
      "description": "A round hamburger button whose menu panel grows out of it in an expanding circle, made with clip-path.",
      "url": "https://copy-css.com/snippets/circle-reveal-menu",
      "markdown": "https://copy-css.com/snippets/circle-reveal-menu.md",
      "html": "<details class=\"circle-menu\">\n  <summary aria-label=\"Menu\"><span></span></summary>\n  <nav aria-label=\"Main\">\n    <a href=\"#\">Home</a>\n    <a href=\"#\">Projects</a>\n    <a href=\"#\">About</a>\n    <a href=\"#\">Contact</a>\n  </nav>\n</details>",
      "css": ".circle-menu {\n  position: relative;\n  display: inline-block;\n  font: 600 15px system-ui, sans-serif;\n}\n\n.circle-menu summary {\n  position: relative;\n  z-index: 2;\n  display: grid;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  border-radius: 50%;\n  background: #7c3aed;\n  list-style: none;\n  cursor: pointer;\n}\n\n.circle-menu summary::-webkit-details-marker {\n  display: none;\n}\n\n.circle-menu summary:focus-visible {\n  outline: 2px solid #7c3aed;\n  outline-offset: 3px;\n}\n\n/* Three lines that fold into an X */\n.circle-menu summary span,\n.circle-menu summary span::before,\n.circle-menu summary span::after {\n  display: block;\n  width: 18px;\n  height: 2px;\n  border-radius: 2px;\n  background: #ffffff;\n  transition: transform 0.25s ease, background-color 0.25s ease;\n}\n\n.circle-menu summary span {\n  position: relative;\n}\n\n.circle-menu summary span::before,\n.circle-menu summary span::after {\n  content: \"\";\n  position: absolute;\n  left: 0;\n}\n\n.circle-menu summary span::before {\n  top: -6px;\n}\n\n.circle-menu summary span::after {\n  top: 6px;\n}\n\n.circle-menu[open] summary span {\n  background: transparent;\n}\n\n.circle-menu[open] summary span::before {\n  transform: translateY(6px) rotate(45deg);\n}\n\n.circle-menu[open] summary span::after {\n  transform: translateY(-6px) rotate(-45deg);\n}\n\n.circle-menu nav {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 1;\n  display: grid;\n  gap: 2px;\n  box-sizing: border-box;\n  width: 200px;\n  padding: 64px 12px 12px;\n  border-radius: 24px;\n  background: #2e1065;\n  animation: circle-menu-reveal 0.5s cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.circle-menu nav a {\n  padding: 10px 12px;\n  border-radius: 10px;\n  color: #ede9fe;\n  text-decoration: none;\n}\n\n.circle-menu nav a:hover {\n  background: #4c1d95;\n}\n\n.circle-menu nav a:focus-visible {\n  outline: 2px solid #c4b5fd;\n  outline-offset: -2px;\n}\n\n/* The circle starts at the button center (24px 24px) */\n@keyframes circle-menu-reveal {\n  from { clip-path: circle(24px at 24px 24px); }\n  to { clip-path: circle(150% at 24px 24px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .circle-menu nav { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transitions",
        "transforms",
        "clip paths",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "bottom-sheet-menu",
      "name": "Bottom Sheet Menu",
      "category": "navigation",
      "tags": [
        "mobile menu",
        "sheet",
        "details",
        "backdrop",
        "thumb friendly"
      ],
      "description": "A mobile menu that slides up from the bottom of the screen as a sheet with a dimmed backdrop.",
      "url": "https://copy-css.com/snippets/bottom-sheet-menu",
      "markdown": "https://copy-css.com/snippets/bottom-sheet-menu.md",
      "html": "<details class=\"sheet-menu\">\n  <summary>Menu</summary>\n  <nav aria-label=\"Main\">\n    <a href=\"#\">Home</a>\n    <a href=\"#\">Orders</a>\n    <a href=\"#\">Saved</a>\n    <a href=\"#\">Account</a>\n  </nav>\n</details>",
      "css": ".sheet-menu summary {\n  position: relative;\n  z-index: 11;\n  padding: 10px 20px;\n  border-radius: 999px;\n  background: #0f172a;\n  color: #ffffff;\n  font: 600 14px system-ui, sans-serif;\n  list-style: none;\n  cursor: pointer;\n}\n\n.sheet-menu summary::-webkit-details-marker {\n  display: none;\n}\n\n.sheet-menu summary:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 3px;\n}\n\n/* The huge spread shadow doubles as the backdrop */\n.sheet-menu nav {\n  position: fixed;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  z-index: 10;\n  display: grid;\n  gap: 2px;\n  padding: 28px 16px 20px;\n  border-radius: 20px 20px 0 0;\n  background: #ffffff;\n  box-shadow: 0 0 0 100vmax #0f172a66;\n  animation: sheet-menu-up 0.35s cubic-bezier(0.3, 0.7, 0.4, 1);\n}\n\n/* Grab handle */\n.sheet-menu nav::before {\n  content: \"\";\n  position: absolute;\n  top: 10px;\n  left: 50%;\n  width: 40px;\n  height: 4px;\n  margin-left: -20px;\n  border-radius: 4px;\n  background: #cbd5e1;\n}\n\n.sheet-menu nav a {\n  padding: 12px 14px;\n  border-radius: 10px;\n  color: #0f172a;\n  font: 500 16px system-ui, sans-serif;\n  text-decoration: none;\n}\n\n.sheet-menu nav a:hover {\n  background: #f1f5f9;\n}\n\n.sheet-menu nav a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: -2px;\n}\n\n@keyframes sheet-menu-up {\n  from { transform: translateY(100%); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .sheet-menu nav { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "vertical-tabs",
      "name": "Vertical Tabs",
      "category": "navigation",
      "tags": [
        "tabs",
        "settings",
        "radio",
        "has",
        "side tabs",
        "no javascript"
      ],
      "description": "Tabs stacked down the left with their panel on the right, switched with radio buttons and :has().",
      "url": "https://copy-css.com/snippets/vertical-tabs",
      "markdown": "https://copy-css.com/snippets/vertical-tabs.md",
      "html": "<div class=\"vtabs\">\n  <div class=\"vtabs-list\" role=\"radiogroup\" aria-label=\"Settings\">\n    <label><input type=\"radio\" name=\"vtabs\" checked>Profile</label>\n    <label><input type=\"radio\" name=\"vtabs\">Security</label>\n    <label><input type=\"radio\" name=\"vtabs\">Billing</label>\n  </div>\n  <div class=\"vtabs-panels\">\n    <div>Name, photo and a short bio.</div>\n    <div>Password and two-factor login.</div>\n    <div>Plan, invoices and saved cards.</div>\n  </div>\n</div>",
      "css": ".vtabs {\n  display: grid;\n  grid-template-columns: auto 1fr;\n  width: 260px;\n  overflow: hidden;\n  border-radius: 14px;\n  background: #ffffff;\n  box-shadow: 0 0 0 1px #e2e8f0;\n  font: 14px/1.5 system-ui, sans-serif;\n}\n\n.vtabs-list {\n  display: grid;\n  align-content: start;\n  padding: 8px 0;\n  border-right: 1px solid #e2e8f0;\n  background: #f8fafc;\n}\n\n.vtabs-list label {\n  padding: 9px 16px;\n  border-left: 3px solid transparent;\n  color: #64748b;\n  font-weight: 600;\n  cursor: pointer;\n}\n\n.vtabs-list input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.vtabs-list label:hover {\n  color: #0f172a;\n}\n\n.vtabs-list label:has(input:checked) {\n  border-left-color: #0d9488;\n  background: #ffffff;\n  color: #0f766e;\n}\n\n.vtabs-list label:has(input:focus-visible) {\n  outline: 2px solid #0d9488;\n  outline-offset: -2px;\n}\n\n.vtabs-panels > div {\n  display: none;\n  padding: 16px;\n  color: #334155;\n}\n\n.vtabs:has(label:nth-child(1) input:checked) .vtabs-panels > :nth-child(1),\n.vtabs:has(label:nth-child(2) input:checked) .vtabs-panels > :nth-child(2),\n.vtabs:has(label:nth-child(3) input:checked) .vtabs-panels > :nth-child(3) {\n  display: block;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "sliding-underline-tabs",
      "name": "Sliding Underline Tabs",
      "category": "navigation",
      "tags": [
        "tabs",
        "animated",
        "indicator",
        "radio",
        "has"
      ],
      "description": "Equal-width tabs with one underline that slides to the selected tab, driven by :has() and a custom property.",
      "url": "https://copy-css.com/snippets/sliding-underline-tabs",
      "markdown": "https://copy-css.com/snippets/sliding-underline-tabs.md",
      "html": "<div class=\"slide-tabs\">\n  <div class=\"slide-tabs-list\" role=\"radiogroup\" aria-label=\"Period\">\n    <label><input type=\"radio\" name=\"slide-tabs\" checked>Day</label>\n    <label><input type=\"radio\" name=\"slide-tabs\">Week</label>\n    <label><input type=\"radio\" name=\"slide-tabs\">Month</label>\n  </div>\n  <div class=\"slide-tabs-panels\">\n    <p>1,284 visits today</p>\n    <p>8,930 visits this week</p>\n    <p>36,512 visits this month</p>\n  </div>\n</div>",
      "css": ".slide-tabs {\n  width: 250px;\n  font: 14px/1.5 system-ui, sans-serif;\n}\n\n.slide-tabs-list {\n  --i: 0;\n  position: relative;\n  display: grid;\n  grid-auto-columns: 1fr;\n  grid-auto-flow: column;\n  border-bottom: 1px solid #e5e7eb;\n}\n\n/* One indicator, moved by --i */\n.slide-tabs-list::after {\n  content: \"\";\n  position: absolute;\n  bottom: -1px;\n  left: 0;\n  width: calc(100% / 3);\n  height: 2px;\n  border-radius: 2px;\n  background: #0284c7;\n  transform: translateX(calc(var(--i) * 100%));\n  transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.4, 1);\n}\n\n.slide-tabs-list:has(label:nth-child(2) input:checked) {\n  --i: 1;\n}\n\n.slide-tabs-list:has(label:nth-child(3) input:checked) {\n  --i: 2;\n}\n\n.slide-tabs-list label {\n  padding: 10px 0;\n  color: #6b7280;\n  font-weight: 600;\n  text-align: center;\n  cursor: pointer;\n  transition: color 0.2s ease;\n}\n\n.slide-tabs-list input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.slide-tabs-list label:has(input:checked) {\n  color: #0284c7;\n}\n\n.slide-tabs-list label:has(input:focus-visible) {\n  border-radius: 6px;\n  outline: 2px solid #0284c7;\n  outline-offset: -2px;\n}\n\n.slide-tabs-panels p {\n  display: none;\n  margin: 0;\n  padding: 14px 2px;\n  color: #111827;\n  font-size: 18px;\n  font-weight: 700;\n}\n\n.slide-tabs:has(label:nth-child(1) input:checked) .slide-tabs-panels > :nth-child(1),\n.slide-tabs:has(label:nth-child(2) input:checked) .slide-tabs-panels > :nth-child(2),\n.slide-tabs:has(label:nth-child(3) input:checked) .slide-tabs-panels > :nth-child(3) {\n  display: block;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .slide-tabs-list::after { transition: none; }\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--i",
          "value": "0"
        }
      ]
    },
    {
      "id": "folder-tabs",
      "name": "Folder Tabs",
      "category": "navigation",
      "tags": [
        "tabs",
        "file folder",
        "connected panel",
        "radio",
        "has"
      ],
      "description": "File-folder style tabs where the selected tab merges into its panel, switched with radio buttons.",
      "url": "https://copy-css.com/snippets/folder-tabs",
      "markdown": "https://copy-css.com/snippets/folder-tabs.md",
      "html": "<div class=\"folder-tabs\">\n  <div class=\"folder-tabs-list\" role=\"radiogroup\" aria-label=\"Documents\">\n    <label><input type=\"radio\" name=\"folder-tabs\" checked>Notes</label>\n    <label><input type=\"radio\" name=\"folder-tabs\">Files</label>\n    <label><input type=\"radio\" name=\"folder-tabs\">Links</label>\n  </div>\n  <div class=\"folder-tabs-panels\">\n    <div>3 notes from this week.</div>\n    <div>12 files, 48 MB in total.</div>\n    <div>5 saved links.</div>\n  </div>\n</div>",
      "css": ".folder-tabs {\n  width: 250px;\n  font: 14px/1.5 system-ui, sans-serif;\n}\n\n.folder-tabs-list {\n  display: flex;\n  gap: 4px;\n  padding-left: 8px;\n}\n\n.folder-tabs-list label {\n  padding: 8px 16px 10px;\n  border-radius: 12px 12px 0 0;\n  background: #c7d2fe;\n  color: #4338ca;\n  font-weight: 600;\n  cursor: pointer;\n  transition: background-color 0.2s ease;\n}\n\n.folder-tabs-list label:hover {\n  background: #a5b4fc;\n}\n\n.folder-tabs-list input {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n/* Selected tab takes the panel color, so they read as one shape */\n.folder-tabs-list label:has(input:checked) {\n  background: #ffffff;\n  color: #1e1b4b;\n}\n\n.folder-tabs-list label:has(input:focus-visible) {\n  outline: 2px solid #4338ca;\n  outline-offset: -4px;\n}\n\n.folder-tabs-panels {\n  min-height: 70px;\n  padding: 16px;\n  border-radius: 12px;\n  background: #ffffff;\n  color: #334155;\n  box-shadow: 0 10px 24px -12px #312e8159;\n}\n\n.folder-tabs-panels > div {\n  display: none;\n}\n\n.folder-tabs:has(label:nth-child(1) input:checked) .folder-tabs-panels > :nth-child(1),\n.folder-tabs:has(label:nth-child(2) input:checked) .folder-tabs-panels > :nth-child(2),\n.folder-tabs:has(label:nth-child(3) input:checked) .folder-tabs-panels > :nth-child(3) {\n  display: block;\n}",
      "features": [
        "transitions",
        "box shadows",
        "Flexbox",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "scrollable-tabs",
      "name": "Scrollable Tab Bar",
      "category": "navigation",
      "tags": [
        "overflow",
        "horizontal scroll",
        "scroll-snap",
        "mobile",
        "mask",
        "categories"
      ],
      "description": "A row of tab links that scrolls sideways on small screens, with snap points and a faded edge hint.",
      "url": "https://copy-css.com/snippets/scrollable-tabs",
      "markdown": "https://copy-css.com/snippets/scrollable-tabs.md",
      "html": "<nav class=\"scroll-tabs\" aria-label=\"Categories\">\n  <a href=\"#\" aria-current=\"page\">All</a>\n  <a href=\"#\">Design</a>\n  <a href=\"#\">Development</a>\n  <a href=\"#\">Marketing</a>\n  <a href=\"#\">Product</a>\n  <a href=\"#\">Research</a>\n</nav>",
      "css": ".scroll-tabs {\n  display: flex;\n  max-width: 260px;\n  overflow-x: auto;\n  padding: 0 32px 0 4px;\n  border-bottom: 1px solid #e5e7eb;\n  scroll-snap-type: x proximity;\n  scrollbar-width: none;\n  font: 600 14px system-ui, sans-serif;\n  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);\n  mask: linear-gradient(90deg, #000 calc(100% - 40px), transparent);\n}\n\n.scroll-tabs::-webkit-scrollbar {\n  display: none;\n}\n\n.scroll-tabs a {\n  flex: none;\n  padding: 12px 12px 10px;\n  border-bottom: 2px solid transparent;\n  color: #6b7280;\n  text-decoration: none;\n  scroll-snap-align: start;\n}\n\n.scroll-tabs a:hover {\n  color: #111827;\n}\n\n.scroll-tabs a[aria-current=\"page\"] {\n  border-bottom-color: #e11d48;\n  color: #e11d48;\n}\n\n.scroll-tabs a:focus-visible {\n  border-radius: 6px;\n  outline: 2px solid #e11d48;\n  outline-offset: -2px;\n}",
      "features": [
        "linear gradients",
        "masks",
        "Flexbox",
        "scroll snapping",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "icon-rail-sidebar",
      "name": "Expanding Icon Sidebar",
      "category": "navigation",
      "tags": [
        "sidebar",
        "icon rail",
        "collapsible",
        "hover",
        "focus-within",
        "dashboard"
      ],
      "description": "A slim icon-only sidebar rail that widens to show labels on hover or keyboard focus.",
      "url": "https://copy-css.com/snippets/icon-rail-sidebar",
      "markdown": "https://copy-css.com/snippets/icon-rail-sidebar.md",
      "html": "<nav class=\"rail\" aria-label=\"Main\">\n  <a href=\"#\" aria-current=\"page\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M3 11l9-8 9 8\"/><path d=\"M5 10v10h14V10\"/></svg>\n    <span>Home</span>\n  </a>\n  <a href=\"#\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/></svg>\n    <span>Search</span>\n  </a>\n  <a href=\"#\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M3 20h18M7 16V9M12 16V5M17 16v-4\"/></svg>\n    <span>Reports</span>\n  </a>\n  <a href=\"#\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21a8 8 0 0 1 16 0\"/></svg>\n    <span>Profile</span>\n  </a>\n</nav>",
      "css": ".rail {\n  display: flex;\n  flex-direction: column;\n  gap: 2px;\n  box-sizing: border-box;\n  width: 60px;\n  padding: 8px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: #0f172a;\n  transition: width 0.25s ease;\n}\n\n.rail:hover,\n.rail:focus-within {\n  width: 180px;\n}\n\n.rail a {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  padding: 9px 11px;\n  border-radius: 10px;\n  color: #94a3b8;\n  font: 500 14px system-ui, sans-serif;\n  text-decoration: none;\n  white-space: nowrap;\n}\n\n.rail svg {\n  flex: none;\n  width: 18px;\n  height: 18px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n/* Labels stay in the accessibility tree, only faded out */\n.rail span {\n  opacity: 0;\n  transition: opacity 0.2s ease;\n}\n\n.rail:hover span,\n.rail:focus-within span {\n  opacity: 1;\n}\n\n.rail a:hover,\n.rail a[aria-current=\"page\"] {\n  background: #1e293b;\n  color: #f8fafc;\n}\n\n.rail a:focus-visible {\n  outline: 2px solid #38bdf8;\n  outline-offset: -2px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .rail,\n  .rail span { transition: none; }\n}",
      "features": [
        "transitions",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "nested-sidebar-menu",
      "name": "Nested Sidebar Menu",
      "category": "navigation",
      "tags": [
        "sidebar",
        "tree",
        "details",
        "submenu",
        "docs",
        "collapsible"
      ],
      "description": "A docs-style sidebar with collapsible groups built on details and summary, plus a guide line for children.",
      "url": "https://copy-css.com/snippets/nested-sidebar-menu",
      "markdown": "https://copy-css.com/snippets/nested-sidebar-menu.md",
      "html": "<nav class=\"tree-nav\" aria-label=\"Docs\">\n  <a href=\"#\">Introduction</a>\n  <details open>\n    <summary>Components</summary>\n    <a href=\"#\">Buttons</a>\n    <a href=\"#\" aria-current=\"page\">Cards</a>\n    <a href=\"#\">Forms</a>\n  </details>\n  <details>\n    <summary>Guides</summary>\n    <a href=\"#\">Theming</a>\n    <a href=\"#\">Dark mode</a>\n  </details>\n</nav>",
      "css": ".tree-nav {\n  display: grid;\n  gap: 2px;\n  width: 200px;\n  color: #334155;\n  font: 500 14px/1.4 system-ui, sans-serif;\n}\n\n.tree-nav a,\n.tree-nav summary {\n  display: block;\n  padding: 7px 10px;\n  border-radius: 8px;\n  color: inherit;\n  text-decoration: none;\n  cursor: pointer;\n}\n\n.tree-nav summary {\n  position: relative;\n  color: #0f172a;\n  font-weight: 600;\n  list-style: none;\n}\n\n.tree-nav summary::-webkit-details-marker {\n  display: none;\n}\n\n/* Chevron */\n.tree-nav summary::after {\n  content: \"\";\n  position: absolute;\n  top: 50%;\n  right: 12px;\n  width: 6px;\n  height: 6px;\n  margin-top: -5px;\n  border: solid #94a3b8;\n  border-width: 0 2px 2px 0;\n  transform: rotate(45deg);\n  transition: transform 0.2s ease;\n}\n\n.tree-nav details[open] > summary::after {\n  margin-top: -2px;\n  transform: rotate(-135deg);\n}\n\n.tree-nav details > a {\n  margin-left: 14px;\n  padding-left: 14px;\n  border-left: 1px solid #e2e8f0;\n  border-radius: 0 8px 8px 0;\n  color: #64748b;\n}\n\n.tree-nav a:hover,\n.tree-nav summary:hover {\n  background: #f1f5f9;\n}\n\n.tree-nav a[aria-current=\"page\"] {\n  border-left-color: #2563eb;\n  background: #eff6ff;\n  color: #1d4ed8;\n}\n\n.tree-nav a:focus-visible,\n.tree-nav summary:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: -2px;\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "grouped-sidebar-menu",
      "name": "Grouped Sidebar Menu",
      "category": "navigation",
      "tags": [
        "sidebar",
        "sections",
        "badges",
        "counts",
        "app",
        "dashboard"
      ],
      "description": "An app sidebar with labelled sections, count badges and a clear active item, using real lists.",
      "url": "https://copy-css.com/snippets/grouped-sidebar-menu",
      "markdown": "https://copy-css.com/snippets/grouped-sidebar-menu.md",
      "html": "<nav class=\"group-nav\" aria-label=\"App\">\n  <p class=\"group-nav-label\" id=\"group-nav-mail\">Mail</p>\n  <ul aria-labelledby=\"group-nav-mail\">\n    <li><a href=\"#\" aria-current=\"page\">Inbox <span>12</span></a></li>\n    <li><a href=\"#\">Drafts <span>3</span></a></li>\n  </ul>\n  <p class=\"group-nav-label\" id=\"group-nav-labels\">Labels</p>\n  <ul aria-labelledby=\"group-nav-labels\">\n    <li><a href=\"#\">Clients</a></li>\n  </ul>\n</nav>",
      "css": ".group-nav {\n  width: 200px;\n  padding: 10px;\n  border-radius: 14px;\n  background: #ffffff;\n  box-shadow: 0 1px 3px #0f172a14;\n  font: 500 14px/1.3 system-ui, sans-serif;\n}\n\n.group-nav-label {\n  margin: 10px 10px 2px;\n  color: #64748b;\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.group-nav-label:first-child {\n  margin-top: 2px;\n}\n\n.group-nav ul {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n.group-nav a {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  padding: 7px 10px;\n  border-radius: 8px;\n  color: #334155;\n  text-decoration: none;\n}\n\n.group-nav a:hover {\n  background: #f1f5f9;\n}\n\n.group-nav a[aria-current=\"page\"] {\n  background: #fff7ed;\n  color: #c2410c;\n  font-weight: 600;\n}\n\n.group-nav a span {\n  min-width: 20px;\n  padding: 2px 6px;\n  border-radius: 999px;\n  background: #e2e8f0;\n  color: #475569;\n  font-size: 12px;\n  text-align: center;\n}\n\n.group-nav a[aria-current=\"page\"] span {\n  background: #ea580c;\n  color: #ffffff;\n}\n\n.group-nav a:focus-visible {\n  outline: 2px solid #ea580c;\n  outline-offset: -2px;\n}",
      "features": [
        "box shadows",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "arrow-breadcrumbs",
      "name": "Arrow Breadcrumbs",
      "category": "navigation",
      "tags": [
        "breadcrumbs",
        "chevron",
        "clip-path",
        "steps",
        "ribbon"
      ],
      "description": "Breadcrumbs shaped as interlocking arrow segments with clip-path, with the current page filled in.",
      "url": "https://copy-css.com/snippets/arrow-breadcrumbs",
      "markdown": "https://copy-css.com/snippets/arrow-breadcrumbs.md",
      "html": "<nav class=\"arrow-crumbs\" aria-label=\"Breadcrumb\">\n  <ol>\n    <li><a href=\"#\">Shop</a></li>\n    <li><a href=\"#\">Shoes</a></li>\n    <li><span aria-current=\"page\">Running</span></li>\n  </ol>\n</nav>",
      "css": ".arrow-crumbs ol {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 4px 0;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  font: 600 13px system-ui, sans-serif;\n}\n\n.arrow-crumbs a,\n.arrow-crumbs span {\n  position: relative;\n  z-index: 0;\n  display: block;\n  padding: 9px 14px 9px 22px;\n  color: #4338ca;\n  text-decoration: none;\n}\n\n.arrow-crumbs li + li {\n  margin-left: -6px;\n}\n\n/* Arrow shape lives on a pseudo-element so focus outlines are not clipped */\n.arrow-crumbs a::before,\n.arrow-crumbs span::before {\n  content: \"\";\n  position: absolute;\n  z-index: -1;\n  inset: 0;\n  background: #e0e7ff;\n  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);\n  transition: background-color 0.2s ease;\n}\n\n.arrow-crumbs li:first-child a::before {\n  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);\n}\n\n.arrow-crumbs li:first-child a {\n  padding-left: 14px;\n}\n\n.arrow-crumbs a:hover::before {\n  background: #c7d2fe;\n}\n\n.arrow-crumbs span {\n  color: #ffffff;\n}\n\n.arrow-crumbs span::before {\n  background: #4f46e5;\n}\n\n.arrow-crumbs a:focus-visible {\n  border-radius: 4px;\n  outline: 2px solid #4f46e5;\n  outline-offset: 1px;\n}",
      "features": [
        "transitions",
        "clip paths",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "collapsible-breadcrumbs",
      "name": "Collapsible Breadcrumbs",
      "category": "navigation",
      "tags": [
        "breadcrumbs",
        "ellipsis",
        "details",
        "long path",
        "overflow",
        "mobile"
      ],
      "description": "Long breadcrumb trails that hide middle levels behind an ellipsis button that opens a small menu.",
      "url": "https://copy-css.com/snippets/collapsible-breadcrumbs",
      "markdown": "https://copy-css.com/snippets/collapsible-breadcrumbs.md",
      "html": "<nav class=\"collapse-crumbs\" aria-label=\"Breadcrumb\">\n  <ol>\n    <li><a href=\"#\">Home</a></li>\n    <li>\n      <details>\n        <summary aria-label=\"Show 2 more levels\">…</summary>\n        <ul>\n          <li><a href=\"#\">Projects</a></li>\n          <li><a href=\"#\">2026</a></li>\n        </ul>\n      </details>\n    </li>\n    <li><a href=\"#\">Launch</a></li>\n    <li aria-current=\"page\">Assets</li>\n  </ol>\n</nav>",
      "css": ".collapse-crumbs ol {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  gap: 6px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  color: #0f172a;\n  font: 500 14px system-ui, sans-serif;\n}\n\n.collapse-crumbs ol > li + li::before {\n  content: \"›\";\n  margin-right: 6px;\n  color: #94a3b8;\n}\n\n.collapse-crumbs li {\n  display: flex;\n  align-items: center;\n}\n\n.collapse-crumbs a {\n  color: #64748b;\n  text-decoration: none;\n}\n\n.collapse-crumbs a:hover {\n  color: #0f172a;\n  text-decoration: underline;\n}\n\n.collapse-crumbs details {\n  position: relative;\n}\n\n.collapse-crumbs summary {\n  padding: 0 8px;\n  border-radius: 6px;\n  background: #e2e8f0;\n  color: #334155;\n  line-height: 24px;\n  list-style: none;\n  cursor: pointer;\n}\n\n.collapse-crumbs summary::-webkit-details-marker {\n  display: none;\n}\n\n.collapse-crumbs summary:hover,\n.collapse-crumbs details[open] summary {\n  background: #cbd5e1;\n}\n\n.collapse-crumbs ul {\n  position: absolute;\n  top: calc(100% + 6px);\n  left: 0;\n  z-index: 1;\n  min-width: 130px;\n  margin: 0;\n  padding: 6px;\n  list-style: none;\n  border-radius: 10px;\n  background: #ffffff;\n  box-shadow: 0 0 0 1px #0f172a14, 0 10px 24px -8px #0f172a33;\n}\n\n.collapse-crumbs ul a {\n  display: block;\n  padding: 7px 10px;\n  border-radius: 6px;\n}\n\n.collapse-crumbs ul a:hover {\n  background: #f1f5f9;\n  text-decoration: none;\n}\n\n.collapse-crumbs a:focus-visible,\n.collapse-crumbs summary:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}",
      "features": [
        "box shadows",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "home-icon-breadcrumbs",
      "name": "Home Icon Breadcrumbs",
      "category": "navigation",
      "tags": [
        "breadcrumbs",
        "icon",
        "chevron",
        "pill",
        "svg"
      ],
      "description": "A pill-shaped breadcrumb bar that starts with a home icon and uses drawn chevrons as separators.",
      "url": "https://copy-css.com/snippets/home-icon-breadcrumbs",
      "markdown": "https://copy-css.com/snippets/home-icon-breadcrumbs.md",
      "html": "<nav class=\"home-crumbs\" aria-label=\"Breadcrumb\">\n  <ol>\n    <li><a href=\"#\" aria-label=\"Home\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M3 11l9-8 9 8\"/><path d=\"M5 10v10h5v-6h4v6h5V10\"/></svg></a></li>\n    <li><a href=\"#\">Settings</a></li>\n    <li aria-current=\"page\">Alerts</li>\n  </ol>\n</nav>",
      "css": ".home-crumbs ol {\n  display: inline-flex;\n  flex-wrap: wrap;\n  align-items: center;\n  gap: 4px;\n  margin: 0;\n  padding: 6px 14px 6px 6px;\n  list-style: none;\n  border-radius: 999px;\n  background: #ffffff;\n  box-shadow: 0 0 0 1px #d1fae5, 0 2px 6px #064e3b14;\n  color: #064e3b;\n  font: 600 14px system-ui, sans-serif;\n}\n\n.home-crumbs li {\n  display: flex;\n  align-items: center;\n}\n\n/* Chevron drawn with two borders */\n.home-crumbs li + li::before {\n  content: \"\";\n  width: 6px;\n  height: 6px;\n  margin: 0 10px 0 4px;\n  border: solid #6ee7b7;\n  border-width: 2px 2px 0 0;\n  transform: rotate(45deg);\n}\n\n.home-crumbs a {\n  display: grid;\n  place-items: center;\n  min-height: 30px;\n  padding: 0 8px;\n  border-radius: 999px;\n  color: #047857;\n  text-decoration: none;\n}\n\n.home-crumbs li:first-child a {\n  width: 30px;\n  padding: 0;\n  background: #d1fae5;\n}\n\n.home-crumbs svg {\n  width: 16px;\n  height: 16px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linejoin: round;\n}\n\n.home-crumbs a:hover {\n  background: #a7f3d0;\n}\n\n.home-crumbs a:focus-visible {\n  outline: 2px solid #059669;\n  outline-offset: 1px;\n}",
      "features": [
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "prev-next-links",
      "name": "Previous Next Post Links",
      "category": "navigation",
      "tags": [
        "pagination",
        "blog",
        "article",
        "rel prev",
        "next post"
      ],
      "description": "Previous and next article links as two cards with titles and arrows, for the end of blog posts.",
      "url": "https://copy-css.com/snippets/prev-next-links",
      "markdown": "https://copy-css.com/snippets/prev-next-links.md",
      "html": "<nav class=\"post-nav\" aria-label=\"More posts\">\n  <a class=\"post-nav-prev\" href=\"#\" rel=\"prev\">\n    <span>Previous</span>\n    Getting started with Grid\n  </a>\n  <a class=\"post-nav-next\" href=\"#\" rel=\"next\">\n    <span>Next</span>\n    Mastering flex gaps\n  </a>\n</nav>",
      "css": ".post-nav {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));\n  gap: 10px;\n  font: 600 14px/1.35 system-ui, sans-serif;\n}\n\n.post-nav a {\n  display: grid;\n  gap: 4px;\n  padding: 14px 16px;\n  border: 1px solid #e7e5e4;\n  border-radius: 12px;\n  background: #ffffff;\n  color: #1c1917;\n  text-decoration: none;\n  transition: border-color 0.2s ease;\n}\n\n.post-nav a:hover {\n  border-color: #1c1917;\n}\n\n.post-nav a:focus-visible {\n  outline: 2px solid #ea580c;\n  outline-offset: 2px;\n}\n\n.post-nav span {\n  color: #78716c;\n  font-size: 12px;\n  font-weight: 500;\n}\n\n.post-nav-prev span::before {\n  content: \"← \";\n  content: \"← \" / \"\";\n}\n\n.post-nav-next {\n  text-align: right;\n}\n\n.post-nav-next span::after {\n  content: \" →\";\n  content: \" →\" / \"\";\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "compact-pagination",
      "name": "Compact Pagination",
      "category": "navigation",
      "tags": [
        "pagination",
        "page x of y",
        "mobile",
        "arrows",
        "pager"
      ],
      "description": "A small pager that shows \"Page 2 of 9\" between previous and next arrows, ideal for mobile.",
      "url": "https://copy-css.com/snippets/compact-pagination",
      "markdown": "https://copy-css.com/snippets/compact-pagination.md",
      "html": "<nav class=\"compact-pager\" aria-label=\"Pagination\">\n  <a href=\"#\" aria-label=\"Previous page\">‹</a>\n  <span>Page <b>2</b> of 9</span>\n  <a href=\"#\" aria-label=\"Next page\">›</a>\n</nav>",
      "css": ".compact-pager {\n  display: inline-flex;\n  align-items: center;\n  overflow: hidden;\n  border-radius: 12px;\n  background: #ffffff;\n  box-shadow: 0 0 0 1px #e2e8f0;\n  color: #475569;\n  font: 500 14px system-ui, sans-serif;\n}\n\n.compact-pager span {\n  padding: 0 16px;\n  border-inline: 1px solid #e2e8f0;\n  line-height: 40px;\n}\n\n.compact-pager b {\n  color: #0f172a;\n}\n\n.compact-pager a {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  color: #0f172a;\n  font-size: 22px;\n  text-decoration: none;\n}\n\n.compact-pager a:hover {\n  background: #f1f5f9;\n}\n\n.compact-pager a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: -2px;\n}\n\n/* Add aria-disabled=\"true\" on the first and last page */\n.compact-pager [aria-disabled=\"true\"] {\n  color: #cbd5e1;\n  pointer-events: none;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "table-pagination",
      "name": "Table Pagination Footer",
      "category": "navigation",
      "tags": [
        "pagination",
        "data table",
        "rows per page",
        "range",
        "admin"
      ],
      "description": "A data table footer with a rows-per-page select, a \"11–20 of 97\" range and previous/next buttons.",
      "url": "https://copy-css.com/snippets/table-pagination",
      "markdown": "https://copy-css.com/snippets/table-pagination.md",
      "html": "<div class=\"table-pager\">\n  <label>Rows\n    <select>\n      <option>10</option>\n      <option>25</option>\n      <option>50</option>\n    </select>\n  </label>\n  <span>11–20 of 97</span>\n  <nav aria-label=\"Pagination\">\n    <a href=\"#\" aria-label=\"Previous page\">‹</a>\n    <a href=\"#\" aria-label=\"Next page\">›</a>\n  </nav>\n</div>",
      "css": ".table-pager {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: flex-end;\n  gap: 10px 18px;\n  box-sizing: border-box;\n  padding: 10px 12px;\n  border-top: 1px solid #e2e8f0;\n  background: #ffffff;\n  color: #475569;\n  font: 13px system-ui, sans-serif;\n}\n\n.table-pager label {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n}\n\n.table-pager select {\n  padding: 4px 8px;\n  border: 1px solid #cbd5e1;\n  border-radius: 6px;\n  background: #ffffff;\n  color: #0f172a;\n  font: inherit;\n}\n\n.table-pager nav {\n  display: flex;\n  gap: 4px;\n}\n\n.table-pager a {\n  display: grid;\n  place-items: center;\n  width: 30px;\n  height: 30px;\n  border-radius: 6px;\n  color: #0f172a;\n  font-size: 18px;\n  text-decoration: none;\n}\n\n.table-pager a:hover {\n  background: #f1f5f9;\n}\n\n.table-pager a:focus-visible,\n.table-pager select:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 1px;\n}",
      "features": [
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "click-dropdown-menu",
      "name": "Click Dropdown Menu",
      "category": "navigation",
      "tags": [
        "dropdown",
        "details",
        "click",
        "touch",
        "actions menu"
      ],
      "description": "A dropdown that opens on click or tap instead of hover, built on details and summary with no JavaScript.",
      "url": "https://copy-css.com/snippets/click-dropdown-menu",
      "markdown": "https://copy-css.com/snippets/click-dropdown-menu.md",
      "html": "<details class=\"click-menu\">\n  <summary>Options</summary>\n  <div class=\"click-menu-list\">\n    <a href=\"#\">Edit</a>\n    <a href=\"#\">Duplicate</a>\n    <a href=\"#\">Archive</a>\n    <a class=\"click-menu-danger\" href=\"#\">Delete</a>\n  </div>\n</details>",
      "css": ".click-menu {\n  position: relative;\n  display: inline-block;\n  font: 500 14px system-ui, sans-serif;\n}\n\n.click-menu summary {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  padding: 9px 14px;\n  border: 1px solid #e2e8f0;\n  border-radius: 10px;\n  background: #ffffff;\n  color: #0f172a;\n  list-style: none;\n  cursor: pointer;\n}\n\n.click-menu summary::-webkit-details-marker {\n  display: none;\n}\n\n.click-menu summary::after {\n  content: \"\";\n  width: 6px;\n  height: 6px;\n  margin-top: -3px;\n  border: solid #64748b;\n  border-width: 0 2px 2px 0;\n  transform: rotate(45deg);\n  transition: transform 0.2s ease;\n}\n\n.click-menu[open] summary::after {\n  margin-top: 3px;\n  transform: rotate(-135deg);\n}\n\n.click-menu summary:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}\n\n.click-menu-list {\n  position: absolute;\n  top: calc(100% + 6px);\n  left: 0;\n  z-index: 10;\n  display: grid;\n  min-width: 160px;\n  padding: 6px;\n  border-radius: 12px;\n  background: #ffffff;\n  box-shadow: 0 0 0 1px #0f172a14, 0 12px 28px -8px #0f172a40;\n  transform-origin: top left;\n  animation: click-menu-in 0.15s ease-out;\n}\n\n.click-menu-list a {\n  padding: 8px 10px;\n  border-radius: 8px;\n  color: #334155;\n  text-decoration: none;\n}\n\n.click-menu-list a:hover {\n  background: #f1f5f9;\n  color: #0f172a;\n}\n\n.click-menu-list a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: -2px;\n}\n\n.click-menu-list .click-menu-danger {\n  margin-top: 4px;\n  border-top: 1px solid #f1f5f9;\n  border-radius: 0 0 8px 8px;\n  color: #dc2626;\n}\n\n@keyframes click-menu-in {\n  from {\n    opacity: 0;\n    transform: scale(0.96) translateY(-4px);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .click-menu-list { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "mega-menu",
      "name": "Mega Menu",
      "category": "navigation",
      "tags": [
        "dropdown",
        "multi-column",
        "header",
        "hover",
        "focus-within",
        "ecommerce"
      ],
      "description": "A wide multi-column dropdown panel under a nav item, opened on hover or keyboard focus.",
      "url": "https://copy-css.com/snippets/mega-menu",
      "markdown": "https://copy-css.com/snippets/mega-menu.md",
      "html": "<nav class=\"mega-menu\" aria-label=\"Main\">\n  <div class=\"mega-menu-item\">\n    <button class=\"mega-menu-trigger\" type=\"button\">Products</button>\n    <div class=\"mega-menu-panel\">\n      <div>\n        <p class=\"mega-menu-heading\">Build</p>\n        <a href=\"#\">Site builder</a>\n        <a href=\"#\">Forms</a>\n        <a href=\"#\">Checkout</a>\n      </div>\n      <div>\n        <p class=\"mega-menu-heading\">Grow</p>\n        <a href=\"#\">Email</a>\n        <a href=\"#\">Analytics</a>\n        <a href=\"#\">SEO tools</a>\n      </div>\n      <a class=\"mega-menu-promo\" href=\"#\">New: AI site audit</a>\n    </div>\n  </div>\n  <a href=\"#\">Pricing</a>\n  <a href=\"#\">Docs</a>\n</nav>",
      "css": ".mega-menu {\n  display: flex;\n  align-items: center;\n  gap: 4px;\n  font: 500 14px system-ui, sans-serif;\n}\n\n.mega-menu-item {\n  position: relative;\n}\n\n.mega-menu > a,\n.mega-menu-trigger {\n  display: block;\n  padding: 9px 12px;\n  border: 0;\n  border-radius: 8px;\n  background: none;\n  color: #334155;\n  font: inherit;\n  text-decoration: none;\n  cursor: pointer;\n}\n\n.mega-menu > a:hover,\n.mega-menu-trigger:hover,\n.mega-menu-item:focus-within .mega-menu-trigger {\n  background: #e2e8f0;\n  color: #0f172a;\n}\n\n.mega-menu-panel {\n  position: absolute;\n  top: 100%;\n  left: 0;\n  z-index: 10;\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 4px 16px;\n  width: min(360px, calc(100vw - 32px));\n  margin-top: 8px;\n  padding: 16px;\n  border-radius: 14px;\n  background: #ffffff;\n  box-shadow: 0 0 0 1px #0f172a14, 0 18px 40px -12px #0f172a40;\n  opacity: 0;\n  visibility: hidden;\n  transform: translateY(-6px);\n  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;\n}\n\n/* Invisible bridge across the gap so hover is not lost */\n.mega-menu-panel::before {\n  content: \"\";\n  position: absolute;\n  top: -10px;\n  right: 0;\n  left: 0;\n  height: 10px;\n}\n\n.mega-menu-item:hover .mega-menu-panel,\n.mega-menu-item:focus-within .mega-menu-panel {\n  opacity: 1;\n  visibility: visible;\n  transform: none;\n}\n\n.mega-menu-heading {\n  margin: 0 8px 6px;\n  color: #64748b;\n  font-size: 11px;\n  font-weight: 700;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.mega-menu-panel a {\n  display: block;\n  padding: 7px 8px;\n  border-radius: 8px;\n  color: #0f172a;\n  text-decoration: none;\n}\n\n.mega-menu-panel a:hover {\n  background: #f1f5f9;\n}\n\n.mega-menu-panel .mega-menu-promo {\n  grid-column: 1 / -1;\n  margin-top: 8px;\n  padding: 10px 12px;\n  background: #eef2ff;\n  color: #4338ca;\n  font-weight: 600;\n}\n\n.mega-menu a:focus-visible,\n.mega-menu-trigger:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 1px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .mega-menu-panel { transition: none; }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "multilevel-dropdown",
      "name": "Multi-level Dropdown",
      "category": "navigation",
      "tags": [
        "dropdown",
        "submenu",
        "flyout",
        "nested",
        "focus-within",
        "hover"
      ],
      "description": "A nested dropdown where submenus fly out to the side on hover or focus, built from plain nested lists.",
      "url": "https://copy-css.com/snippets/multilevel-dropdown",
      "markdown": "https://copy-css.com/snippets/multilevel-dropdown.md",
      "html": "<nav class=\"multi-menu\" aria-label=\"Main\">\n  <ul>\n    <li>\n      <a href=\"#\">Services</a>\n      <ul>\n        <li><a href=\"#\">Design</a></li>\n        <li>\n          <a href=\"#\">Development</a>\n          <ul>\n            <li><a href=\"#\">Web apps</a></li>\n            <li><a href=\"#\">Mobile</a></li>\n          </ul>\n        </li>\n        <li><a href=\"#\">Hosting</a></li>\n      </ul>\n    </li>\n  </ul>\n</nav>",
      "css": ".multi-menu ul {\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n.multi-menu li {\n  position: relative;\n}\n\n.multi-menu a {\n  display: flex;\n  justify-content: space-between;\n  gap: 16px;\n  padding: 9px 12px;\n  border-radius: 8px;\n  color: #0f172a;\n  font: 500 14px system-ui, sans-serif;\n  text-decoration: none;\n  white-space: nowrap;\n}\n\n/* Arrow on items that have a submenu */\n.multi-menu li:has(> ul) > a::after {\n  content: \"›\";\n  color: #94a3b8;\n}\n\n.multi-menu > ul > li > a::after {\n  transform: rotate(90deg);\n}\n\n.multi-menu li ul {\n  position: absolute;\n  top: 100%;\n  left: 0;\n  z-index: 10;\n  min-width: 150px;\n  padding: 6px;\n  border-radius: 12px;\n  background: #ffffff;\n  box-shadow: 0 0 0 1px #0f172a14, 0 12px 28px -8px #0f172a40;\n  opacity: 0;\n  visibility: hidden;\n  transition: opacity 0.15s ease, visibility 0.15s;\n}\n\n/* Third level flies out to the right */\n.multi-menu li li ul {\n  top: -6px;\n  left: 100%;\n}\n\n.multi-menu li:hover > ul,\n.multi-menu li:focus-within > ul {\n  opacity: 1;\n  visibility: visible;\n}\n\n.multi-menu a:hover,\n.multi-menu li:focus-within > a {\n  background: #f1f5f9;\n}\n\n.multi-menu a:focus-visible {\n  outline: 2px solid #0891b2;\n  outline-offset: -2px;\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "Flexbox",
        "the :has() selector",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "perfect-center",
      "name": "Perfect Centering",
      "category": "layouts",
      "tags": [
        "center",
        "grid",
        "place-items",
        "align",
        "vertical"
      ],
      "description": "Center anything horizontally and vertically with two lines of CSS Grid.",
      "url": "https://copy-css.com/snippets/perfect-center",
      "markdown": "https://copy-css.com/snippets/perfect-center.md",
      "html": "<div class=\"center\">\n  <div>Centered</div>\n</div>",
      "css": "/* Centers its children horizontally and vertically */\n.center {\n  display: grid;\n  place-items: center;\n}",
      "features": [
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "responsive-auto-grid",
      "name": "Responsive Auto Grid",
      "category": "layouts",
      "tags": [
        "grid",
        "responsive",
        "auto-fit",
        "minmax",
        "cards"
      ],
      "description": "A grid that adds and removes columns on its own. No media queries needed.",
      "url": "https://copy-css.com/snippets/responsive-auto-grid",
      "markdown": "https://copy-css.com/snippets/responsive-auto-grid.md",
      "html": "<div class=\"auto-grid\">\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n</div>",
      "css": ".auto-grid {\n  --min: 220px; /* smallest a column may get */\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min)), 1fr));\n  gap: 16px;\n}",
      "features": [
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--min",
          "value": "220px"
        }
      ]
    },
    {
      "id": "sidebar-layout",
      "name": "Sidebar Layout",
      "category": "layouts",
      "tags": [
        "sidebar",
        "flexbox",
        "responsive",
        "wrap",
        "intrinsic"
      ],
      "description": "A sidebar that sits beside the content and stacks automatically when space runs out.",
      "url": "https://copy-css.com/snippets/sidebar-layout",
      "markdown": "https://copy-css.com/snippets/sidebar-layout.md",
      "html": "<div class=\"with-sidebar\">\n  <div>Sidebar</div>\n  <div>Main content</div>\n</div>",
      "css": ".with-sidebar {\n  display: flex;\n  flex-wrap: wrap;\n  gap: 16px;\n}\n\n/* Sidebar: wants to be about 240px wide */\n.with-sidebar > :first-child {\n  flex-basis: 240px;\n  flex-grow: 1;\n}\n\n/* Content: takes the rest, wraps below when narrower than 60% */\n.with-sidebar > :last-child {\n  flex-basis: 0;\n  flex-grow: 999;\n  min-inline-size: 60%;\n}",
      "features": [
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "bento-grid",
      "name": "Bento Grid",
      "category": "layouts",
      "tags": [
        "bento",
        "grid",
        "span",
        "dashboard",
        "features"
      ],
      "description": "A trendy bento box layout with a large hero tile and spanning cells.",
      "url": "https://copy-css.com/snippets/bento-grid",
      "markdown": "https://copy-css.com/snippets/bento-grid.md",
      "html": "<div class=\"bento\">\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n</div>",
      "css": ".bento {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  grid-auto-rows: 160px;\n  gap: 16px;\n}\n\n.bento > :nth-child(1) {\n  grid-column: span 2;\n  grid-row: span 2;\n}\n\n.bento > :nth-child(4) {\n  grid-column: span 2;\n}\n\n@media (max-width: 640px) {\n  .bento { grid-template-columns: repeat(2, 1fr); }\n}",
      "features": [
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "sticky-footer",
      "name": "Sticky Footer Layout",
      "category": "layouts",
      "tags": [
        "footer",
        "sticky",
        "grid",
        "page",
        "full height"
      ],
      "description": "Keeps the footer at the bottom of the screen even when the page is short.",
      "url": "https://copy-css.com/snippets/sticky-footer",
      "markdown": "https://copy-css.com/snippets/sticky-footer.md",
      "html": "<div class=\"page\">\n  <div>Header</div>\n  <div>Content</div>\n  <div>Footer</div>\n</div>",
      "css": "/* Header and footer size to content; the middle row fills the rest */\n.page {\n  display: grid;\n  grid-template-rows: auto 1fr auto;\n  min-height: 100vh;\n}",
      "features": [
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "masonry-columns",
      "name": "Masonry Columns",
      "category": "layouts",
      "tags": [
        "masonry",
        "columns",
        "waterfall",
        "gallery",
        "multi-column"
      ],
      "description": "An image-board style masonry layout using CSS multi-column. Works everywhere.",
      "url": "https://copy-css.com/snippets/masonry-columns",
      "markdown": "https://copy-css.com/snippets/masonry-columns.md",
      "html": "<div class=\"masonry\">\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n</div>",
      "css": ".masonry {\n  columns: 3 200px; /* up to 3 columns, each at least 200px */\n  column-gap: 16px;\n}\n\n.masonry > * {\n  margin-bottom: 16px;\n  break-inside: avoid;\n}",
      "features": [],
      "customProperties": []
    },
    {
      "id": "holy-grail-layout",
      "name": "Holy Grail Layout",
      "category": "layouts",
      "tags": [
        "grid",
        "grid-template-areas",
        "header",
        "sidebar",
        "page"
      ],
      "description": "Header, footer, two sidebars and content with named grid areas. Stacks on small screens.",
      "url": "https://copy-css.com/snippets/holy-grail-layout",
      "markdown": "https://copy-css.com/snippets/holy-grail-layout.md",
      "html": "<div class=\"holy-grail\">\n  <header>Header</header>\n  <nav>Nav</nav>\n  <main>Content</main>\n  <aside>Aside</aside>\n  <footer>Footer</footer>\n</div>",
      "css": ".holy-grail {\n  display: grid;\n  grid-template:\n    \"header header header\" auto\n    \"nav    main   aside\" 1fr\n    \"footer footer footer\" auto\n    / 200px 1fr 200px;\n  gap: 16px;\n  min-height: 100vh;\n}\n\n.holy-grail header { grid-area: header; }\n.holy-grail nav { grid-area: nav; }\n.holy-grail main { grid-area: main; }\n.holy-grail aside { grid-area: aside; }\n.holy-grail footer { grid-area: footer; }\n\n@media (max-width: 720px) {\n  .holy-grail {\n    grid-template:\n      \"header\" auto\n      \"nav\" auto\n      \"main\" 1fr\n      \"aside\" auto\n      \"footer\" auto\n      / 1fr;\n  }\n}",
      "features": [
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "scroll-snap-carousel",
      "name": "Scroll Snap Carousel",
      "category": "layouts",
      "tags": [
        "carousel",
        "slider",
        "scroll-snap",
        "horizontal",
        "swipe"
      ],
      "description": "A swipeable horizontal carousel that snaps each slide into place. No JavaScript.",
      "url": "https://copy-css.com/snippets/scroll-snap-carousel",
      "markdown": "https://copy-css.com/snippets/scroll-snap-carousel.md",
      "html": "<div class=\"snap-row\">\n  <div>1</div>\n  <div>2</div>\n  <div>3</div>\n  <div>4</div>\n  <div>5</div>\n</div>",
      "css": ".snap-row {\n  display: grid;\n  grid-auto-flow: column;\n  grid-auto-columns: 80%;\n  gap: 12px;\n  overflow-x: auto;\n  overscroll-behavior-x: contain;\n  scroll-snap-type: x mandatory;\n  scroll-padding-inline: 8px;\n  padding: 0 8px 8px;\n}\n\n.snap-row > * {\n  scroll-snap-align: start;\n}",
      "features": [
        "CSS Grid",
        "scroll snapping"
      ],
      "customProperties": []
    },
    {
      "id": "aspect-ratio-box",
      "name": "Aspect Ratio Box",
      "category": "layouts",
      "tags": [
        "aspect-ratio",
        "video",
        "responsive",
        "embed",
        "media"
      ],
      "description": "Locks any element to a 16:9 ratio, perfect for video embeds and image placeholders.",
      "url": "https://copy-css.com/snippets/aspect-ratio-box",
      "markdown": "https://copy-css.com/snippets/aspect-ratio-box.md",
      "html": "<div class=\"ratio-box\">16 : 9</div>",
      "css": ".ratio-box {\n  aspect-ratio: 16 / 9;\n  width: 100%;\n}\n\n/* Make embedded media fill the box */\n.ratio-box > iframe,\n.ratio-box > img,\n.ratio-box > video {\n  width: 100%;\n  height: 100%;\n  border: 0;\n  object-fit: cover;\n}",
      "features": [
        "aspect-ratio"
      ],
      "customProperties": []
    },
    {
      "id": "full-bleed-layout",
      "name": "Full Bleed Layout",
      "category": "layouts",
      "tags": [
        "full bleed",
        "article",
        "grid",
        "content width",
        "breakout"
      ],
      "description": "Keeps article text in a readable column while letting chosen elements break out to full width.",
      "url": "https://copy-css.com/snippets/full-bleed-layout",
      "markdown": "https://copy-css.com/snippets/full-bleed-layout.md",
      "html": "<article class=\"flow\">\n  <p>Readable text column.</p>\n  <div class=\"full-bleed\">Full-width banner</div>\n  <p>Back to the column.</p>\n</article>",
      "css": ".flow {\n  --content: 65ch;\n  display: grid;\n  grid-template-columns:\n    [full-start] minmax(16px, 1fr)\n    [content-start] min(var(--content), 100% - 32px) [content-end]\n    minmax(16px, 1fr) [full-end];\n}\n\n.flow > * {\n  grid-column: content;\n}\n\n.flow > .full-bleed {\n  grid-column: full;\n}",
      "features": [
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--content",
          "value": "65ch"
        }
      ]
    },
    {
      "id": "split-screen",
      "name": "Split Screen",
      "category": "layouts",
      "tags": [
        "split",
        "two column",
        "hero",
        "login",
        "flex"
      ],
      "description": "Two equal halves side by side that stack vertically on narrow screens.",
      "url": "https://copy-css.com/snippets/split-screen",
      "markdown": "https://copy-css.com/snippets/split-screen.md",
      "html": "<section class=\"split\">\n  <div>Left</div>\n  <div>Right</div>\n</section>",
      "css": ".split {\n  display: flex;\n  flex-wrap: wrap;\n  min-height: 100vh;\n}\n\n/* Each half is at least 320px; below that they stack */\n.split > * {\n  flex: 1 1 320px;\n}",
      "features": [
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "subgrid-cards",
      "name": "Subgrid Card Alignment",
      "category": "layouts",
      "tags": [
        "subgrid",
        "grid",
        "cards",
        "align",
        "equal height"
      ],
      "description": "Cards side by side whose titles, text and buttons line up across the row, thanks to subgrid.",
      "url": "https://copy-css.com/snippets/subgrid-cards",
      "markdown": "https://copy-css.com/snippets/subgrid-cards.md",
      "html": "<div class=\"sub-cards\">\n  <article>\n    <h3>Fast</h3>\n    <p>Pages load in under a second.</p>\n    <a href=\"#\">Learn more</a>\n  </article>\n  <article>\n    <h3>Secure by default</h3>\n    <p>Encrypted at rest and in transit, with audit logs.</p>\n    <a href=\"#\">Learn more</a>\n  </article>\n</div>",
      "css": ".sub-cards {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n  gap: 16px;\n  font-family: system-ui, sans-serif;\n}\n\n/* Each card spans 3 rows and shares them with its neighbours */\n.sub-cards > * {\n  display: grid;\n  grid-row: span 3;\n  grid-template-rows: subgrid;\n  row-gap: 10px;\n  padding: 16px;\n  border: 1px solid #bbf7d0;\n  border-radius: 14px;\n  background: #fff;\n}\n\n.sub-cards h3 {\n  margin: 0;\n  color: #14532d;\n  font-size: 17px;\n  line-height: 1.25;\n}\n\n.sub-cards p {\n  margin: 0;\n  color: #4b5563;\n  font-size: 14px;\n  line-height: 1.45;\n}\n\n.sub-cards a {\n  align-self: end;\n  padding: 9px;\n  border-radius: 8px;\n  background: #16a34a;\n  color: #fff;\n  font-size: 14px;\n  font-weight: 600;\n  text-align: center;\n  text-decoration: none;\n}",
      "features": [
        "subgrid",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "container-query-card",
      "name": "Container Query Card",
      "category": "layouts",
      "tags": [
        "container queries",
        "@container",
        "responsive",
        "card",
        "component"
      ],
      "description": "A card that switches from stacked to side by side based on its container’s width, not the viewport.",
      "url": "https://copy-css.com/snippets/container-query-card",
      "markdown": "https://copy-css.com/snippets/container-query-card.md",
      "html": "<div class=\"cq-wrap\">\n  <article class=\"cq-card\">\n    <div class=\"cq-media\"></div>\n    <div>\n      <h3>Container queries</h3>\n      <p>This card lays itself out by its own width.</p>\n    </div>\n  </article>\n</div>",
      "css": ".cq-wrap {\n  container-type: inline-size;\n}\n\n.cq-card {\n  display: grid;\n  gap: 10px;\n  padding: 10px;\n  border: 1px solid #e0e7ff;\n  border-radius: 14px;\n  background: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.cq-media {\n  min-height: 72px;\n  border-radius: 10px;\n  background: linear-gradient(135deg, #a5b4fc, #6366f1);\n}\n\n.cq-card h3 {\n  margin: 0 0 4px;\n  color: #1e1b4b;\n  font-size: 15px;\n}\n\n.cq-card p {\n  margin: 0;\n  color: #64748b;\n  font-size: 13px;\n  line-height: 1.4;\n}\n\n/* Side by side once the container is wide enough */\n@container (min-width: 300px) {\n  .cq-card {\n    grid-template-columns: 96px 1fr;\n    align-items: center;\n    gap: 14px;\n  }\n\n  .cq-media {\n    aspect-ratio: 1;\n  }\n}",
      "features": [
        "linear gradients",
        "CSS Grid",
        "container queries",
        "aspect-ratio"
      ],
      "customProperties": []
    },
    {
      "id": "grid-stack",
      "name": "Grid Stack Overlay",
      "category": "layouts",
      "tags": [
        "grid-area",
        "overlay",
        "stack",
        "layer",
        "no absolute",
        "image"
      ],
      "description": "Layer badges and captions over an image by placing everything in one grid cell. No absolute positioning.",
      "url": "https://copy-css.com/snippets/grid-stack",
      "markdown": "https://copy-css.com/snippets/grid-stack.md",
      "html": "<figure class=\"stack\">\n  <div class=\"stack-media\"></div>\n  <span class=\"stack-badge\">New</span>\n  <figcaption>Golden hour</figcaption>\n</figure>",
      "css": ".stack {\n  display: grid;\n  margin: 0;\n}\n\n/* Every child shares the same cell */\n.stack > * {\n  grid-area: 1 / 1;\n}\n\n/* Use an <img> here in real projects */\n.stack-media {\n  min-height: 140px;\n  border-radius: 14px;\n  background: #d4d4d8;\n  object-fit: cover;\n}\n\n.stack-badge {\n  align-self: start;\n  justify-self: end;\n  margin: 10px;\n  padding: 4px 10px;\n  border-radius: 999px;\n  background: #18181b;\n  color: #fff;\n  font: 700 11px system-ui, sans-serif;\n  letter-spacing: 0.06em;\n  text-transform: uppercase;\n}\n\n.stack figcaption {\n  align-self: end;\n  justify-self: start;\n  margin: 10px;\n  padding: 6px 12px;\n  border-radius: 999px;\n  background: rgba(255, 255, 255, 0.85);\n  -webkit-backdrop-filter: blur(6px);\n  backdrop-filter: blur(6px);\n  color: #18181b;\n  font: 600 13px system-ui, sans-serif;\n}",
      "features": [
        "backdrop filters",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "flex-switcher",
      "name": "Flex Switcher",
      "category": "layouts",
      "tags": [
        "switcher",
        "flexbox",
        "responsive",
        "no media query",
        "columns",
        "stack"
      ],
      "description": "Items sit in a row until the container gets too narrow, then all stack at once. No media queries.",
      "url": "https://copy-css.com/snippets/flex-switcher",
      "markdown": "https://copy-css.com/snippets/flex-switcher.md",
      "html": "<div class=\"switcher\">\n  <div>One</div>\n  <div>Two</div>\n  <div>Three</div>\n</div>",
      "css": ".switcher {\n  --threshold: 30rem; /* below this width, everything stacks */\n  display: flex;\n  flex-wrap: wrap;\n  gap: 16px;\n}\n\n/* Wide: negative basis, so they share a row.\n   Narrow: huge basis, so each takes a full row. */\n.switcher > * {\n  flex-grow: 1;\n  flex-basis: calc((var(--threshold) - 100%) * 999);\n}",
      "features": [
        "Flexbox",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--threshold",
          "value": "30rem"
        }
      ]
    },
    {
      "id": "sticky-sidebar",
      "name": "Sticky Sidebar",
      "category": "layouts",
      "tags": [
        "sticky",
        "sidebar",
        "position sticky",
        "scroll",
        "grid",
        "toc"
      ],
      "description": "A sidebar that sticks while the content scrolls. Scroll inside the preview to see it.",
      "url": "https://copy-css.com/snippets/sticky-sidebar",
      "markdown": "https://copy-css.com/snippets/sticky-sidebar.md",
      "html": "<div class=\"sticky-layout\">\n  <aside>Sidebar</aside>\n  <main>\n    <section>Section 1</section>\n    <section>Section 2</section>\n    <section>Section 3</section>\n    <section>Section 4</section>\n  </main>\n</div>",
      "css": ".sticky-layout {\n  display: grid;\n  grid-template-columns: 220px 1fr;\n  align-items: start; /* without this, the sidebar stretches and can't stick */\n  gap: 32px;\n}\n\n.sticky-layout aside {\n  position: sticky;\n  top: 16px;\n}",
      "features": [
        "CSS Grid",
        "sticky positioning"
      ],
      "customProperties": []
    },
    {
      "id": "bento-template-areas",
      "name": "Bento Grid Template Areas",
      "category": "layouts",
      "tags": [
        "bento",
        "grid-template-areas",
        "named areas",
        "dashboard",
        "responsive"
      ],
      "description": "A bento layout drawn with named grid-template-areas, rearranged for phones by redrawing the map.",
      "url": "https://copy-css.com/snippets/bento-template-areas",
      "markdown": "https://copy-css.com/snippets/bento-template-areas.md",
      "html": "<div class=\"bento-areas\">\n  <div class=\"bento-areas-hero\">Hero</div>\n  <div class=\"bento-areas-stats\">Stats</div>\n  <div class=\"bento-areas-team\">Team</div>\n  <div class=\"bento-areas-quote\">Quote</div>\n  <div class=\"bento-areas-cta\">Call to action</div>\n</div>",
      "css": ".bento-areas {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  grid-auto-rows: 140px;\n  grid-template-areas:\n    \"hero  hero  stats\"\n    \"hero  hero  team\"\n    \"quote cta   cta\";\n  gap: 16px;\n}\n\n.bento-areas-hero { grid-area: hero; }\n.bento-areas-stats { grid-area: stats; }\n.bento-areas-team { grid-area: team; }\n.bento-areas-quote { grid-area: quote; }\n.bento-areas-cta { grid-area: cta; }\n\n/* Phones: same tiles, new map */\n@media (max-width: 640px) {\n  .bento-areas {\n    grid-template-columns: 1fr 1fr;\n    grid-template-areas:\n      \"hero  hero\"\n      \"stats team\"\n      \"quote quote\"\n      \"cta   cta\";\n  }\n}",
      "features": [
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "dense-bento-grid",
      "name": "Dense Bento Grid",
      "category": "layouts",
      "tags": [
        "bento",
        "grid-auto-flow",
        "dense",
        "span",
        "gallery",
        "no gaps"
      ],
      "description": "A bento grid of wide, tall and big tiles that backfills empty holes with grid-auto-flow: dense.",
      "url": "https://copy-css.com/snippets/dense-bento-grid",
      "markdown": "https://copy-css.com/snippets/dense-bento-grid.md",
      "html": "<div class=\"bento-dense\">\n  <div class=\"bento-dense-wide\"></div>\n  <div></div>\n  <div class=\"bento-dense-tall\"></div>\n  <div></div>\n  <div class=\"bento-dense-big\"></div>\n  <div></div>\n  <div></div>\n  <div class=\"bento-dense-wide\"></div>\n  <div></div>\n</div>",
      "css": ".bento-dense {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));\n  grid-auto-rows: 120px;\n  grid-auto-flow: dense; /* later small tiles fill earlier holes */\n  gap: 12px;\n}\n\n.bento-dense-wide {\n  grid-column: span 2;\n}\n\n.bento-dense-tall {\n  grid-row: span 2;\n}\n\n.bento-dense-big {\n  grid-column: span 2;\n  grid-row: span 2;\n}",
      "features": [
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "bento-feature-grid",
      "name": "Bento Feature Grid",
      "category": "layouts",
      "tags": [
        "bento",
        "landing page",
        "features",
        "cards",
        "saas"
      ],
      "description": "A landing page feature section in bento style: one dark hero tile, two stat tiles and a wide banner.",
      "url": "https://copy-css.com/snippets/bento-feature-grid",
      "markdown": "https://copy-css.com/snippets/bento-feature-grid.md",
      "html": "<section class=\"bento-features\">\n  <article class=\"bento-features-main\">\n    <h3>Ship faster</h3>\n    <p>Everything you need to launch, in one place.</p>\n  </article>\n  <article>\n    <h3>99.99%</h3>\n    <p>Uptime</p>\n  </article>\n  <article>\n    <h3>40+</h3>\n    <p>Integrations</p>\n  </article>\n  <article class=\"bento-features-wide\">\n    <h3>Built for teams</h3>\n    <p>Roles, comments and shared libraries.</p>\n  </article>\n</section>",
      "css": ".bento-features {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 12px;\n  font: 14px/1.4 system-ui, sans-serif;\n}\n\n.bento-features article {\n  padding: 20px;\n  border-radius: 18px;\n  background: #f4f4f5;\n  color: #18181b;\n}\n\n.bento-features h3 {\n  margin: 0 0 4px;\n  font-size: 22px;\n}\n\n.bento-features p {\n  margin: 0;\n  color: #52525b;\n}\n\n.bento-features .bento-features-main {\n  grid-column: span 2;\n  grid-row: span 2;\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-end;\n  background: #18181b;\n  color: #fafafa;\n}\n\n.bento-features .bento-features-main p {\n  color: #a1a1aa;\n}\n\n.bento-features .bento-features-wide {\n  grid-column: 1 / -1;\n  background: #d9f99d;\n}\n\n@media (max-width: 560px) {\n  .bento-features {\n    grid-template-columns: 1fr 1fr;\n  }\n\n  .bento-features .bento-features-main {\n    grid-row: auto;\n  }\n}",
      "features": [
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "holy-grail-flexbox",
      "name": "Holy Grail Flexbox",
      "category": "layouts",
      "tags": [
        "holy grail",
        "flex-wrap",
        "header",
        "sidebar",
        "no media query"
      ],
      "description": "The holy grail layout with Flexbox: sidebars and content wrap onto their own rows without media queries.",
      "url": "https://copy-css.com/snippets/holy-grail-flexbox",
      "markdown": "https://copy-css.com/snippets/holy-grail-flexbox.md",
      "html": "<div class=\"hg-flex\">\n  <header>Header</header>\n  <div class=\"hg-flex-body\">\n    <nav>Nav</nav>\n    <main>Content</main>\n    <aside>Aside</aside>\n  </div>\n  <footer>Footer</footer>\n</div>",
      "css": ".hg-flex {\n  display: flex;\n  flex-direction: column;\n  gap: 16px;\n  min-height: 100vh;\n}\n\n.hg-flex-body {\n  display: flex;\n  flex: 1;\n  flex-wrap: wrap;\n  gap: 16px;\n}\n\n/* When the row is narrower than 160 + 480 + 160px, items wrap */\n.hg-flex-body nav,\n.hg-flex-body aside {\n  flex: 1 1 160px;\n}\n\n.hg-flex-body main {\n  flex: 4 1 480px;\n}",
      "features": [
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "dashboard-app-shell",
      "name": "Dashboard App Shell",
      "category": "layouts",
      "tags": [
        "dashboard",
        "admin",
        "sidebar",
        "top bar",
        "independent scroll",
        "grid"
      ],
      "description": "A full-height admin layout with a sidebar, a top bar and a main area that scrolls on its own.",
      "url": "https://copy-css.com/snippets/dashboard-app-shell",
      "markdown": "https://copy-css.com/snippets/dashboard-app-shell.md",
      "html": "<div class=\"app-shell\">\n  <aside class=\"app-shell-side\">Sidebar</aside>\n  <header class=\"app-shell-top\">Top bar</header>\n  <main class=\"app-shell-main\">\n    <div></div>\n    <div></div>\n    <div></div>\n    <div></div>\n    <div></div>\n    <div></div>\n  </main>\n</div>",
      "css": ".app-shell {\n  --side: 240px;\n  display: grid;\n  grid-template:\n    \"side top\" auto\n    \"side main\" 1fr\n    / var(--side) 1fr;\n  height: 100vh;\n  height: 100dvh;\n}\n\n.app-shell-side {\n  grid-area: side;\n  overflow-y: auto;\n}\n\n.app-shell-top {\n  grid-area: top;\n}\n\n/* Only the main area scrolls; sidebar and top bar stay put */\n.app-shell-main {\n  grid-area: main;\n  min-height: 0;\n  overflow-y: auto;\n}\n\n/* Small screens: drop the sidebar (open it from a menu button instead) */\n@media (max-width: 720px) {\n  .app-shell {\n    grid-template:\n      \"top\" auto\n      \"main\" 1fr\n      / 1fr;\n  }\n\n  .app-shell-side {\n    display: none;\n  }\n}",
      "features": [
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--side",
          "value": "240px"
        }
      ]
    },
    {
      "id": "docs-layout",
      "name": "Docs Page Layout",
      "category": "layouts",
      "tags": [
        "documentation",
        "three column",
        "table of contents",
        "sticky",
        "readable width"
      ],
      "description": "A three-column docs layout: sticky nav, a readable article column and an on-page TOC that hide in steps.",
      "url": "https://copy-css.com/snippets/docs-layout",
      "markdown": "https://copy-css.com/snippets/docs-layout.md",
      "html": "<div class=\"docs-layout\">\n  <nav class=\"docs-layout-nav\">Nav</nav>\n  <main class=\"docs-layout-main\">Article</main>\n  <aside class=\"docs-layout-toc\">On this page</aside>\n</div>",
      "css": ".docs-layout {\n  --nav: 220px;\n  --content: 72ch;\n  --toc: 200px;\n  display: grid;\n  grid-template-columns: var(--nav) minmax(0, var(--content)) var(--toc);\n  justify-content: center;\n  align-items: start;\n  gap: 32px;\n}\n\n.docs-layout-nav,\n.docs-layout-toc {\n  position: sticky;\n  top: 24px;\n}\n\n/* Medium screens: drop the table of contents */\n@media (max-width: 1100px) {\n  .docs-layout {\n    grid-template-columns: var(--nav) minmax(0, var(--content));\n  }\n\n  .docs-layout-toc {\n    display: none;\n  }\n}\n\n/* Phones: article only (show the nav from a menu button) */\n@media (max-width: 760px) {\n  .docs-layout {\n    grid-template-columns: minmax(0, 1fr);\n  }\n\n  .docs-layout-nav {\n    display: none;\n  }\n}",
      "features": [
        "CSS Grid",
        "sticky positioning",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--nav",
          "value": "220px"
        },
        {
          "name": "--content",
          "value": "72ch"
        },
        {
          "name": "--toc",
          "value": "200px"
        }
      ]
    },
    {
      "id": "grid-row-span-masonry",
      "name": "Grid Row-Span Masonry",
      "category": "layouts",
      "tags": [
        "masonry",
        "grid",
        "row span",
        "reading order",
        "pinterest"
      ],
      "description": "Masonry built on CSS Grid with tiny rows and per-item row spans, so items keep left-to-right order.",
      "url": "https://copy-css.com/snippets/grid-row-span-masonry",
      "markdown": "https://copy-css.com/snippets/grid-row-span-masonry.md",
      "html": "<div class=\"grid-masonry\">\n  <div style=\"--rows: 10\"></div>\n  <div style=\"--rows: 16\"></div>\n  <div style=\"--rows: 8\"></div>\n  <div style=\"--rows: 13\"></div>\n  <div style=\"--rows: 9\"></div>\n  <div style=\"--rows: 14\"></div>\n  <div style=\"--rows: 11\"></div>\n  <div style=\"--rows: 7\"></div>\n  <div style=\"--rows: 12\"></div>\n</div>",
      "css": "/* Each item spans --rows rows of 8px: set it from the item's height */\n.grid-masonry {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));\n  grid-auto-rows: 8px;\n  column-gap: 16px;\n}\n\n.grid-masonry > * {\n  grid-row: span var(--rows, 20);\n  margin-bottom: 16px;\n}",
      "features": [
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": []
    },
    {
      "id": "justified-gallery",
      "name": "Justified Gallery Rows",
      "category": "layouts",
      "tags": [
        "masonry",
        "photo gallery",
        "flex-grow",
        "aspect-ratio",
        "flickr"
      ],
      "description": "A photo gallery where every row fills the width and photos keep their shape, like Flickr or Google Photos.",
      "url": "https://copy-css.com/snippets/justified-gallery",
      "markdown": "https://copy-css.com/snippets/justified-gallery.md",
      "html": "<div class=\"justified\">\n  <div style=\"--r: 1.5\"></div>\n  <div style=\"--r: 0.75\"></div>\n  <div style=\"--r: 1\"></div>\n  <div style=\"--r: 1.33\"></div>\n  <div style=\"--r: 1.78\"></div>\n  <div style=\"--r: 0.8\"></div>\n  <div style=\"--r: 1.2\"></div>\n</div>",
      "css": "/* --r is each photo's width / height ratio */\n.justified {\n  --row-height: 180px;\n  display: flex;\n  flex-wrap: wrap;\n  gap: 8px;\n}\n\n.justified > * {\n  flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row-height));\n  aspect-ratio: var(--r);\n}\n\n.justified img {\n  display: block;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n}\n\n/* Keeps the last row from stretching */\n.justified::after {\n  content: \"\";\n  flex-grow: 1000000;\n}",
      "features": [
        "Flexbox",
        "aspect-ratio",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--row-height",
          "value": "180px"
        }
      ]
    },
    {
      "id": "flexbox-sticky-footer",
      "name": "Flexbox Sticky Footer",
      "category": "layouts",
      "tags": [
        "footer",
        "margin-top auto",
        "flex column",
        "full height",
        "page"
      ],
      "description": "Keeps the footer at the bottom of short pages with a flex column and margin-top: auto on the footer.",
      "url": "https://copy-css.com/snippets/flexbox-sticky-footer",
      "markdown": "https://copy-css.com/snippets/flexbox-sticky-footer.md",
      "html": "<div class=\"flex-page\">\n  <header>Header</header>\n  <main>Short content</main>\n  <footer>Footer</footer>\n</div>",
      "css": ".flex-page {\n  display: flex;\n  flex-direction: column;\n  min-height: 100vh;\n  min-height: 100dvh;\n}\n\n/* Pushes the footer down, however many elements come before it */\n.flex-page > footer {\n  margin-top: auto;\n}",
      "features": [
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "reveal-footer",
      "name": "Reveal Footer",
      "category": "layouts",
      "tags": [
        "footer",
        "curtain",
        "parallax",
        "position sticky",
        "z-index"
      ],
      "description": "A footer that sits underneath the page and is uncovered as the content scrolls away, like lifting a curtain.",
      "url": "https://copy-css.com/snippets/reveal-footer",
      "markdown": "https://copy-css.com/snippets/reveal-footer.md",
      "html": "<div class=\"reveal-page\">\n  <main class=\"reveal-page-main\">\n    <h2>Keep scrolling</h2>\n    <p>The footer is waiting underneath this page.</p>\n  </main>\n  <footer class=\"reveal-page-footer\">Studio 2026</footer>\n</div>",
      "css": ".reveal-page {\n  font: 15px/1.5 system-ui, sans-serif;\n}\n\n/* The page slides over the footer */\n.reveal-page-main {\n  position: relative;\n  z-index: 1;\n  box-sizing: border-box;\n  min-height: 100vh;\n  padding: 24px;\n  border-radius: 0 0 24px 24px;\n  background: #ffffff;\n  color: #334155;\n  box-shadow: 0 16px 32px -16px #0f172a59;\n}\n\n.reveal-page-main h2 {\n  margin: 0 0 8px;\n  color: #0f172a;\n}\n\n/* Sticks to the bottom, behind the page, until the page scrolls past */\n.reveal-page-footer {\n  position: sticky;\n  bottom: 0;\n  display: grid;\n  place-items: center;\n  min-height: 240px;\n  background: #0f172a;\n  color: #e2e8f0;\n  font-weight: 600;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "sticky positioning"
      ],
      "customProperties": []
    },
    {
      "id": "sticky-action-bar",
      "name": "Sticky Action Bar",
      "category": "layouts",
      "tags": [
        "sticky bottom",
        "checkout",
        "mobile",
        "call to action",
        "safe area"
      ],
      "description": "A bottom bar with a price and a buy button that stays in view while the page scrolls, safe-area aware.",
      "url": "https://copy-css.com/snippets/sticky-action-bar",
      "markdown": "https://copy-css.com/snippets/sticky-action-bar.md",
      "html": "<div class=\"action-page\">\n  <div class=\"action-page-content\">\n    <h3>Trail Runner</h3>\n    <p>Light, grippy and made for long days on rough ground.</p>\n    <p>Recycled mesh upper, foam midsole, 8 mm drop.</p>\n    <p>Free returns within 30 days.</p>\n  </div>\n  <div class=\"action-bar\">\n    <span><b>$129</b> incl. tax</span>\n    <a href=\"#\">Add to cart</a>\n  </div>\n</div>",
      "css": ".action-page {\n  background: #ffffff;\n  color: #334155;\n  font: 15px/1.5 system-ui, sans-serif;\n}\n\n.action-page-content {\n  padding: 16px;\n}\n\n.action-page-content h3 {\n  margin: 0 0 6px;\n  color: #0f172a;\n}\n\n.action-page-content p {\n  margin: 0 0 10px;\n}\n\n/* Sticks to the bottom of the screen (or scroll box) */\n.action-bar {\n  position: sticky;\n  bottom: 0;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));\n  border-top: 1px solid #e2e8f0;\n  background: #ffffffe6;\n  -webkit-backdrop-filter: blur(8px);\n  backdrop-filter: blur(8px);\n}\n\n.action-bar b {\n  color: #0f172a;\n  font-size: 18px;\n}\n\n.action-bar a {\n  padding: 10px 16px;\n  border-radius: 10px;\n  background: #16a34a;\n  color: #ffffff;\n  font-weight: 600;\n  text-decoration: none;\n  white-space: nowrap;\n}\n\n.action-bar a:hover {\n  background: #15803d;\n}\n\n.action-bar a:focus-visible {\n  outline: 2px solid #15803d;\n  outline-offset: 2px;\n}",
      "features": [
        "backdrop filters",
        "Flexbox",
        "sticky positioning",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "split-login-layout",
      "name": "Split Screen Login",
      "category": "layouts",
      "tags": [
        "split screen",
        "sign in",
        "auth page",
        "two column",
        "responsive"
      ],
      "description": "A sign-in page split into a brand panel and a centered form, with the panel turning into a banner on phones.",
      "url": "https://copy-css.com/snippets/split-login-layout",
      "markdown": "https://copy-css.com/snippets/split-login-layout.md",
      "html": "<div class=\"split-login\">\n  <div class=\"split-login-art\" aria-hidden=\"true\"></div>\n  <form class=\"split-login-form\">\n    <h2>Sign in</h2>\n    <label>Email\n      <input type=\"email\" autocomplete=\"email\" placeholder=\"you@example.com\">\n    </label>\n    <button type=\"submit\">Continue</button>\n  </form>\n</div>",
      "css": ".split-login {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  min-height: 100vh;\n  min-height: 100dvh;\n  background: #ffffff;\n}\n\n.split-login-art {\n  background:\n    radial-gradient(circle at 30% 30%, #f472b6, #f472b600 60%),\n    linear-gradient(135deg, #4f46e5, #7c3aed);\n}\n\n.split-login-form {\n  display: grid;\n  align-content: center;\n  gap: 14px;\n  box-sizing: border-box;\n  width: min(100%, 340px);\n  margin: 0 auto;\n  padding: 32px 24px;\n  color: #0f172a;\n  font: 15px/1.4 system-ui, sans-serif;\n}\n\n.split-login-form h2 {\n  margin: 0;\n  font-size: 26px;\n}\n\n.split-login-form label {\n  display: grid;\n  gap: 6px;\n  color: #475569;\n  font-weight: 600;\n}\n\n.split-login-form input {\n  padding: 11px 12px;\n  border: 1px solid #cbd5e1;\n  border-radius: 10px;\n  font: inherit;\n}\n\n.split-login-form button {\n  padding: 11px 12px;\n  border: 0;\n  border-radius: 10px;\n  background: #4f46e5;\n  color: #ffffff;\n  font: 600 15px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.split-login-form input:focus-visible,\n.split-login-form button:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 2px;\n}\n\n/* Phones: the art becomes a short banner on top */\n@media (max-width: 720px) {\n  .split-login {\n    grid-template-columns: 1fr;\n    grid-template-rows: 140px 1fr;\n  }\n}",
      "features": [
        "linear gradients",
        "radial gradients",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "half-bleed-split",
      "name": "Half-Bleed Split",
      "category": "layouts",
      "tags": [
        "split screen",
        "full bleed",
        "container",
        "image edge",
        "hero"
      ],
      "description": "Text stays aligned to the page container while the image half runs all the way to the edge of the screen.",
      "url": "https://copy-css.com/snippets/half-bleed-split",
      "markdown": "https://copy-css.com/snippets/half-bleed-split.md",
      "html": "<section class=\"half-bleed\">\n  <div class=\"half-bleed-text\">\n    <h2>Made for makers</h2>\n    <p>Text keeps to the page grid. The image runs to the edge.</p>\n  </div>\n  <div class=\"half-bleed-media\"></div>\n</section>",
      "css": ".half-bleed {\n  --content: 1100px;\n  --gutter: 24px;\n  display: grid;\n  grid-template-columns:\n    minmax(var(--gutter), 1fr)\n    minmax(0, calc(var(--content) / 2))\n    minmax(0, calc(var(--content) / 2))\n    minmax(var(--gutter), 1fr);\n  align-items: center;\n  font: 16px/1.5 system-ui, sans-serif;\n}\n\n.half-bleed-text {\n  grid-column: 2;\n  padding-right: 10%;\n  color: #44403c;\n}\n\n.half-bleed-text h2 {\n  margin: 0 0 8px;\n  color: #1c1917;\n  font-size: 32px;\n  line-height: 1.1;\n}\n\n.half-bleed-text p {\n  margin: 0;\n}\n\n/* From the middle of the container to the right edge of the screen */\n.half-bleed-media {\n  grid-column: 3 / -1;\n  align-self: stretch;\n  min-height: 360px;\n}\n\n.half-bleed-media img {\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n}\n\n@media (max-width: 720px) {\n  .half-bleed {\n    grid-template-columns: var(--gutter) 1fr var(--gutter);\n    row-gap: 24px;\n  }\n\n  .half-bleed-text {\n    padding: 0;\n  }\n\n  .half-bleed-media {\n    grid-column: 1 / -1;\n    min-height: 240px;\n  }\n}",
      "features": [
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--content",
          "value": "1100px"
        },
        {
          "name": "--gutter",
          "value": "24px"
        }
      ]
    },
    {
      "id": "diagonal-split",
      "name": "Diagonal Split Screen",
      "category": "layouts",
      "tags": [
        "split screen",
        "clip-path",
        "diagonal",
        "hero",
        "two audiences"
      ],
      "description": "A two-sided hero cut by a diagonal line with clip-path, each side holding its own message and link.",
      "url": "https://copy-css.com/snippets/diagonal-split",
      "markdown": "https://copy-css.com/snippets/diagonal-split.md",
      "html": "<section class=\"diag-split\">\n  <div class=\"diag-split-a\">\n    <h2>For buyers</h2>\n    <a href=\"#\">Shop now</a>\n  </div>\n  <div class=\"diag-split-b\">\n    <h2>For sellers</h2>\n    <a href=\"#\">Start selling</a>\n  </div>\n</section>",
      "css": ".diag-split {\n  display: grid;\n  min-height: 60vh;\n  font: 15px/1.3 system-ui, sans-serif;\n}\n\n/* Both halves share one grid cell; the second is cut diagonally */\n.diag-split > * {\n  grid-area: 1 / 1;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  gap: 10px;\n  padding: 40px;\n}\n\n.diag-split h2 {\n  margin: 0;\n  font-size: 28px;\n}\n\n.diag-split a {\n  color: inherit;\n  font-weight: 700;\n}\n\n.diag-split a:focus-visible {\n  outline: 2px solid currentColor;\n  outline-offset: 3px;\n}\n\n.diag-split-a {\n  align-items: flex-start;\n  padding-right: 55%;\n  background: #fef3c7;\n  color: #78350f;\n}\n\n.diag-split-b {\n  align-items: flex-end;\n  padding-left: 55%;\n  background: #1e1b4b;\n  color: #e0e7ff;\n  text-align: right;\n  clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%);\n}\n\n/* Phones: stack, with a slanted top edge on the second half */\n@media (max-width: 560px) {\n  .diag-split > * {\n    grid-area: auto;\n    padding: 32px 24px;\n  }\n\n  .diag-split-b {\n    margin-top: -24px;\n    clip-path: polygon(0 24px, 100% 0, 100% 100%, 0 100%);\n  }\n}",
      "features": [
        "clip paths",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "zigzag-features",
      "name": "Zigzag Feature Rows",
      "category": "layouts",
      "tags": [
        "alternating",
        "image text",
        "landing page",
        "nth-child",
        "order"
      ],
      "description": "Feature rows that alternate image and text sides down the page, then stack in order on phones.",
      "url": "https://copy-css.com/snippets/zigzag-features",
      "markdown": "https://copy-css.com/snippets/zigzag-features.md",
      "html": "<section class=\"feature-zigzag\">\n  <div class=\"feature-zigzag-row\">\n    <div class=\"feature-zigzag-media\"></div>\n    <div class=\"feature-zigzag-text\"><h3>Plan</h3><p>Map the work in minutes.</p></div>\n  </div>\n  <div class=\"feature-zigzag-row\">\n    <div class=\"feature-zigzag-media\"></div>\n    <div class=\"feature-zigzag-text\"><h3>Build</h3><p>Ship it with your team.</p></div>\n  </div>\n  <div class=\"feature-zigzag-row\">\n    <div class=\"feature-zigzag-media\"></div>\n    <div class=\"feature-zigzag-text\"><h3>Launch</h3><p>Go live with one click.</p></div>\n  </div>\n</section>",
      "css": ".feature-zigzag {\n  display: grid;\n  gap: 56px;\n  font: 16px/1.5 system-ui, sans-serif;\n}\n\n.feature-zigzag-row {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  align-items: center;\n  gap: 40px;\n}\n\n/* Every second row puts the image on the right */\n.feature-zigzag-row:nth-child(even) .feature-zigzag-media {\n  order: 2;\n}\n\n.feature-zigzag-media {\n  aspect-ratio: 4 / 3;\n  border-radius: 16px;\n  background: linear-gradient(135deg, #a5b4fc, #6366f1);\n}\n\n.feature-zigzag-text h3 {\n  margin: 0 0 6px;\n  color: #0f172a;\n  font-size: 24px;\n}\n\n.feature-zigzag-text p {\n  margin: 0;\n  color: #475569;\n}\n\n@media (max-width: 640px) {\n  .feature-zigzag-row {\n    grid-template-columns: 1fr;\n    gap: 16px;\n  }\n\n  .feature-zigzag-row:nth-child(even) .feature-zigzag-media {\n    order: 0;\n  }\n}",
      "features": [
        "linear gradients",
        "CSS Grid",
        "aspect-ratio"
      ],
      "customProperties": []
    },
    {
      "id": "max-columns-grid",
      "name": "Max Columns Grid",
      "category": "layouts",
      "tags": [
        "responsive grid",
        "auto-fill",
        "column limit",
        "minmax",
        "cards"
      ],
      "description": "A responsive auto-fill grid that wraps on small screens but never grows past a set number of columns.",
      "url": "https://copy-css.com/snippets/max-columns-grid",
      "markdown": "https://copy-css.com/snippets/max-columns-grid.md",
      "html": "<div class=\"grid-max\">\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n</div>",
      "css": ".grid-max {\n  --cols: 3;   /* never more than this */\n  --min: 200px; /* never narrower than this */\n  --gap: 16px;\n  display: grid;\n  grid-template-columns: repeat(\n    auto-fill,\n    minmax(min(100%, max(var(--min), (100% - (var(--cols) - 1) * var(--gap)) / var(--cols))), 1fr)\n  );\n  gap: var(--gap);\n}",
      "features": [
        "CSS Grid",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--cols",
          "value": "3"
        },
        {
          "name": "--min",
          "value": "200px"
        },
        {
          "name": "--gap",
          "value": "16px"
        }
      ]
    },
    {
      "id": "centered-last-row",
      "name": "Centered Last Row Grid",
      "category": "layouts",
      "tags": [
        "flex-wrap",
        "orphans",
        "centered",
        "responsive grid",
        "logos",
        "team"
      ],
      "description": "A wrapping grid of equal cards where an uneven last row is centered instead of hugging the left.",
      "url": "https://copy-css.com/snippets/centered-last-row",
      "markdown": "https://copy-css.com/snippets/centered-last-row.md",
      "html": "<div class=\"grid-center\">\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n  <div></div>\n</div>",
      "css": "/* Flexbox, not Grid: only flex can center a short last row */\n.grid-center {\n  --cols: 3;\n  --min: 180px;\n  --gap: 16px;\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  gap: var(--gap);\n}\n\n.grid-center > * {\n  flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));\n  min-width: min(100%, var(--min));\n}",
      "features": [
        "Flexbox",
        "custom properties"
      ],
      "customProperties": [
        {
          "name": "--cols",
          "value": "3"
        },
        {
          "name": "--min",
          "value": "180px"
        },
        {
          "name": "--gap",
          "value": "16px"
        }
      ]
    },
    {
      "id": "twelve-column-grid",
      "name": "Twelve Column Grid",
      "category": "layouts",
      "tags": [
        "12 column",
        "grid system",
        "span",
        "bootstrap alternative",
        "mobile first"
      ],
      "description": "A tiny mobile-first 12-column grid system: everything is full width until the span classes kick in.",
      "url": "https://copy-css.com/snippets/twelve-column-grid",
      "markdown": "https://copy-css.com/snippets/twelve-column-grid.md",
      "html": "<div class=\"grid12\">\n  <div class=\"grid12-span-12\">12</div>\n  <div class=\"grid12-span-6\">6</div>\n  <div class=\"grid12-span-6\">6</div>\n  <div class=\"grid12-span-4\">4</div>\n  <div class=\"grid12-span-4\">4</div>\n  <div class=\"grid12-span-4\">4</div>\n  <div class=\"grid12-span-8\">8</div>\n  <div class=\"grid12-span-4\">4</div>\n</div>",
      "css": ".grid12 {\n  display: grid;\n  grid-template-columns: repeat(12, minmax(0, 1fr));\n  gap: 16px;\n}\n\n/* Mobile first: every item takes the full row */\n.grid12 > * {\n  grid-column: span 12;\n}\n\n@media (min-width: 640px) {\n  .grid12 > .grid12-span-3 { grid-column: span 3; }\n  .grid12 > .grid12-span-4 { grid-column: span 4; }\n  .grid12 > .grid12-span-6 { grid-column: span 6; }\n  .grid12 > .grid12-span-8 { grid-column: span 8; }\n  .grid12 > .grid12-span-9 { grid-column: span 9; }\n}",
      "features": [
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "container-query-grid",
      "name": "Container Query Grid",
      "category": "layouts",
      "tags": [
        "@container",
        "responsive grid",
        "columns",
        "component",
        "breakpoints"
      ],
      "description": "A card grid that picks 1, 2, 3 or 4 columns from the width of its container, not the viewport.",
      "url": "https://copy-css.com/snippets/container-query-grid",
      "markdown": "https://copy-css.com/snippets/container-query-grid.md",
      "html": "<div class=\"cq-grid-wrap\">\n  <div class=\"cq-grid\">\n    <div></div>\n    <div></div>\n    <div></div>\n    <div></div>\n    <div></div>\n    <div></div>\n  </div>\n</div>",
      "css": ".cq-grid-wrap {\n  container-type: inline-size;\n}\n\n.cq-grid {\n  display: grid;\n  grid-template-columns: 1fr;\n  gap: 16px;\n}\n\n@container (min-width: 300px) {\n  .cq-grid { grid-template-columns: repeat(2, 1fr); }\n}\n\n@container (min-width: 500px) {\n  .cq-grid { grid-template-columns: repeat(3, 1fr); }\n}\n\n@container (min-width: 700px) {\n  .cq-grid { grid-template-columns: repeat(4, 1fr); }\n}",
      "features": [
        "CSS Grid",
        "container queries"
      ],
      "customProperties": []
    },
    {
      "id": "css-tooltip",
      "name": "Pure CSS Tooltip",
      "category": "effects",
      "tags": [
        "tooltip",
        "hover",
        "attr",
        "popover"
      ],
      "description": "A tooltip that reads its text from a data attribute and fades in on hover.",
      "url": "https://copy-css.com/snippets/css-tooltip",
      "markdown": "https://copy-css.com/snippets/css-tooltip.md",
      "html": "<button class=\"tooltip\" data-tip=\"Copied to clipboard!\">Hover me</button>",
      "css": ".tooltip {\n  position: relative;\n  padding: 10px 18px;\n  border: 1px solid #d1d5db;\n  border-radius: 8px;\n  background: #fff;\n  font: 500 15px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.tooltip::after {\n  content: attr(data-tip);\n  position: absolute;\n  bottom: calc(100% + 10px);\n  left: 50%;\n  padding: 6px 10px;\n  border-radius: 6px;\n  background: #111827;\n  color: #fff;\n  font-size: 13px;\n  white-space: nowrap;\n  opacity: 0;\n  pointer-events: none;\n  transform: translate(-50%, 4px);\n  transition: opacity 0.2s ease, transform 0.2s ease;\n}\n\n.tooltip:hover::after,\n.tooltip:focus-visible::after {\n  opacity: 1;\n  transform: translate(-50%, 0);\n}",
      "features": [
        "transitions",
        "transforms",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "morphing-blob",
      "name": "Morphing Blob",
      "category": "effects",
      "tags": [
        "blob",
        "morph",
        "border-radius",
        "organic",
        "animation"
      ],
      "description": "An organic gradient blob that slowly morphs shape using border-radius.",
      "url": "https://copy-css.com/snippets/morphing-blob",
      "markdown": "https://copy-css.com/snippets/morphing-blob.md",
      "html": "<div class=\"blob\"></div>",
      "css": ".blob {\n  width: 150px;\n  height: 150px;\n  background: linear-gradient(135deg, #f472b6, #8b5cf6);\n  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;\n  animation: morph 8s ease-in-out infinite;\n}\n\n@keyframes morph {\n  50% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .blob {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "hamburger-menu",
      "name": "Hamburger to X",
      "category": "effects",
      "tags": [
        "hamburger",
        "menu",
        "icon",
        "navigation",
        "toggle"
      ],
      "description": "A pure CSS hamburger menu icon that animates into an X when clicked, using a hidden checkbox.",
      "url": "https://copy-css.com/snippets/hamburger-menu",
      "markdown": "https://copy-css.com/snippets/hamburger-menu.md",
      "html": "<label class=\"burger\">\n  <input class=\"burger-toggle\" type=\"checkbox\" aria-label=\"Menu\">\n  <span class=\"burger-line\"></span>\n</label>",
      "css": ".burger {\n  position: relative;\n  display: inline-block;\n  width: 44px;\n  height: 44px;\n  border-radius: 8px;\n  cursor: pointer;\n}\n\n.burger-toggle {\n  position: absolute;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.burger:has(.burger-toggle:focus-visible) {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}\n\n.burger-line,\n.burger-line::before,\n.burger-line::after {\n  position: absolute;\n  width: 28px;\n  height: 3px;\n  border-radius: 3px;\n  background: #111;\n  transition: transform 0.3s ease, top 0.3s ease, background 0.3s ease;\n}\n\n.burger-line {\n  top: calc(50% - 1.5px);\n  left: 8px;\n}\n\n.burger-line::before,\n.burger-line::after {\n  content: \"\";\n  left: 0;\n}\n\n.burger-line::before {\n  top: -9px;\n}\n\n.burger-line::after {\n  top: 9px;\n}\n\n.burger-toggle:checked + .burger-line {\n  background: transparent;\n}\n\n.burger-toggle:checked + .burger-line::before {\n  top: 0;\n  transform: rotate(45deg);\n}\n\n.burger-toggle:checked + .burger-line::after {\n  top: 0;\n  transform: rotate(-45deg);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .burger-line,\n  .burger-line::before,\n  .burger-line::after {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "avatar-stack",
      "name": "Avatar Stack",
      "category": "effects",
      "tags": [
        "avatar",
        "stack",
        "overlap",
        "users",
        "team"
      ],
      "description": "Overlapping avatar circles that pop up on hover, with a \"+N\" counter.",
      "url": "https://copy-css.com/snippets/avatar-stack",
      "markdown": "https://copy-css.com/snippets/avatar-stack.md",
      "html": "<div class=\"avatars\">\n  <span style=\"background:#f472b6\">AK</span>\n  <span style=\"background:#60a5fa\">JM</span>\n  <span style=\"background:#34d399\">RS</span>\n  <span class=\"more\">+5</span>\n</div>",
      "css": ".avatars {\n  display: flex;\n}\n\n.avatars span {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 44px;\n  height: 44px;\n  margin-left: -12px;\n  border: 3px solid #fff;\n  border-radius: 50%;\n  color: #fff;\n  font: 700 14px system-ui, sans-serif;\n  transition: transform 0.2s ease;\n}\n\n.avatars span:first-child {\n  margin-left: 0;\n}\n\n.avatars span:hover {\n  z-index: 1;\n  transform: translateY(-4px);\n}\n\n.avatars .more {\n  background: #111;\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "live-badge",
      "name": "Live Badge",
      "category": "effects",
      "tags": [
        "badge",
        "live",
        "pill",
        "pulse",
        "status"
      ],
      "description": "A \"Live\" status pill with a pulsing dot, made with a single element.",
      "url": "https://copy-css.com/snippets/live-badge",
      "markdown": "https://copy-css.com/snippets/live-badge.md",
      "html": "<span class=\"badge-live\">Live</span>",
      "css": ".badge-live {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  padding: 7px 14px 7px 12px;\n  border-radius: 999px;\n  background: #fef2f2;\n  color: #dc2626;\n  font: 700 13px/1 system-ui, sans-serif;\n  letter-spacing: 0.06em;\n  text-transform: uppercase;\n}\n\n.badge-live::before {\n  content: \"\";\n  width: 8px;\n  height: 8px;\n  border-radius: 50%;\n  background: currentColor;\n  animation: live-pulse 1.4s ease-out infinite;\n}\n\n@keyframes live-pulse {\n  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }\n  100% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .badge-live::before {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "box shadows",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "notification-badge",
      "name": "Notification Badge",
      "category": "effects",
      "tags": [
        "badge",
        "bell",
        "notification",
        "count",
        "icon"
      ],
      "description": "A bell icon button with an unread-count badge that rings on hover.",
      "url": "https://copy-css.com/snippets/notification-badge",
      "markdown": "https://copy-css.com/snippets/notification-badge.md",
      "html": "<button class=\"notify-bell\" aria-label=\"3 notifications\">\n  <svg viewBox=\"0 0 24 24\"><path d=\"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9\"/><path d=\"M10.3 21a1.94 1.94 0 0 0 3.4 0\"/></svg>\n  <span class=\"notify-bell-count\">3</span>\n</button>",
      "css": ".notify-bell {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 48px;\n  height: 48px;\n  border: 1px solid #e5e7eb;\n  border-radius: 14px;\n  background: #fff;\n  cursor: pointer;\n}\n\n.notify-bell svg {\n  width: 22px;\n  height: 22px;\n  fill: none;\n  stroke: #111;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  transform-origin: top center;\n}\n\n.notify-bell:hover svg {\n  animation: notify-bell-ring 0.6s ease;\n}\n\n.notify-bell-count {\n  position: absolute;\n  top: -6px;\n  right: -6px;\n  box-sizing: border-box;\n  min-width: 20px;\n  height: 20px;\n  padding: 0 5px;\n  border: 2px solid #fff;\n  border-radius: 999px;\n  background: #ef4444;\n  color: #fff;\n  font: 700 11px/16px system-ui, sans-serif;\n  text-align: center;\n}\n\n@keyframes notify-bell-ring {\n  20% { transform: rotate(14deg); }\n  40% { transform: rotate(-12deg); }\n  60% { transform: rotate(8deg); }\n  80% { transform: rotate(-4deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .notify-bell:hover svg {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "infinite-marquee",
      "name": "Infinite Marquee",
      "category": "effects",
      "tags": [
        "marquee",
        "scroll",
        "ticker",
        "logos",
        "loop",
        "animation"
      ],
      "description": "A seamless, endlessly scrolling row with faded edges. Great for logo strips.",
      "url": "https://copy-css.com/snippets/infinite-marquee",
      "markdown": "https://copy-css.com/snippets/infinite-marquee.md",
      "html": "<div class=\"marquee\">\n  <div class=\"marquee-track\">\n    <span>HTML</span><span>CSS</span><span>Design</span><span>Motion</span>\n    <span aria-hidden=\"true\">HTML</span><span aria-hidden=\"true\">CSS</span><span aria-hidden=\"true\">Design</span><span aria-hidden=\"true\">Motion</span>\n  </div>\n</div>",
      "css": "/* The track holds the items twice so the loop is seamless */\n.marquee {\n  width: 260px;\n  overflow: hidden;\n  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);\n  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);\n}\n\n.marquee-track {\n  display: flex;\n  gap: 12px;\n  width: max-content;\n  animation: marquee-scroll 10s linear infinite;\n}\n\n.marquee-track span {\n  padding: 8px 16px;\n  border-radius: 999px;\n  background: #111;\n  color: #fff;\n  font: 600 14px system-ui, sans-serif;\n}\n\n.marquee:hover .marquee-track {\n  animation-play-state: paused;\n}\n\n@keyframes marquee-scroll {\n  to { transform: translateX(calc(-50% - 6px)); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .marquee-track {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "linear gradients",
        "masks",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "story-ring-avatar",
      "name": "Story Ring Avatar",
      "category": "effects",
      "tags": [
        "avatar",
        "story",
        "ring",
        "conic-gradient",
        "social"
      ],
      "description": "An avatar wrapped in a colorful gradient ring, like social media stories.",
      "url": "https://copy-css.com/snippets/story-ring-avatar",
      "markdown": "https://copy-css.com/snippets/story-ring-avatar.md",
      "html": "<div class=\"story\"><span>AK</span></div>",
      "css": ".story {\n  display: grid;\n  place-items: center;\n  width: 76px;\n  height: 76px;\n  padding: 3px;\n  box-sizing: border-box;\n  border-radius: 50%;\n  background: conic-gradient(#f59e0b, #ef4444, #d946ef, #f59e0b);\n  cursor: pointer;\n  transition: transform 0.2s ease;\n}\n\n.story:hover {\n  transform: scale(1.06);\n}\n\n.story span {\n  display: grid;\n  place-items: center;\n  width: 100%;\n  height: 100%;\n  box-sizing: border-box;\n  border: 3px solid #fff;\n  border-radius: 50%;\n  background: #e0e7ff;\n  color: #4338ca;\n  font: 700 22px system-ui, sans-serif;\n}",
      "features": [
        "transitions",
        "transforms",
        "conic gradients",
        "CSS Grid"
      ],
      "customProperties": []
    },
    {
      "id": "animated-checkmark",
      "name": "Animated Checkmark",
      "category": "effects",
      "tags": [
        "checkmark",
        "success",
        "svg",
        "stroke",
        "draw",
        "animation"
      ],
      "description": "A success checkmark that draws itself with an SVG stroke animation.",
      "url": "https://copy-css.com/snippets/animated-checkmark",
      "markdown": "https://copy-css.com/snippets/animated-checkmark.md",
      "html": "<svg class=\"checkmark\" viewBox=\"0 0 52 52\" aria-label=\"Success\">\n  <circle cx=\"26\" cy=\"26\" r=\"24\"/>\n  <path d=\"M15 27l7 7 15-15\"/>\n</svg>",
      "css": "/* Remove \"infinite\" from both animations to play it once */\n.checkmark {\n  width: 72px;\n  height: 72px;\n  fill: none;\n  stroke: #22c55e;\n  stroke-width: 3;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n\n.checkmark circle {\n  stroke-dasharray: 151;\n  animation: check-circle 3s ease infinite;\n}\n\n.checkmark path {\n  stroke-dasharray: 32;\n  animation: check-tick 3s ease infinite;\n}\n\n@keyframes check-circle {\n  0% { stroke-dashoffset: 151; }\n  25%, 100% { stroke-dashoffset: 0; }\n}\n\n@keyframes check-tick {\n  0%, 20% { stroke-dashoffset: 32; }\n  35%, 100% { stroke-dashoffset: 0; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .checkmark circle,\n  .checkmark path {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "corner-ribbon",
      "name": "Corner Ribbon",
      "category": "effects",
      "tags": [
        "ribbon",
        "badge",
        "corner",
        "new",
        "label"
      ],
      "description": "A diagonal \"NEW\" ribbon across the corner of a card.",
      "url": "https://copy-css.com/snippets/corner-ribbon",
      "markdown": "https://copy-css.com/snippets/corner-ribbon.md",
      "html": "<div class=\"ribbon-box\">\n  <span class=\"ribbon\">New</span>\n</div>",
      "css": ".ribbon-box {\n  position: relative;\n  overflow: hidden;\n  width: 180px;\n  height: 120px;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);\n}\n\n.ribbon {\n  position: absolute;\n  top: 18px;\n  right: -34px;\n  width: 120px;\n  padding: 6px 0;\n  background: #ef4444;\n  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n  color: #fff;\n  font: 800 12px/1 system-ui, sans-serif;\n  letter-spacing: 0.1em;\n  text-align: center;\n  text-transform: uppercase;\n  transform: rotate(45deg);\n}",
      "features": [
        "transforms",
        "box shadows"
      ],
      "customProperties": []
    },
    {
      "id": "css-accordion",
      "name": "Accordion",
      "category": "effects",
      "tags": [
        "accordion",
        "details",
        "summary",
        "faq",
        "disclosure"
      ],
      "description": "An accessible FAQ accordion built on native details and summary, with a rotating plus icon.",
      "url": "https://copy-css.com/snippets/css-accordion",
      "markdown": "https://copy-css.com/snippets/css-accordion.md",
      "html": "<div class=\"accordion\">\n  <details open>\n    <summary>Is it free?</summary>\n    <p>Yes, use it anywhere.</p>\n  </details>\n  <details>\n    <summary>Does it need JavaScript?</summary>\n    <p>No, it is native HTML.</p>\n  </details>\n</div>",
      "css": ".accordion {\n  width: 260px;\n  border: 1px solid #e2e8f0;\n  border-radius: 12px;\n  background: #fff;\n  font: 14px/1.4 system-ui, sans-serif;\n}\n\n.accordion details + details {\n  border-top: 1px solid #e2e8f0;\n}\n\n.accordion summary {\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 14px 16px;\n  color: #0f172a;\n  font-weight: 600;\n  list-style: none;\n  cursor: pointer;\n}\n\n.accordion summary::-webkit-details-marker {\n  display: none;\n}\n\n.accordion summary::after {\n  content: \"+\";\n  color: #64748b;\n  font-size: 20px;\n  line-height: 1;\n  transition: transform 0.2s ease;\n}\n\n.accordion details[open] summary::after {\n  transform: rotate(45deg);\n}\n\n.accordion p {\n  margin: 0;\n  padding: 0 16px 14px;\n  color: #475569;\n}",
      "features": [
        "transitions",
        "transforms",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "keyboard-key",
      "name": "Keyboard Key",
      "category": "effects",
      "tags": [
        "kbd",
        "keyboard",
        "shortcut",
        "docs",
        "key"
      ],
      "description": "Styles kbd elements as little physical keys for keyboard shortcuts in docs.",
      "url": "https://copy-css.com/snippets/keyboard-key",
      "markdown": "https://copy-css.com/snippets/keyboard-key.md",
      "html": "<p class=\"shortcut\">Press <kbd>Ctrl</kbd> + <kbd>K</kbd> to search</p>",
      "css": "kbd {\n  display: inline-block;\n  min-width: 1.6em;\n  padding: 0.2em 0.5em;\n  border: 1px solid #d4d4d8;\n  border-bottom-width: 3px;\n  border-radius: 6px;\n  background: #fafafa;\n  color: #27272a;\n  font: 600 0.85em/1.2 ui-monospace, monospace;\n  text-align: center;\n}",
      "features": [],
      "customProperties": []
    },
    {
      "id": "zoom-on-hover",
      "name": "Zoom on Hover",
      "category": "effects",
      "tags": [
        "image",
        "zoom",
        "hover",
        "scale",
        "gallery"
      ],
      "description": "Smoothly zooms an image inside its frame on hover without changing the layout.",
      "url": "https://copy-css.com/snippets/zoom-on-hover",
      "markdown": "https://copy-css.com/snippets/zoom-on-hover.md",
      "html": "<div class=\"zoom-frame\">\n  <img alt=\"Sun over blue hills\" width=\"220\" height=\"150\" src=\"data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 22 15%27%3E%3Crect width=%2722%27 height=%2715%27 fill=%27%236366f1%27/%3E%3Ccircle cx=%277%27 cy=%275%27 r=%273%27 fill=%27%23fde047%27/%3E%3Cpath d=%27M0 15 8 8l5 4 4-3 5 6z%27 fill=%27%230ea5e9%27/%3E%3C/svg%3E\">\n</div>",
      "css": ".zoom-frame {\n  overflow: hidden;\n  border-radius: 14px;\n}\n\n.zoom-frame img {\n  display: block;\n  width: 100%;\n  height: auto;\n  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);\n}\n\n.zoom-frame:hover img {\n  transform: scale(1.08);\n}",
      "features": [
        "transitions",
        "transforms"
      ],
      "customProperties": []
    },
    {
      "id": "toast-slide-in",
      "name": "Toast Notification",
      "category": "effects",
      "tags": [
        "toast",
        "notification",
        "snackbar",
        "slide",
        "alert"
      ],
      "description": "A compact success toast that slides up and fades in when it appears.",
      "url": "https://copy-css.com/snippets/toast-slide-in",
      "markdown": "https://copy-css.com/snippets/toast-slide-in.md",
      "html": "<div class=\"toast-ok\" role=\"status\">\n  <span aria-hidden=\"true\">✓</span>\n  Changes saved\n</div>",
      "css": ".toast-ok {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  padding: 12px 18px 12px 12px;\n  border-radius: 12px;\n  background: #18181b;\n  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.5);\n  color: #fafafa;\n  font: 500 14px/1 system-ui, sans-serif;\n  animation: toast-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;\n}\n\n.toast-ok span {\n  display: grid;\n  place-items: center;\n  width: 22px;\n  height: 22px;\n  border-radius: 50%;\n  background: #22c55e;\n  color: #052e16;\n  font-weight: 800;\n}\n\n@keyframes toast-in {\n  from { opacity: 0; transform: translateY(16px) scale(0.96); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .toast-ok { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "scroll-down-indicator",
      "name": "Scroll Down Indicator",
      "category": "effects",
      "tags": [
        "scroll",
        "mouse",
        "hero",
        "indicator",
        "hint",
        "animation"
      ],
      "description": "The little mouse with a scrolling wheel that tells visitors there is more below the hero.",
      "url": "https://copy-css.com/snippets/scroll-down-indicator",
      "markdown": "https://copy-css.com/snippets/scroll-down-indicator.md",
      "html": "<a class=\"scroll-hint\" href=\"#content\" aria-label=\"Scroll to content\"></a>",
      "css": ".scroll-hint {\n  position: relative;\n  display: block;\n  width: 26px;\n  height: 42px;\n  border: 2px solid #e2e8f0;\n  border-radius: 14px;\n}\n\n/* The wheel */\n.scroll-hint::before {\n  content: \"\";\n  position: absolute;\n  top: 8px;\n  left: 50%;\n  width: 4px;\n  height: 8px;\n  margin-left: -2px;\n  border-radius: 2px;\n  background: #e2e8f0;\n  animation: scroll-wheel 1.6s ease-in-out infinite;\n}\n\n.scroll-hint:focus-visible {\n  outline: 2px solid #38bdf8;\n  outline-offset: 4px;\n}\n\n@keyframes scroll-wheel {\n  0% { opacity: 0; transform: translateY(0); }\n  30% { opacity: 1; }\n  100% { opacity: 0; transform: translateY(14px); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .scroll-hint::before { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "heart-like-toggle",
      "name": "Heart Like Button",
      "category": "effects",
      "tags": [
        "like",
        "heart",
        "favorite",
        "toggle",
        "checkbox",
        "pop"
      ],
      "description": "A heart that fills and pops with a burst ring when liked, built on a plain checkbox.",
      "url": "https://copy-css.com/snippets/heart-like-toggle",
      "markdown": "https://copy-css.com/snippets/heart-like-toggle.md",
      "html": "<label class=\"like\">\n  <input type=\"checkbox\" aria-label=\"Like\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M12 20.5 4.1 12.8A5 5 0 0 1 12 6.6a5 5 0 0 1 7.9 6.2Z\"/></svg>\n</label>",
      "css": ".like {\n  position: relative;\n  display: inline-grid;\n  place-items: center;\n  width: 56px;\n  height: 56px;\n  border-radius: 50%;\n  cursor: pointer;\n  transition: background 0.2s ease;\n}\n\n.like:hover {\n  background: #ffe4e6;\n}\n\n.like input {\n  position: absolute;\n  inset: 0;\n  margin: 0;\n  opacity: 0;\n  cursor: pointer;\n}\n\n.like svg {\n  width: 30px;\n  height: 30px;\n  fill: transparent;\n  stroke: #71717a;\n  stroke-width: 2;\n  stroke-linejoin: round;\n  pointer-events: none;\n  transition: fill 0.2s ease, stroke 0.2s ease;\n}\n\n.like:hover svg {\n  stroke: #f43f5e;\n}\n\n.like input:checked + svg {\n  fill: #f43f5e;\n  stroke: #f43f5e;\n  animation: like-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);\n}\n\n/* Burst ring */\n.like::after {\n  content: \"\";\n  position: absolute;\n  inset: 6px;\n  border: 2px solid #f43f5e;\n  border-radius: 50%;\n  opacity: 0;\n  pointer-events: none;\n}\n\n.like:has(input:checked)::after {\n  animation: like-burst 0.5s ease-out;\n}\n\n.like:has(input:focus-visible) {\n  outline: 2px solid #f43f5e;\n  outline-offset: 2px;\n}\n\n@keyframes like-pop {\n  from { transform: scale(0.6); }\n}\n\n@keyframes like-burst {\n  from { opacity: 1; transform: scale(0.5); }\n  to { opacity: 0; transform: scale(1.3); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .like input:checked + svg,\n  .like:has(input:checked)::after { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transitions",
        "transforms",
        "CSS Grid",
        "the :has() selector",
        "the :checked state (no JavaScript)",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "bell-ring",
      "name": "Ringing Bell",
      "category": "effects",
      "tags": [
        "bell",
        "notification",
        "ring",
        "shake",
        "icon",
        "alert"
      ],
      "description": "A notification bell that swings now and then to draw the eye, with an unread count badge.",
      "url": "https://copy-css.com/snippets/bell-ring",
      "markdown": "https://copy-css.com/snippets/bell-ring.md",
      "html": "<button class=\"ringing-bell\" aria-label=\"Notifications, 3 unread\">\n  <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n    <path d=\"M12 3a6 6 0 0 0-6 6v4l-2 3h16l-2-3V9a6 6 0 0 0-6-6Z\"/>\n    <path d=\"M10 19a2 2 0 0 0 4 0\"/>\n  </svg>\n  <span>3</span>\n</button>",
      "css": ".ringing-bell {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 52px;\n  height: 52px;\n  border: 0;\n  border-radius: 14px;\n  background: #fff;\n  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.3);\n  cursor: pointer;\n}\n\n.ringing-bell svg {\n  width: 26px;\n  height: 26px;\n  fill: none;\n  stroke: #0f172a;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  transform-origin: 50% 10%;\n  animation: ringing-bell-swing 2.4s ease-in-out infinite;\n}\n\n.ringing-bell span {\n  position: absolute;\n  top: 6px;\n  right: 6px;\n  box-sizing: border-box;\n  min-width: 18px;\n  height: 18px;\n  padding: 0 5px;\n  border-radius: 999px;\n  background: #ef4444;\n  box-shadow: 0 0 0 2px #fff;\n  color: #fff;\n  font: 700 11px/18px system-ui, sans-serif;\n}\n\n.ringing-bell:focus-visible {\n  outline: 2px solid #6366f1;\n  outline-offset: 2px;\n}\n\n@keyframes ringing-bell-swing {\n  0%, 35%, 100% { transform: rotate(0); }\n  5% { transform: rotate(18deg); }\n  10% { transform: rotate(-16deg); }\n  15% { transform: rotate(12deg); }\n  20% { transform: rotate(-8deg); }\n  25% { transform: rotate(4deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .ringing-bell svg { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "waving-hand",
      "name": "Waving Hand",
      "category": "effects",
      "tags": [
        "wave",
        "emoji",
        "hello",
        "greeting",
        "hero",
        "animation"
      ],
      "description": "The friendly waving-hand greeting from portfolio heroes, pivoting from the wrist.",
      "url": "https://copy-css.com/snippets/waving-hand",
      "markdown": "https://copy-css.com/snippets/waving-hand.md",
      "html": "<p class=\"hello\"><span class=\"wave\" role=\"img\" aria-label=\"Waving hand\">👋</span> Hi there!</p>",
      "css": ".hello {\n  margin: 0;\n  color: #18181b;\n  font: 700 28px system-ui, sans-serif;\n}\n\n.wave {\n  display: inline-block;\n  transform-origin: 70% 70%; /* the wrist */\n  animation: wave 2.5s ease-in-out infinite;\n}\n\n@keyframes wave {\n  0%, 60%, 100% { transform: rotate(0); }\n  10% { transform: rotate(14deg); }\n  20% { transform: rotate(-8deg); }\n  30% { transform: rotate(14deg); }\n  40% { transform: rotate(-4deg); }\n  50% { transform: rotate(10deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .wave { animation: none; }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "sibling-dim-hover",
      "name": "Sibling Dim Hover",
      "category": "effects",
      "tags": [
        "hover",
        "has",
        "dim",
        "focus",
        "menu",
        "blur siblings"
      ],
      "description": "Hovering or focusing one link fades and blurs its siblings, using :has() on the list so it needs no JavaScript.",
      "url": "https://copy-css.com/snippets/sibling-dim-hover",
      "markdown": "https://copy-css.com/snippets/sibling-dim-hover.md",
      "html": "<ul class=\"dim-list\">\n  <li><a href=\"#\">Work</a></li>\n  <li><a href=\"#\">About</a></li>\n  <li><a href=\"#\">Journal</a></li>\n  <li><a href=\"#\">Contact</a></li>\n</ul>",
      "css": ".dim-list {\n  display: grid;\n  gap: 2px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  font: 800 30px/1.1 system-ui, sans-serif;\n  letter-spacing: -0.02em;\n}\n\n.dim-list a {\n  display: inline-block;\n  color: #fafaf9;\n  text-decoration: none;\n  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;\n}\n\n.dim-list:has(a:hover, a:focus-visible) a:not(:hover, :focus-visible) {\n  opacity: 0.25;\n  filter: blur(1.5px);\n}\n\n.dim-list a:hover,\n.dim-list a:focus-visible {\n  transform: translateX(8px);\n}\n\n.dim-list a:focus-visible {\n  outline: 2px solid #fbbf24;\n  outline-offset: 4px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .dim-list a {\n    transition: none;\n  }\n\n  .dim-list a:hover,\n  .dim-list a:focus-visible {\n    transform: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "filters",
        "CSS Grid",
        "the :has() selector",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "wiggle-on-hover",
      "name": "Wiggle on Hover",
      "category": "effects",
      "tags": [
        "wiggle",
        "shake",
        "hover",
        "icon",
        "attention",
        "keyframes"
      ],
      "description": "A playful wiggle you can add to any icon or badge with one class, triggered on hover and keyboard focus.",
      "url": "https://copy-css.com/snippets/wiggle-on-hover",
      "markdown": "https://copy-css.com/snippets/wiggle-on-hover.md",
      "html": "<a class=\"wiggle-link\" href=\"#\">\n  <svg class=\"wiggle\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"3\" y=\"8\" width=\"18\" height=\"13\" rx=\"2\"/><path d=\"M12 8v13M3 12h18M12 8S10 3 7.5 4 8 8 12 8m0 0s2-5 4.5-4S16 8 12 8\"/></svg>\n  Claim your gift\n</a>",
      "css": ".wiggle-link {\n  display: inline-flex;\n  align-items: center;\n  gap: 10px;\n  padding: 12px 18px;\n  border-radius: 12px;\n  background: #fff;\n  box-shadow: 0 4px 14px -6px rgba(190, 24, 93, 0.35);\n  color: #9d174d;\n  font: 700 15px system-ui, sans-serif;\n  text-decoration: none;\n}\n\n.wiggle-link svg {\n  width: 26px;\n  height: 26px;\n  fill: #fce7f3;\n  stroke: #db2777;\n  stroke-width: 1.8;\n  stroke-linejoin: round;\n}\n\n.wiggle-link:hover .wiggle,\n.wiggle-link:focus-visible .wiggle {\n  animation: wiggle-shake 0.6s ease-in-out;\n}\n\n.wiggle-link:focus-visible {\n  outline: 2px solid #db2777;\n  outline-offset: 3px;\n}\n\n@keyframes wiggle-shake {\n  0%, 100% { transform: rotate(0); }\n  20% { transform: rotate(-14deg); }\n  40% { transform: rotate(12deg); }\n  60% { transform: rotate(-8deg); }\n  80% { transform: rotate(4deg); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .wiggle-link:hover .wiggle,\n  .wiggle-link:focus-visible .wiggle {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "box shadows",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "custom-cursor",
      "name": "Custom Cursor",
      "category": "effects",
      "tags": [
        "cursor",
        "svg cursor",
        "pointer",
        "crosshair",
        "hotspot",
        "portfolio"
      ],
      "description": "Swaps the mouse pointer for custom SVG cursors inside an area, with a different one over links and a safe fallback.",
      "url": "https://copy-css.com/snippets/custom-cursor",
      "markdown": "https://copy-css.com/snippets/custom-cursor.md",
      "html": "<div class=\"cursor-zone\">\n  <p>Move your mouse in here</p>\n  <a href=\"#\">and over this link</a>\n</div>",
      "css": ".cursor-zone {\n  display: grid;\n  place-content: center;\n  gap: 8px;\n  width: 260px;\n  height: 150px;\n  border: 2px dashed #d6d3d1;\n  border-radius: 16px;\n  background: #fff;\n  color: #57534e;\n  font: 500 14px system-ui, sans-serif;\n  text-align: center;\n  cursor: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='12' fill='none' stroke='%231c1917' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='3' fill='%23ea580c'/%3E%3C/svg%3E\") 16 16, crosshair;\n}\n\n.cursor-zone p {\n  margin: 0;\n}\n\n.cursor-zone a {\n  color: #ea580c;\n  font-weight: 700;\n  cursor: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23ea580c' fill-opacity='.85'/%3E%3Cpath d='M11 21 21 11M13 11h8v8' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") 16 16, pointer;\n}\n\n.cursor-zone a:focus-visible {\n  outline: 2px solid #ea580c;\n  outline-offset: 3px;\n  border-radius: 2px;\n}",
      "features": [
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "spring-hover-scale",
      "name": "Spring Hover Scale",
      "category": "effects",
      "tags": [
        "spring",
        "bounce",
        "linear easing",
        "hover",
        "scale",
        "app icons"
      ],
      "description": "Icons that scale up with a real spring overshoot on hover, using the CSS linear() easing function.",
      "url": "https://copy-css.com/snippets/spring-hover-scale",
      "markdown": "https://copy-css.com/snippets/spring-hover-scale.md",
      "html": "<ul class=\"spring-icons\">\n  <li><a href=\"#\" aria-label=\"Photos\">📷</a></li>\n  <li><a href=\"#\" aria-label=\"Music\">🎵</a></li>\n  <li><a href=\"#\" aria-label=\"Maps\">🗺️</a></li>\n</ul>",
      "css": ".spring-icons {\n  display: flex;\n  gap: 14px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n}\n\n.spring-icons a {\n  display: grid;\n  place-items: center;\n  width: 60px;\n  height: 60px;\n  border-radius: 18px;\n  background: #fff;\n  box-shadow: 0 6px 16px -8px rgba(30, 64, 175, 0.4);\n  font-size: 28px;\n  text-decoration: none;\n  transition: transform 0.25s ease;\n  transition: transform 0.7s linear(0, 0.45 7%, 0.96 15%, 1.17 22%, 1.21 28%, 1.13 37%, 0.98 50%, 0.95 58%, 1 72%, 1.01 85%, 1);\n}\n\n.spring-icons a:hover,\n.spring-icons a:focus-visible {\n  transform: scale(1.25);\n}\n\n.spring-icons a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .spring-icons a {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "frosted-modal-backdrop",
      "name": "Frosted Modal Backdrop",
      "category": "effects",
      "tags": [
        "modal",
        "dialog",
        "backdrop",
        "blur",
        "overlay",
        "glassmorphism"
      ],
      "description": "A tinted, blurred overlay behind a modal, with the same look applied to a native dialog::backdrop.",
      "url": "https://copy-css.com/snippets/frosted-modal-backdrop",
      "markdown": "https://copy-css.com/snippets/frosted-modal-backdrop.md",
      "html": "<div class=\"frost-scrim\">\n  <div class=\"frost-modal\" role=\"dialog\" aria-modal=\"true\" aria-labelledby=\"frost-title\">\n    <h3 id=\"frost-title\">Discard changes?</h3>\n    <p>Your edits will be lost.</p>\n    <button type=\"button\">Keep editing</button>\n  </div>\n</div>",
      "css": ".frost-scrim,\ndialog.frost-modal::backdrop {\n  background: rgba(15, 23, 42, 0.3);\n  -webkit-backdrop-filter: blur(6px);\n  backdrop-filter: blur(6px);\n}\n\n.frost-scrim {\n  position: fixed;\n  inset: 0;\n  z-index: 50;\n  display: grid;\n  place-items: center;\n  padding: 16px;\n}\n\n.frost-modal {\n  width: min(100%, 240px);\n  padding: 20px;\n  border: 0;\n  border-radius: 16px;\n  background: #fff;\n  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.45);\n  color: #0f172a;\n  font-family: system-ui, sans-serif;\n}\n\n.frost-modal h3 {\n  margin: 0 0 4px;\n  font-size: 17px;\n}\n\n.frost-modal p {\n  margin: 0 0 16px;\n  color: #64748b;\n  font-size: 14px;\n}\n\n.frost-modal button {\n  width: 100%;\n  padding: 10px;\n  border: 0;\n  border-radius: 10px;\n  background: #0f172a;\n  color: #fff;\n  font: 600 14px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.frost-modal button:focus-visible {\n  outline: 2px solid #0f172a;\n  outline-offset: 2px;\n}",
      "features": [
        "box shadows",
        "backdrop filters",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "liquid-glass",
      "name": "Liquid Glass Effect",
      "category": "effects",
      "tags": [
        "liquid glass",
        "glassmorphism",
        "apple",
        "specular",
        "toolbar",
        "backdrop-filter"
      ],
      "description": "An Apple-style liquid glass toolbar with light blur, boosted color and bright specular rims made from inset shadows.",
      "url": "https://copy-css.com/snippets/liquid-glass",
      "markdown": "https://copy-css.com/snippets/liquid-glass.md",
      "html": "<nav class=\"liquid-glass\" aria-label=\"Quick actions\">\n  <a href=\"#\" aria-label=\"Home\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M3 11 12 4l9 7v9h-6v-6H9v6H3z\"/></svg></a>\n  <a href=\"#\" aria-label=\"Search\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"11\" cy=\"11\" r=\"7\"/><path d=\"m20 20-3.5-3.5\"/></svg></a>\n  <a href=\"#\" aria-label=\"Profile\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"8\" r=\"4\"/><path d=\"M4 21a8 8 0 0 1 16 0\"/></svg></a>\n</nav>",
      "css": ".liquid-glass {\n  display: flex;\n  gap: 6px;\n  padding: 8px;\n  border-radius: 999px;\n  background: rgba(255, 255, 255, 0.08);\n  -webkit-backdrop-filter: blur(3px) saturate(180%) brightness(1.08);\n  backdrop-filter: blur(3px) saturate(180%) brightness(1.08);\n  box-shadow:\n    inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.75),\n    inset -1px -1px 0 rgba(255, 255, 255, 0.35),\n    inset 0 0 18px rgba(255, 255, 255, 0.25),\n    0 10px 30px rgba(0, 0, 0, 0.25);\n}\n\n.liquid-glass a {\n  display: grid;\n  place-items: center;\n  width: 46px;\n  height: 46px;\n  border-radius: 50%;\n  color: #fff;\n  transition: background 0.2s ease, transform 0.2s ease;\n}\n\n.liquid-glass a:hover {\n  background: rgba(255, 255, 255, 0.18);\n  transform: scale(1.06);\n}\n\n.liquid-glass a:focus-visible {\n  outline: 2px solid #fff;\n  outline-offset: 1px;\n}\n\n.liquid-glass svg {\n  width: 22px;\n  height: 22px;\n  fill: none;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .liquid-glass a {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "backdrop filters",
        "filters",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "progressive-blur",
      "name": "Progressive Blur",
      "category": "effects",
      "tags": [
        "progressive blur",
        "gradient blur",
        "backdrop-filter",
        "mask",
        "image caption",
        "fade"
      ],
      "description": "A blur that gets stronger toward the bottom edge, made from stacked backdrop-filter layers with gradient masks.",
      "url": "https://copy-css.com/snippets/progressive-blur",
      "markdown": "https://copy-css.com/snippets/progressive-blur.md",
      "html": "<figure class=\"pblur\">\n  <div class=\"pblur-layers\" aria-hidden=\"true\"><i></i><i></i><i></i><i></i></div>\n  <figcaption>Golden hour · Lisbon</figcaption>\n</figure>",
      "css": ".pblur {\n  position: relative;\n  width: 240px;\n  height: 160px;\n  margin: 0;\n  overflow: hidden;\n  border-radius: 18px;\n  /* Replace with your photo: url(photo.jpg) center / cover */\n  background:\n    radial-gradient(circle at 70% 30%, #fde047 0 14%, transparent 15%),\n    repeating-linear-gradient(115deg, #fb923c 0 14px, #f43f5e 14px 28px, #7c3aed 28px 42px);\n}\n\n.pblur-layers {\n  position: absolute;\n  inset: 40% 0 0;\n}\n\n.pblur-layers i {\n  position: absolute;\n  inset: 0;\n}\n\n.pblur-layers i:nth-child(1) {\n  -webkit-backdrop-filter: blur(1px);\n  backdrop-filter: blur(1px);\n  -webkit-mask: linear-gradient(transparent, #000 25%, #000 50%, transparent 75%);\n  mask: linear-gradient(transparent, #000 25%, #000 50%, transparent 75%);\n}\n\n.pblur-layers i:nth-child(2) {\n  -webkit-backdrop-filter: blur(3px);\n  backdrop-filter: blur(3px);\n  -webkit-mask: linear-gradient(transparent 25%, #000 50%, #000 75%, transparent);\n  mask: linear-gradient(transparent 25%, #000 50%, #000 75%, transparent);\n}\n\n.pblur-layers i:nth-child(3) {\n  -webkit-backdrop-filter: blur(6px);\n  backdrop-filter: blur(6px);\n  -webkit-mask: linear-gradient(transparent 50%, #000 75%);\n  mask: linear-gradient(transparent 50%, #000 75%);\n}\n\n.pblur-layers i:nth-child(4) {\n  -webkit-backdrop-filter: blur(12px);\n  backdrop-filter: blur(12px);\n  -webkit-mask: linear-gradient(transparent 75%, #000);\n  mask: linear-gradient(transparent 75%, #000);\n}\n\n.pblur figcaption {\n  position: absolute;\n  right: 14px;\n  bottom: 12px;\n  left: 14px;\n  color: #fff;\n  font: 700 15px system-ui, sans-serif;\n  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);\n}",
      "features": [
        "linear gradients",
        "radial gradients",
        "text shadows",
        "backdrop filters",
        "masks"
      ],
      "customProperties": []
    },
    {
      "id": "grainy-glass-panel",
      "name": "Grainy Glass Panel",
      "category": "effects",
      "tags": [
        "glassmorphism",
        "noise",
        "grain",
        "texture",
        "feturbulence",
        "music player"
      ],
      "description": "A frosted glass panel with a subtle film-grain texture from an inline SVG noise filter, shown as a now-playing widget.",
      "url": "https://copy-css.com/snippets/grainy-glass-panel",
      "markdown": "https://copy-css.com/snippets/grainy-glass-panel.md",
      "html": "<section class=\"grain-glass\" aria-label=\"Now playing\">\n  <span class=\"grain-glass-art\" aria-hidden=\"true\"></span>\n  <div>\n    <p class=\"grain-glass-title\">Night Drive</p>\n    <p class=\"grain-glass-artist\">Coastline</p>\n    <span class=\"grain-glass-bar\" aria-hidden=\"true\"></span>\n  </div>\n</section>",
      "css": ".grain-glass {\n  display: flex;\n  align-items: center;\n  gap: 14px;\n  width: 250px;\n  padding: 14px;\n  border: 1px solid rgba(255, 255, 255, 0.25);\n  border-radius: 20px;\n  background:\n    url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E\"),\n    rgba(255, 255, 255, 0.14);\n  -webkit-backdrop-filter: blur(22px);\n  backdrop-filter: blur(22px);\n  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.grain-glass-art {\n  flex: none;\n  width: 56px;\n  height: 56px;\n  border-radius: 12px;\n  background: conic-gradient(from 200deg, #fbbf24, #f472b6, #818cf8, #fbbf24);\n}\n\n.grain-glass > div {\n  flex: 1;\n}\n\n.grain-glass p {\n  margin: 0;\n}\n\n.grain-glass-title {\n  font-size: 15px;\n  font-weight: 700;\n}\n\n.grain-glass-artist {\n  font-size: 13px;\n  opacity: 0.75;\n}\n\n.grain-glass-bar {\n  display: block;\n  height: 4px;\n  margin-top: 8px;\n  border-radius: 999px;\n  background: linear-gradient(90deg, #fff 42%, rgba(255, 255, 255, 0.25) 0);\n}",
      "features": [
        "linear gradients",
        "conic gradients",
        "box shadows",
        "backdrop filters",
        "Flexbox"
      ],
      "customProperties": []
    },
    {
      "id": "grayscale-to-color",
      "name": "Grayscale to Color",
      "category": "effects",
      "tags": [
        "grayscale",
        "filter",
        "image hover",
        "black and white",
        "gallery",
        "logos"
      ],
      "description": "An image that sits in black and white and smoothly fades into full color on hover or keyboard focus.",
      "url": "https://copy-css.com/snippets/grayscale-to-color",
      "markdown": "https://copy-css.com/snippets/grayscale-to-color.md",
      "html": "<a class=\"gray-hover\" href=\"#\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cdefs%3E%3ClinearGradient id='s' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f472b6'/%3E%3Cstop offset='1' stop-color='%23fdba74'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='60' height='40' fill='url(%23s)'/%3E%3Ccircle cx='42' cy='15' r='7' fill='%23fef08a'/%3E%3Cpath d='M0 40V26l12-8 10 7 9-5 14 9 15-6v17z' fill='%237c3aed'/%3E%3Cpath d='M0 40v-8l16-5 12 4 14-6 18 6v9z' fill='%234c1d95'/%3E%3C/svg%3E\" alt=\"Purple hills under a pink sunset\" width=\"240\" height=\"160\">\n</a>",
      "css": ".gray-hover {\n  display: block;\n  width: 240px;\n  overflow: hidden;\n  border-radius: 16px;\n}\n\n.gray-hover img {\n  display: block;\n  width: 100%;\n  height: auto;\n  filter: grayscale(1) contrast(1.05);\n  transition: filter 0.5s ease;\n}\n\n.gray-hover:hover img,\n.gray-hover:focus-visible img {\n  filter: none;\n}\n\n.gray-hover:focus-visible {\n  outline: 3px solid #7c3aed;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .gray-hover img {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "filters",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "duotone-image",
      "name": "Duotone Image",
      "category": "effects",
      "tags": [
        "duotone",
        "mix-blend-mode",
        "image filter",
        "brand colors",
        "photo effect",
        "hover"
      ],
      "description": "Maps any photo to two brand colors with blend modes, then shows the original image on hover.",
      "url": "https://copy-css.com/snippets/duotone-image",
      "markdown": "https://copy-css.com/snippets/duotone-image.md",
      "html": "<div class=\"duotone\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23bae6fd'/%3E%3Ccircle cx='14' cy='11' r='6' fill='%23fde047'/%3E%3Cpath d='M0 40V30l15-6 15 5 15-7 15 6v12z' fill='%2334d399'/%3E%3Cpath d='M36 31l5-15 5 15zM45 32l4-11 4 11zM8 36l4-12 4 12z' fill='%23047857'/%3E%3C/svg%3E\" alt=\"Green hills and pine trees on a sunny day\" width=\"240\" height=\"160\">\n</div>",
      "css": ".duotone {\n  --light: #fde68a;\n  --dark: #9d174d;\n  position: relative;\n  width: 240px;\n  overflow: hidden;\n  border-radius: 16px;\n  background: var(--light);\n  isolation: isolate;\n}\n\n.duotone img {\n  display: block;\n  width: 100%;\n  height: auto;\n  filter: grayscale(1) contrast(1.1);\n  mix-blend-mode: multiply;\n}\n\n.duotone::after {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  background: var(--dark);\n  mix-blend-mode: lighten;\n  pointer-events: none;\n  transition: opacity 0.4s ease;\n}\n\n.duotone:hover img {\n  filter: none;\n  mix-blend-mode: normal;\n}\n\n.duotone:hover::after {\n  opacity: 0;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .duotone::after {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "filters",
        "blend modes",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--light",
          "value": "#fde68a"
        },
        {
          "name": "--dark",
          "value": "#9d174d"
        }
      ]
    },
    {
      "id": "ken-burns-effect",
      "name": "Ken Burns Effect",
      "category": "effects",
      "tags": [
        "ken burns",
        "slow zoom",
        "pan",
        "hero image",
        "animation",
        "slideshow"
      ],
      "description": "A slow, cinematic zoom-and-pan on a hero image, looping back and forth inside a cropped frame.",
      "url": "https://copy-css.com/snippets/ken-burns-effect",
      "markdown": "https://copy-css.com/snippets/ken-burns-effect.md",
      "html": "<div class=\"ken-burns\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cdefs%3E%3ClinearGradient id='s' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f472b6'/%3E%3Cstop offset='1' stop-color='%23fdba74'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='60' height='40' fill='url(%23s)'/%3E%3Ccircle cx='42' cy='15' r='7' fill='%23fef08a'/%3E%3Cpath d='M0 40V26l12-8 10 7 9-5 14 9 15-6v17z' fill='%237c3aed'/%3E%3Cpath d='M0 40v-8l16-5 12 4 14-6 18 6v9z' fill='%234c1d95'/%3E%3C/svg%3E\" alt=\"Purple hills under a pink sunset\" width=\"260\" height=\"160\">\n</div>",
      "css": ".ken-burns {\n  width: 260px;\n  height: 160px;\n  overflow: hidden;\n  border-radius: 14px;\n}\n\n.ken-burns img {\n  display: block;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n  transform-origin: 70% 40%;\n  animation: ken-burns-move 14s ease-in-out infinite alternate;\n}\n\n@keyframes ken-burns-move {\n  from {\n    transform: scale(1) translate(0, 0);\n  }\n\n  to {\n    transform: scale(1.3) translate(-4%, 3%);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .ken-burns img {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "image-swap-hover",
      "name": "Image Swap on Hover",
      "category": "effects",
      "tags": [
        "product image",
        "second image",
        "hover swap",
        "ecommerce",
        "crossfade",
        "shop"
      ],
      "description": "A shop thumbnail that crossfades to a second product photo on hover, like most online stores do.",
      "url": "https://copy-css.com/snippets/image-swap-hover",
      "markdown": "https://copy-css.com/snippets/image-swap-hover.md",
      "html": "<a class=\"img-swap\" href=\"#\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%23e0e7ff'/%3E%3Crect x='12' y='14' width='16' height='18' rx='2' fill='%236366f1'/%3E%3Cpath d='M16 15v-3a4 4 0 0 1 8 0v3' fill='none' stroke='%234338ca' stroke-width='1.6'/%3E%3C/svg%3E\" alt=\"Canvas tote bag, front\" width=\"200\" height=\"200\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' fill='%23fde68a'/%3E%3Ccircle cx='20' cy='14' r='5' fill='%23b45309'/%3E%3Cpath d='M12 40c0-10 3-16 8-16s8 6 8 16z' fill='%2392400e'/%3E%3Crect x='22' y='26' width='11' height='12' rx='1.5' fill='%236366f1'/%3E%3Cpath d='M25 27v-2a2.5 2.5 0 0 1 5 0v2' fill='none' stroke='%234338ca' stroke-width='1.2'/%3E%3C/svg%3E\" alt=\"\" width=\"200\" height=\"200\">\n</a>",
      "css": ".img-swap {\n  display: grid;\n  width: 200px;\n  overflow: hidden;\n  border-radius: 14px;\n}\n\n.img-swap img {\n  grid-area: 1 / 1;\n  display: block;\n  width: 100%;\n  height: auto;\n  transition: opacity 0.4s ease, transform 0.6s ease;\n}\n\n.img-swap img + img {\n  opacity: 0;\n}\n\n.img-swap:hover img + img,\n.img-swap:focus-visible img + img {\n  opacity: 1;\n  transform: scale(1.04);\n}\n\n.img-swap:focus-visible {\n  outline: 3px solid #1c1917;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .img-swap img {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "polaroid-photo",
      "name": "Polaroid Photo",
      "category": "effects",
      "tags": [
        "polaroid",
        "photo frame",
        "tape",
        "scrapbook",
        "rotate",
        "caption"
      ],
      "description": "A tilted instant-photo frame with a handwritten caption and a strip of tape that straightens on hover.",
      "url": "https://copy-css.com/snippets/polaroid-photo",
      "markdown": "https://copy-css.com/snippets/polaroid-photo.md",
      "html": "<figure class=\"polaroid\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cdefs%3E%3ClinearGradient id='s' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f472b6'/%3E%3Cstop offset='1' stop-color='%23fdba74'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='60' height='40' fill='url(%23s)'/%3E%3Ccircle cx='42' cy='15' r='7' fill='%23fef08a'/%3E%3Cpath d='M0 40V26l12-8 10 7 9-5 14 9 15-6v17z' fill='%237c3aed'/%3E%3Cpath d='M0 40v-8l16-5 12 4 14-6 18 6v9z' fill='%234c1d95'/%3E%3C/svg%3E\" alt=\"Purple hills under a pink sunset\" width=\"180\" height=\"150\">\n  <figcaption>Summer '26</figcaption>\n</figure>",
      "css": ".polaroid {\n  position: relative;\n  width: 180px;\n  margin: 0;\n  padding: 10px 10px 0;\n  background: #fffdf8;\n  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 14px 28px -12px rgba(0, 0, 0, 0.35);\n  transform: rotate(-4deg);\n  transition: transform 0.3s ease;\n}\n\n.polaroid::before {\n  content: \"\";\n  position: absolute;\n  top: -12px;\n  left: 50%;\n  width: 70px;\n  height: 22px;\n  background: rgba(253, 230, 138, 0.75);\n  transform: translateX(-50%) rotate(3deg);\n}\n\n.polaroid img {\n  display: block;\n  width: 100%;\n  height: auto;\n  aspect-ratio: 6 / 5;\n  object-fit: cover;\n}\n\n.polaroid figcaption {\n  padding: 8px 0 12px;\n  color: #44403c;\n  font: 20px \"Segoe Print\", \"Bradley Hand\", \"Comic Sans MS\", cursive;\n  text-align: center;\n}\n\n.polaroid:hover {\n  transform: rotate(0) scale(1.03);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .polaroid {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "box shadows",
        "aspect-ratio",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "clip-path-shapes",
      "name": "Clip Path Shapes",
      "category": "effects",
      "tags": [
        "clip-path",
        "hexagon",
        "circle",
        "polygon",
        "image shapes",
        "mask"
      ],
      "description": "Three ready-made clip-path classes that crop images into a circle, a hexagon and a slanted card.",
      "url": "https://copy-css.com/snippets/clip-path-shapes",
      "markdown": "https://copy-css.com/snippets/clip-path-shapes.md",
      "html": "<div class=\"clip-shapes\">\n  <img class=\"clip-circle\" src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect width='10' height='10' fill='%23f9a8d4'/%3E%3Ccircle cx='7' cy='3' r='1.6' fill='%23fef08a'/%3E%3Cpath d='M0 10V7l3-2 3 2 4-2v5z' fill='%237c3aed'/%3E%3C/svg%3E\" alt=\"Circle-cropped sunset\" width=\"80\" height=\"80\">\n  <img class=\"clip-hexagon\" src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect width='10' height='10' fill='%23f9a8d4'/%3E%3Ccircle cx='7' cy='3' r='1.6' fill='%23fef08a'/%3E%3Cpath d='M0 10V7l3-2 3 2 4-2v5z' fill='%237c3aed'/%3E%3C/svg%3E\" alt=\"Hexagon-cropped sunset\" width=\"80\" height=\"80\">\n  <img class=\"clip-slant\" src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect width='10' height='10' fill='%23f9a8d4'/%3E%3Ccircle cx='7' cy='3' r='1.6' fill='%23fef08a'/%3E%3Cpath d='M0 10V7l3-2 3 2 4-2v5z' fill='%237c3aed'/%3E%3C/svg%3E\" alt=\"Slant-cropped sunset\" width=\"80\" height=\"80\">\n</div>",
      "css": ".clip-shapes {\n  display: flex;\n  gap: 14px;\n}\n\n.clip-shapes img {\n  display: block;\n  width: 80px;\n  height: 80px;\n  object-fit: cover;\n  transition: clip-path 0.4s ease;\n}\n\n.clip-circle {\n  clip-path: circle(50%);\n}\n\n.clip-hexagon {\n  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);\n}\n\n.clip-slant {\n  clip-path: polygon(0 0, 100% 12%, 100% 100%, 0 88%);\n}\n\n.clip-shapes img:hover {\n  clip-path: inset(0 round 12px);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .clip-shapes img {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "clip paths",
        "Flexbox",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "scroll-progress-bar",
      "name": "Scroll Progress Bar",
      "category": "effects",
      "tags": [
        "scroll-driven",
        "reading progress",
        "animation-timeline",
        "scroll",
        "indicator",
        "blog"
      ],
      "description": "A reading progress bar pinned to the top of the page that fills as you scroll, driven by animation-timeline: scroll().",
      "url": "https://copy-css.com/snippets/scroll-progress-bar",
      "markdown": "https://copy-css.com/snippets/scroll-progress-bar.md",
      "html": "<div class=\"scroll-progress\" aria-hidden=\"true\"></div>",
      "css": ".scroll-progress {\n  position: fixed;\n  top: 0;\n  right: 0;\n  left: 0;\n  z-index: 100;\n  height: 4px;\n  background: linear-gradient(90deg, #6366f1, #ec4899);\n  transform-origin: 0 50%;\n  animation: scroll-progress-grow linear both;\n  animation-timeline: scroll();\n}\n\n@keyframes scroll-progress-grow {\n  from {\n    transform: scaleX(0);\n  }\n\n  to {\n    transform: scaleX(1);\n  }\n}\n\n@supports not (animation-timeline: scroll()) {\n  .scroll-progress {\n    display: none;\n  }\n}",
      "features": [
        "scroll-driven animations",
        "keyframe animations",
        "transforms",
        "linear gradients"
      ],
      "customProperties": []
    },
    {
      "id": "fade-in-on-scroll",
      "name": "Fade In on Scroll",
      "category": "effects",
      "tags": [
        "scroll-driven",
        "reveal",
        "view timeline",
        "fade up",
        "animate on scroll",
        "aos"
      ],
      "description": "Items fade and slide up as they scroll into view, with animation-timeline: view() instead of a scroll library.",
      "url": "https://copy-css.com/snippets/fade-in-on-scroll",
      "markdown": "https://copy-css.com/snippets/fade-in-on-scroll.md",
      "html": "<ul class=\"scroll-reveal\">\n  <li>Plan</li>\n  <li>Design</li>\n  <li>Build</li>\n  <li>Launch</li>\n</ul>",
      "css": ".scroll-reveal {\n  display: grid;\n  gap: 16px;\n  margin: 0;\n  padding: 0;\n  list-style: none;\n  font-family: system-ui, sans-serif;\n}\n\n.scroll-reveal li {\n  padding: 22px;\n  border-radius: 14px;\n  background: #fff;\n  box-shadow: 0 6px 18px -10px rgba(20, 83, 45, 0.35);\n  color: #14532d;\n  font-size: 18px;\n  font-weight: 700;\n}\n\n@supports (animation-timeline: view()) {\n  .scroll-reveal li {\n    animation: scroll-reveal-in linear both;\n    animation-timeline: view();\n    animation-range: entry 0% cover 30%;\n  }\n}\n\n@keyframes scroll-reveal-in {\n  from {\n    opacity: 0;\n    transform: translateY(40px) scale(0.96);\n  }\n\n  to {\n    opacity: 1;\n    transform: none;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .scroll-reveal li {\n    animation: none;\n  }\n}",
      "features": [
        "scroll-driven animations",
        "keyframe animations",
        "transforms",
        "box shadows",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "shrinking-header",
      "name": "Shrinking Header",
      "category": "effects",
      "tags": [
        "sticky header",
        "shrink on scroll",
        "scroll-driven",
        "navbar",
        "animation-range",
        "scroll timeline"
      ],
      "description": "A sticky header that shrinks, gains a background and casts a shadow over the first 120px of scrolling, in pure CSS.",
      "url": "https://copy-css.com/snippets/shrinking-header",
      "markdown": "https://copy-css.com/snippets/shrinking-header.md",
      "html": "<header class=\"shrink-head\">\n  <a class=\"shrink-head-logo\" href=\"#\">Acme</a>\n  <nav aria-label=\"Main\">\n    <a href=\"#\">Docs</a>\n    <a href=\"#\">Blog</a>\n  </nav>\n</header>",
      "css": ".shrink-head {\n  position: sticky;\n  top: 0;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  padding: 22px 20px;\n  color: #0f172a;\n  font-family: system-ui, sans-serif;\n}\n\n.shrink-head-logo {\n  color: inherit;\n  font-size: 24px;\n  font-weight: 800;\n  text-decoration: none;\n}\n\n.shrink-head nav {\n  display: flex;\n  gap: 16px;\n}\n\n.shrink-head nav a {\n  color: #475569;\n  font-size: 14px;\n  font-weight: 600;\n  text-decoration: none;\n}\n\n.shrink-head a:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 3px;\n  border-radius: 2px;\n}\n\n@supports (animation-timeline: scroll()) {\n  .shrink-head {\n    animation: shrink-head-pad linear both;\n    animation-timeline: scroll();\n    animation-range: 0 120px;\n  }\n\n  .shrink-head-logo {\n    animation: shrink-head-logo linear both;\n    animation-timeline: scroll();\n    animation-range: 0 120px;\n  }\n}\n\n@keyframes shrink-head-pad {\n  to {\n    padding-block: 10px;\n    background: rgba(255, 255, 255, 0.9);\n    box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.3);\n  }\n}\n\n@keyframes shrink-head-logo {\n  to {\n    font-size: 18px;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .shrink-head,\n  .shrink-head-logo {\n    animation: none;\n  }\n}",
      "features": [
        "scroll-driven animations",
        "keyframe animations",
        "box shadows",
        "Flexbox",
        "sticky positioning",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "parallax-scrolling",
      "name": "Parallax Scrolling",
      "category": "effects",
      "tags": [
        "parallax",
        "scroll-driven",
        "view timeline",
        "image",
        "depth",
        "hero"
      ],
      "description": "An image that moves slower than the page inside its frame as it scrolls past, using a view() scroll timeline.",
      "url": "https://copy-css.com/snippets/parallax-scrolling",
      "markdown": "https://copy-css.com/snippets/parallax-scrolling.md",
      "html": "<div class=\"parallax-frame\">\n  <img src=\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Crect width='60' height='40' fill='%23bae6fd'/%3E%3Ccircle cx='14' cy='11' r='6' fill='%23fde047'/%3E%3Cpath d='M0 40V30l15-6 15 5 15-7 15 6v12z' fill='%2334d399'/%3E%3Cpath d='M36 31l5-15 5 15zM45 32l4-11 4 11zM8 36l4-12 4 12z' fill='%23047857'/%3E%3C/svg%3E\" alt=\"Green hills and pine trees on a sunny day\" width=\"280\" height=\"220\">\n</div>",
      "css": ".parallax-frame {\n  width: 100%;\n  max-width: 280px;\n  height: 160px;\n  margin: 0 auto;\n  overflow: hidden;\n  border-radius: 16px;\n}\n\n.parallax-frame img {\n  display: block;\n  width: 100%;\n  height: 140%;\n  object-fit: cover;\n}\n\n@supports (animation-timeline: view()) {\n  .parallax-frame img {\n    animation: parallax-frame-shift linear both;\n    animation-timeline: view();\n  }\n}\n\n@keyframes parallax-frame-shift {\n  from {\n    transform: translateY(-28%);\n  }\n\n  to {\n    transform: translateY(0);\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .parallax-frame img {\n    height: 100%;\n    animation: none;\n  }\n}",
      "features": [
        "scroll-driven animations",
        "keyframe animations",
        "transforms",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "stacking-cards-scroll",
      "name": "Stacking Cards on Scroll",
      "category": "effects",
      "tags": [
        "sticky",
        "stack",
        "scroll",
        "cards",
        "position sticky",
        "storytelling"
      ],
      "description": "Cards that pile up on top of each other as you scroll, each sticking a little lower, with plain position: sticky.",
      "url": "https://copy-css.com/snippets/stacking-cards-scroll",
      "markdown": "https://copy-css.com/snippets/stacking-cards-scroll.md",
      "html": "<ol class=\"stack-scroll\">\n  <li style=\"--i: 0\">01 · Research</li>\n  <li style=\"--i: 1\">02 · Prototype</li>\n  <li style=\"--i: 2\">03 · Test</li>\n  <li style=\"--i: 3\">04 · Ship</li>\n</ol>",
      "css": ".stack-scroll {\n  display: grid;\n  gap: 60px;\n  margin: 0;\n  padding: 0 0 40px;\n  list-style: none;\n  font-family: system-ui, sans-serif;\n}\n\n.stack-scroll li {\n  position: sticky;\n  top: calc(16px + var(--i) * 14px);\n  display: flex;\n  align-items: flex-end;\n  height: 120px;\n  padding: 18px;\n  box-sizing: border-box;\n  border-radius: 18px;\n  background: hsl(calc(250 + var(--i) * 30) 85% 65%);\n  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.6);\n  color: #fff;\n  font-size: 20px;\n  font-weight: 800;\n}",
      "features": [
        "box shadows",
        "CSS Grid",
        "Flexbox",
        "sticky positioning",
        "custom properties"
      ],
      "customProperties": []
    },
    {
      "id": "marching-ants-border",
      "name": "Marching Ants Border",
      "category": "effects",
      "tags": [
        "marching ants",
        "animated dashed border",
        "selection",
        "drop target",
        "gradient",
        "keyframes"
      ],
      "description": "An animated dashed border whose dashes crawl around the box like a selection marquee, for drop zones and crops.",
      "url": "https://copy-css.com/snippets/marching-ants-border",
      "markdown": "https://copy-css.com/snippets/marching-ants-border.md",
      "html": "<div class=\"ants-border\">Drop files here</div>",
      "css": ".ants-border {\n  --c: #2563eb;\n  display: grid;\n  place-items: center;\n  width: 240px;\n  height: 120px;\n  background:\n    linear-gradient(90deg, var(--c) 50%, transparent 0) repeat-x 0 0 / 14px 2px,\n    linear-gradient(90deg, var(--c) 50%, transparent 0) repeat-x 0 100% / 14px 2px,\n    linear-gradient(0deg, var(--c) 50%, transparent 0) repeat-y 0 0 / 2px 14px,\n    linear-gradient(0deg, var(--c) 50%, transparent 0) repeat-y 100% 0 / 2px 14px,\n    #eff6ff;\n  color: #1e40af;\n  font: 600 15px system-ui, sans-serif;\n  animation: ants-border-march 0.6s linear infinite;\n}\n\n@keyframes ants-border-march {\n  to {\n    background-position: 14px 0, -14px 100%, 0 -14px, 100% 14px, 0 0;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .ants-border {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "CSS Grid",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--c",
          "value": "#2563eb"
        }
      ]
    },
    {
      "id": "inverted-border-radius",
      "name": "Inverted Border Radius",
      "category": "effects",
      "tags": [
        "inverted radius",
        "cutout",
        "notch",
        "mask",
        "radial-gradient",
        "card corner"
      ],
      "description": "A card with a round bite taken out of its corner for a floating button, cut with a radial-gradient mask.",
      "url": "https://copy-css.com/snippets/inverted-border-radius",
      "markdown": "https://copy-css.com/snippets/inverted-border-radius.md",
      "html": "<div class=\"corner-bite\">\n  <div class=\"corner-bite-card\">\n    <small>Case study</small>\n    <h3>Rebranding a bakery</h3>\n  </div>\n  <a class=\"corner-bite-btn\" href=\"#\" aria-label=\"Open case study\">↗</a>\n</div>",
      "css": ".corner-bite {\n  --r: 30px;\n  position: relative;\n  width: 230px;\n  font-family: system-ui, sans-serif;\n}\n\n.corner-bite-card {\n  height: 140px;\n  padding: 18px;\n  box-sizing: border-box;\n  border-radius: 20px;\n  background: linear-gradient(150deg, #facc15, #ea580c);\n  color: #431407;\n  -webkit-mask: radial-gradient(calc(var(--r) * 1.5 + 4px) at 100% 0, transparent 98%, #000);\n  mask: radial-gradient(calc(var(--r) * 1.5 + 4px) at 100% 0, transparent 98%, #000);\n}\n\n.corner-bite-card small {\n  font-size: 12px;\n  font-weight: 700;\n  letter-spacing: 0.08em;\n  text-transform: uppercase;\n}\n\n.corner-bite-card h3 {\n  margin: 50px 0 0;\n  font-size: 19px;\n}\n\n.corner-bite-btn {\n  position: absolute;\n  top: 4px;\n  right: 4px;\n  display: grid;\n  place-items: center;\n  width: var(--r);\n  height: var(--r);\n  border-radius: 50%;\n  background: #431407;\n  color: #fde68a;\n  font-size: 16px;\n  font-weight: 700;\n  text-decoration: none;\n  transition: transform 0.2s ease;\n}\n\n.corner-bite-btn:hover {\n  transform: rotate(45deg);\n}\n\n.corner-bite-btn:focus-visible {\n  outline: 2px solid #431407;\n  outline-offset: 3px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .corner-bite-btn {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "linear gradients",
        "radial gradients",
        "masks",
        "CSS Grid",
        "keyboard focus styles",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--r",
          "value": "30px"
        }
      ]
    },
    {
      "id": "outline-offset-hover",
      "name": "Outline Offset Hover",
      "category": "effects",
      "tags": [
        "outline",
        "outline-offset",
        "ring",
        "hover",
        "focus",
        "avatar"
      ],
      "description": "A ring that springs out from the element on hover and focus by animating outline-offset and outline color.",
      "url": "https://copy-css.com/snippets/outline-offset-hover",
      "markdown": "https://copy-css.com/snippets/outline-offset-hover.md",
      "html": "<div class=\"ring-row\">\n  <a class=\"ring-hover\" href=\"#\" aria-label=\"Profile of Kai\">K</a>\n  <a class=\"ring-hover\" href=\"#\" aria-label=\"Profile of Noa\">N</a>\n  <a class=\"ring-hover\" href=\"#\" aria-label=\"Profile of Eli\">E</a>\n</div>",
      "css": ".ring-row {\n  display: flex;\n  gap: 18px;\n}\n\n.ring-hover {\n  display: grid;\n  place-items: center;\n  width: 56px;\n  height: 56px;\n  border-radius: 50%;\n  background: #0d9488;\n  color: #fff;\n  font: 700 20px system-ui, sans-serif;\n  text-decoration: none;\n  outline: 2px solid transparent;\n  outline-offset: 0;\n  transition: outline-offset 0.25s ease, outline-color 0.25s ease;\n}\n\n.ring-hover:hover,\n.ring-hover:focus-visible {\n  outline-color: #0d9488;\n  outline-offset: 5px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .ring-hover {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "Flexbox",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "animated-waves",
      "name": "Animated Waves",
      "category": "effects",
      "tags": [
        "waves",
        "svg background",
        "hero",
        "ocean",
        "layered",
        "animation"
      ],
      "description": "Layered SVG waves rolling along the bottom of a hero section at different speeds, all in background layers.",
      "url": "https://copy-css.com/snippets/animated-waves",
      "markdown": "https://copy-css.com/snippets/animated-waves.md",
      "html": "<div class=\"wave-hero\">\n  <h3>Ride the wave</h3>\n</div>",
      "css": ".wave-hero {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 280px;\n  height: 160px;\n  overflow: hidden;\n  border-radius: 18px;\n  background: linear-gradient(180deg, #0ea5e9, #1e3a8a);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.wave-hero h3 {\n  position: relative;\n  z-index: 1;\n  margin: 0 0 30px;\n  font-size: 22px;\n}\n\n.wave-hero::before,\n.wave-hero::after {\n  content: \"\";\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  height: 50px;\n  background: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q100 0 200 30 T400 30 V60 H0Z' fill='%23fff'/%3E%3C/svg%3E\") repeat-x 0 100% / 200px 100%;\n  animation: wave-hero-roll 6s linear infinite;\n}\n\n.wave-hero::before {\n  height: 60px;\n  opacity: 0.35;\n  animation-duration: 9s;\n  animation-direction: reverse;\n}\n\n.wave-hero::after {\n  opacity: 0.8;\n}\n\n@keyframes wave-hero-roll {\n  to {\n    background-position-x: 200px;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .wave-hero::before,\n  .wave-hero::after {\n    animation: none;\n  }\n}",
      "features": [
        "keyframe animations",
        "linear gradients",
        "CSS Grid",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "tooltip-positions",
      "name": "Tooltip Positions",
      "category": "effects",
      "tags": [
        "tooltip",
        "top",
        "bottom",
        "left",
        "right",
        "arrow",
        "aria-describedby"
      ],
      "description": "Accessible tooltips with arrows that open above, below, left or right, set with a single data attribute.",
      "url": "https://copy-css.com/snippets/tooltip-positions",
      "markdown": "https://copy-css.com/snippets/tooltip-positions.md",
      "html": "<div class=\"tooltip-pos-grid\">\n  <span class=\"tooltip-pos\" data-pos=\"top\">\n    <button type=\"button\" aria-describedby=\"tooltip-pos-top\">Top</button>\n    <span role=\"tooltip\" id=\"tooltip-pos-top\">Shown above</span>\n  </span>\n  <span class=\"tooltip-pos\" data-pos=\"bottom\">\n    <button type=\"button\" aria-describedby=\"tooltip-pos-bottom\">Bottom</button>\n    <span role=\"tooltip\" id=\"tooltip-pos-bottom\">Shown below</span>\n  </span>\n  <span class=\"tooltip-pos\" data-pos=\"right\">\n    <button type=\"button\" aria-describedby=\"tooltip-pos-right\">Right</button>\n    <span role=\"tooltip\" id=\"tooltip-pos-right\">To the right</span>\n  </span>\n  <span class=\"tooltip-pos\" data-pos=\"left\">\n    <button type=\"button\" aria-describedby=\"tooltip-pos-left\">Left</button>\n    <span role=\"tooltip\" id=\"tooltip-pos-left\">To the left</span>\n  </span>\n</div>",
      "css": ".tooltip-pos-grid {\n  display: grid;\n  grid-template-columns: auto auto;\n  gap: 44px 40px;\n  font-family: system-ui, sans-serif;\n}\n\n.tooltip-pos {\n  --tip-bg: #1e293b;\n  position: relative;\n  display: inline-block;\n}\n\n.tooltip-pos button {\n  padding: 8px 14px;\n  border: 1px solid #cbd5e1;\n  border-radius: 8px;\n  background: #fff;\n  color: #0f172a;\n  font: 500 14px system-ui, sans-serif;\n  cursor: pointer;\n}\n\n.tooltip-pos button:focus-visible {\n  outline: 2px solid #2563eb;\n  outline-offset: 2px;\n}\n\n.tooltip-pos [role=\"tooltip\"] {\n  position: absolute;\n  z-index: 10;\n  padding: 6px 10px;\n  border-radius: 6px;\n  background: var(--tip-bg);\n  color: #fff;\n  font-size: 13px;\n  white-space: nowrap;\n  opacity: 0;\n  visibility: hidden;\n  pointer-events: none;\n  transition: opacity 0.15s ease, visibility 0.15s;\n}\n\n.tooltip-pos [role=\"tooltip\"]::after {\n  content: \"\";\n  position: absolute;\n  border: 5px solid transparent;\n}\n\n.tooltip-pos:hover [role=\"tooltip\"],\n.tooltip-pos:focus-within [role=\"tooltip\"] {\n  opacity: 1;\n  visibility: visible;\n}\n\n.tooltip-pos[data-pos=\"top\"] [role=\"tooltip\"] {\n  bottom: calc(100% + 8px);\n  left: 50%;\n  translate: -50% 0;\n}\n\n.tooltip-pos[data-pos=\"top\"] [role=\"tooltip\"]::after {\n  top: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border-top-color: var(--tip-bg);\n}\n\n.tooltip-pos[data-pos=\"bottom\"] [role=\"tooltip\"] {\n  top: calc(100% + 8px);\n  left: 50%;\n  translate: -50% 0;\n}\n\n.tooltip-pos[data-pos=\"bottom\"] [role=\"tooltip\"]::after {\n  bottom: 100%;\n  left: 50%;\n  margin-left: -5px;\n  border-bottom-color: var(--tip-bg);\n}\n\n.tooltip-pos[data-pos=\"right\"] [role=\"tooltip\"] {\n  top: 50%;\n  left: calc(100% + 8px);\n  translate: 0 -50%;\n}\n\n.tooltip-pos[data-pos=\"right\"] [role=\"tooltip\"]::after {\n  top: 50%;\n  right: 100%;\n  margin-top: -5px;\n  border-right-color: var(--tip-bg);\n}\n\n.tooltip-pos[data-pos=\"left\"] [role=\"tooltip\"] {\n  top: 50%;\n  right: calc(100% + 8px);\n  translate: 0 -50%;\n}\n\n.tooltip-pos[data-pos=\"left\"] [role=\"tooltip\"]::after {\n  top: 50%;\n  left: 100%;\n  margin-top: -5px;\n  border-left-color: var(--tip-bg);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .tooltip-pos [role=\"tooltip\"] {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "CSS Grid",
        "keyboard focus styles",
        "custom properties",
        "reduced-motion support"
      ],
      "customProperties": [
        {
          "name": "--tip-bg",
          "value": "#1e293b"
        }
      ]
    },
    {
      "id": "info-icon-tooltip",
      "name": "Info Icon Tooltip",
      "category": "effects",
      "tags": [
        "info icon",
        "help",
        "tooltip",
        "form hint",
        "multiline",
        "aria-describedby"
      ],
      "description": "A small \"i\" help button beside a form label that shows a multi-line hint bubble on hover or keyboard focus.",
      "url": "https://copy-css.com/snippets/info-icon-tooltip",
      "markdown": "https://copy-css.com/snippets/info-icon-tooltip.md",
      "html": "<div class=\"info-tip-field\">\n  <label for=\"info-tip-cvc\">Security code</label>\n  <span class=\"info-tip\">\n    <button type=\"button\" aria-label=\"What is this?\" aria-describedby=\"info-tip-text\">i</button>\n    <span role=\"tooltip\" id=\"info-tip-text\">The 3 digits printed on the back of your card, next to the signature strip.</span>\n  </span>\n  <input id=\"info-tip-cvc\" type=\"text\" inputmode=\"numeric\" maxlength=\"4\" autocomplete=\"cc-csc\">\n</div>",
      "css": ".info-tip-field {\n  display: grid;\n  grid-template-columns: auto 1fr;\n  align-items: center;\n  gap: 6px 8px;\n  width: 220px;\n  color: #111827;\n  font: 600 14px system-ui, sans-serif;\n}\n\n.info-tip-field input {\n  grid-column: 1 / -1;\n  padding: 9px 11px;\n  border: 1.5px solid #d1d5db;\n  border-radius: 8px;\n  font: 15px system-ui, sans-serif;\n}\n\n.info-tip-field input:focus-visible {\n  border-color: #4f46e5;\n  outline: 3px solid rgba(79, 70, 229, 0.2);\n  outline-offset: 0;\n}\n\n.info-tip {\n  position: relative;\n  justify-self: start;\n}\n\n.info-tip button {\n  display: grid;\n  place-items: center;\n  width: 18px;\n  height: 18px;\n  padding: 0;\n  border: 1.5px solid #9ca3af;\n  border-radius: 50%;\n  background: #fff;\n  color: #6b7280;\n  font: italic 700 11px Georgia, serif;\n  cursor: help;\n}\n\n.info-tip button:hover,\n.info-tip button:focus-visible {\n  border-color: #4f46e5;\n  color: #4f46e5;\n}\n\n.info-tip button:focus-visible {\n  outline: 2px solid #4f46e5;\n  outline-offset: 2px;\n}\n\n.info-tip [role=\"tooltip\"] {\n  position: absolute;\n  bottom: calc(100% + 10px);\n  left: -12px;\n  z-index: 10;\n  width: 200px;\n  padding: 10px 12px;\n  border-radius: 10px;\n  background: #312e81;\n  color: #e0e7ff;\n  font-size: 13px;\n  font-weight: 400;\n  line-height: 1.45;\n  opacity: 0;\n  visibility: hidden;\n  transform: translateY(4px);\n  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;\n}\n\n.info-tip [role=\"tooltip\"]::after {\n  content: \"\";\n  position: absolute;\n  top: 100%;\n  left: 16px;\n  border: 6px solid transparent;\n  border-top-color: #312e81;\n}\n\n.info-tip:hover [role=\"tooltip\"],\n.info-tip:focus-within [role=\"tooltip\"] {\n  opacity: 1;\n  visibility: visible;\n  transform: none;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .info-tip [role=\"tooltip\"] {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "transforms",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "user-hover-card",
      "name": "User Hover Card",
      "category": "effects",
      "tags": [
        "hover card",
        "rich tooltip",
        "profile preview",
        "mention",
        "focus-within",
        "popover"
      ],
      "description": "A rich tooltip that previews a user profile when you hover or tab to an @mention, and stays open while you use it.",
      "url": "https://copy-css.com/snippets/user-hover-card",
      "markdown": "https://copy-css.com/snippets/user-hover-card.md",
      "html": "<p class=\"mention-text\">\n  Thanks to\n  <span class=\"hover-card\">\n    <a href=\"#\" aria-describedby=\"hover-card-mira\">@mira</a>\n    <span class=\"hover-card-panel\" id=\"hover-card-mira\" role=\"tooltip\">\n      <span class=\"hover-card-avatar\" aria-hidden=\"true\">MO</span>\n      <strong>Mira Okafor</strong>\n      <span>Design engineer. Builds tiny tools.</span>\n    </span>\n  </span>\n  for the review.\n</p>",
      "css": ".mention-text {\n  max-width: 260px;\n  margin: 0;\n  color: #44403c;\n  font: 16px/1.6 system-ui, sans-serif;\n}\n\n.hover-card {\n  position: relative;\n  display: inline-block;\n}\n\n.hover-card > a {\n  color: #7c3aed;\n  font-weight: 700;\n  text-decoration: none;\n}\n\n.hover-card > a:focus-visible {\n  outline: 2px solid #7c3aed;\n  outline-offset: 2px;\n  border-radius: 3px;\n}\n\n.hover-card-panel {\n  position: absolute;\n  top: 100%;\n  left: 50%;\n  z-index: 10;\n  display: grid;\n  gap: 2px;\n  width: 200px;\n  margin-top: 8px;\n  padding: 14px;\n  border: 1px solid #e7e5e4;\n  border-radius: 14px;\n  background: #fff;\n  box-shadow: 0 16px 32px -12px rgba(28, 25, 23, 0.3);\n  color: #57534e;\n  font-size: 13px;\n  line-height: 1.4;\n  opacity: 0;\n  visibility: hidden;\n  translate: -50% 6px;\n  transition: opacity 0.2s ease, translate 0.2s ease, visibility 0.2s;\n}\n\n.hover-card-panel::before {\n  content: \"\";\n  position: absolute;\n  bottom: 100%;\n  left: 0;\n  right: 0;\n  height: 10px;\n}\n\n.hover-card:hover .hover-card-panel,\n.hover-card:focus-within .hover-card-panel {\n  opacity: 1;\n  visibility: visible;\n  translate: -50% 0;\n}\n\n.hover-card-avatar {\n  display: grid;\n  place-items: center;\n  width: 40px;\n  height: 40px;\n  margin-bottom: 6px;\n  border-radius: 50%;\n  background: linear-gradient(135deg, #a78bfa, #6d28d9);\n  color: #fff;\n  font-size: 14px;\n  font-weight: 700;\n}\n\n.hover-card-panel strong {\n  color: #1c1917;\n  font-size: 15px;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .hover-card-panel {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "linear gradients",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    },
    {
      "id": "popover-toggletip",
      "name": "Popover Toggletip",
      "category": "effects",
      "tags": [
        "popover",
        "toggletip",
        "click tooltip",
        "anchor positioning",
        "popovertarget",
        "no javascript"
      ],
      "description": "A click-to-open info bubble using the native popover attribute, placed above its button with CSS anchor positioning.",
      "url": "https://copy-css.com/snippets/popover-toggletip",
      "markdown": "https://copy-css.com/snippets/popover-toggletip.md",
      "html": "<button class=\"toggletip-btn\" type=\"button\" popovertarget=\"toggletip-1\" aria-label=\"More info\">?</button>\n<div class=\"toggletip\" id=\"toggletip-1\" popover>\n  Free shipping on orders over $50. Returns are free within 30 days.\n</div>",
      "css": ".toggletip-btn {\n  display: grid;\n  place-items: center;\n  width: 36px;\n  height: 36px;\n  border: 0;\n  border-radius: 50%;\n  background: #0891b2;\n  color: #fff;\n  font: 700 16px system-ui, sans-serif;\n  cursor: pointer;\n  anchor-name: --toggletip;\n}\n\n.toggletip-btn:focus-visible {\n  outline: 2px solid #0891b2;\n  outline-offset: 3px;\n}\n\n.toggletip {\n  width: 220px;\n  padding: 12px 14px;\n  border: 0;\n  border-radius: 12px;\n  background: #164e63;\n  box-shadow: 0 12px 28px -10px rgba(8, 51, 68, 0.5);\n  color: #ecfeff;\n  font: 14px/1.45 system-ui, sans-serif;\n}\n\n@supports (position-area: top) {\n  .toggletip {\n    position-anchor: --toggletip;\n    position-area: top;\n    position-try-fallbacks: flip-block;\n    margin: 0 0 10px;\n  }\n}",
      "features": [
        "anchor positioning",
        "box shadows",
        "CSS Grid",
        "keyboard focus styles"
      ],
      "customProperties": []
    },
    {
      "id": "definition-tooltip",
      "name": "Definition Tooltip",
      "category": "effects",
      "tags": [
        "definition",
        "glossary",
        "dfn",
        "inline tooltip",
        "dotted underline",
        "jargon"
      ],
      "description": "Explains a term inside a sentence: a dotted-underlined word that reveals a short definition on hover or focus.",
      "url": "https://copy-css.com/snippets/definition-tooltip",
      "markdown": "https://copy-css.com/snippets/definition-tooltip.md",
      "html": "<p class=\"define-text\">\n  The layout uses\n  <span class=\"define\" tabindex=\"0\" aria-describedby=\"define-subgrid\">subgrid</span><span class=\"define-tip\" role=\"tooltip\" id=\"define-subgrid\">A grid item that lines up its children with the parent grid's tracks.</span>\n  so the card titles align.\n</p>",
      "css": ".define-text {\n  position: relative;\n  max-width: 260px;\n  margin: 0;\n  color: #451a03;\n  font: 17px/1.6 Georgia, \"Times New Roman\", serif;\n}\n\n.define {\n  text-decoration: underline dotted #b45309 2px;\n  text-underline-offset: 4px;\n  cursor: help;\n}\n\n.define:focus-visible {\n  outline: 2px solid #b45309;\n  outline-offset: 2px;\n  border-radius: 2px;\n}\n\n.define-tip {\n  position: absolute;\n  top: calc(100% + 8px);\n  left: 0;\n  z-index: 10;\n  width: 100%;\n  padding: 10px 12px;\n  box-sizing: border-box;\n  border-left: 3px solid #f59e0b;\n  border-radius: 4px 10px 10px 4px;\n  background: #fff;\n  box-shadow: 0 10px 24px -10px rgba(120, 53, 15, 0.35);\n  color: #78350f;\n  font: 14px/1.45 system-ui, sans-serif;\n  opacity: 0;\n  visibility: hidden;\n  transition: opacity 0.15s ease, visibility 0.15s;\n}\n\n.define:hover + .define-tip,\n.define:focus + .define-tip {\n  opacity: 1;\n  visibility: visible;\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .define-tip {\n    transition: none;\n  }\n}",
      "features": [
        "transitions",
        "box shadows",
        "keyboard focus styles",
        "reduced-motion support"
      ],
      "customProperties": []
    }
  ]
}
