Buttons

Styled Buttons

Example

Hover, focus and press the buttons:

<!DOCTYPE html>
<html>
<head>
  <title>Page Title</title>
  <style>
    .btn { font: 600 15px Arial; padding: 10px 18px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; transition: background .2s, transform .1s; }
    .primary { background: #04AA6D; color: white; }
    .primary:hover { background: #059862; }
    .outline { background: white; color: #282A35; border-color: #282A35; }
    .outline:hover { background: #282A35; color: white; }
    .btn:active { transform: scale(0.97); }
    .btn:focus-visible { outline: 3px solid #ffd43b; outline-offset: 2px; }
    .btn:disabled { opacity: .5; cursor: not-allowed; }
  </style>
</head>
<body>

<button class="btn primary">Primary</button>
<button class="btn outline">Outline</button>
<button class="btn primary" disabled>Disabled</button>

</body>
</html>

Result