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