{
  "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"
    }
  ]
}
