Button

The .glass-button utility class for styling non-button elements as glassmorphic buttons.

Use .glass-button when you need button styling on a non-<button> element, like an <a> tag.

Preview

Link Button Span Button

Usage

<a href="/signup" class="glass-button">Link Button</a>
<span class="glass-button">Span Button</span>

States

The .glass-button class includes the same hover shimmer, active scale, and disabled styling as the semantic <button>:

<button class="glass-button">Hover me</button>
<button class="glass-button" disabled>Disabled</button>

CSS Properties

PropertyValue
Backgroundrgba(255, 255, 255, 0.2) with blur(8px)
Border1px solid var(--glass-border)
Border Radiusvar(--glass-radius-md) (14px)
Padding0.6rem 1.25rem
FontInherited, 0.95rem, weight 600
Layoutinline-flex, centered, gap: 0.5rem
HoverShimmer sweep + brighter background + deeper shadow
Activescale(0.98) + darker background
Disabledopacity: 0.45, no pointer events
Extratext-decoration: none (useful for <a> tags)

Compatible Modifiers

  • .thin — lighter glass effect
  • .thick — more opaque, heavier frost
  • .vibrant — accent-tinted button (blue by default)
  • .vibrant.success — green tinted
  • .vibrant.warning — orange tinted
  • .vibrant.error — red tinted
  • .glow — outer accent glow
<button class="glass-button vibrant">Vibrant</button>
<button class="glass-button vibrant success">Success</button>
<button class="glass-button vibrant warning">Warning</button>
<button class="glass-button vibrant error">Error</button>
<button class="glass-button glow">Glow</button>