Skip to content

Buttons

Bullframe CSS provides button styles for creating consistent, accessible buttons.

Basic Buttons

Default Button

html
<button class="bf-btn">Default Button</button>

Primary Button

html
<button class="bf-btn bf-btn--primary">Primary Button</button>
html
<a href="#" class="bf-btn">Link Button</a>

Button States

Disabled

Use the disabled attribute or the .bf-disabled class:

html
<button class="bf-btn" disabled>Disabled Button</button>
<button class="bf-btn bf-disabled">Disabled Button</button>
<button class="bf-btn bf-btn--primary bf-disabled">Disabled Primary</button>

Accessibility

  • Primary buttons meet WCAG AA 4.5:1 contrast (white text on blue background)
  • Disabled buttons use cursor: not-allowed and pointer-events: none
  • Focus states include a visible box-shadow ring

Bullframe CSSCopyright © 2026 Marco Pontili