Loading...
Customize

Customize theme

Colors
Primary
Warning
Info
Success
Danger
Typography (1rem = 16px)
Borders / Rounding

Menu

Content

Components

Utilities

Buy now

Buttons

Custom button styles for actions in forms, dialogs, etc.

Bootstrap docs

Solid (default)

<!-- Primary solid button -->
<button type="button" class="btn btn-primary">Primary</button>

<!-- Secondary solid button -->
<button type="button" class="btn btn-secondary">Secondary</button>

<!-- Success solid button -->
<button type="button" class="btn btn-success">Success</button>

<!-- Danger solid button -->
<button type="button" class="btn btn-danger">Danger</button>

<!-- Warning solid button -->
<button type="button" class="btn btn-warning">Warning</button>

<!-- Info solid button -->
<button type="button" class="btn btn-info">Info</button>

<!-- Light solid button -->
<button type="button" class="btn btn-light">Info</button>

<!-- Dark solid button -->
<button type="button" class="btn btn-dark">Dark</button>

<!-- Link button -->
<button type="button" class="btn btn-link">Link</button>
// Primary solid button
button(type="button").btn.btn-primary
  | Primary

// Secondary solid button
button(type="button").btn.btn-secondary
  | Secondary

// Success solid button
button(type="button").btn.btn-success
  | Success

// Danger solid button
button(type="button").btn.btn-danger
  | Danger

// Warning solid button
button(type="button").btn.btn-warning
  | Warning

// Info solid button
button(type="button").btn.btn-info
  | Info

// Light solid button
button(type="button").btn.btn-light
  | Light

// Dark solid button
button(type="button").btn.btn-dark
  | Dark

// Link button
button(type="button").btn.btn-link
  | Link

Outline

<!-- Primary outline button -->
<button type="button" class="btn btn-outline-primary">Primary</button>

<!-- Secondary outline button -->
<button type="button" class="btn btn-outline-secondary">Secondary</button>

<!-- Success outline button -->
<button type="button" class="btn btn-outline-success">Success</button>

<!-- Danger outline button -->
<button type="button" class="btn btn-outline-danger">Danger</button>

<!-- Warning outline button -->
<button type="button" class="btn btn-outline-warning">Warning</button>

<!-- Info outline button -->
<button type="button" class="btn btn-outline-info">Info</button>

<!-- Light outline button -->
<button type="button" class="btn btn-outline-light">Info</button>

<!-- Dark outline button -->
<button type="button" class="btn btn-outline-dark">Dark</button>
// Primary outline button
button(type="button").btn.btn-outline-primary
  | Primary

// Secondary outline button
button(type="button").btn.btn-outline-secondary
  | Secondary

// Success outline button
button(type="button").btn.btn-outline-success
  | Success

// Danger outline button
button(type="button").btn.btn-outline-danger
  | Danger

// Warning outline button
button(type="button").btn.btn-outline-warning
  | Warning

// Info outline button
button(type="button").btn.btn-outline-info
  | Info

// Light outline button
button(type="button").btn.btn-outline-light
  | Light

// Dark outline button
button(type="button").btn.btn-outline-dark
  | Dark

Icons

<!-- Primary button with text and icon -->
<button type="button" class="btn btn-primary">
  <i class="ai-user me-2"></i>
  Profile
</button>

<!-- Secondary solid icon button -->
<button type="button" class="btn btn-secondary btn-icon">
  <i class="ai-edit-alt"></i>
</button>

<!-- Danger outline icon button -->
<button type="button" class="btn btn-outline-danger btn-icon">
  <i class="ai-trash"></i>
</button>

<!-- Success solid icon button -->
<button type="button" class="btn btn-success btn-icon">
  <i class="ai-check"></i>
</button>

<!-- Warning pill solid icon button -->
<button type="button" class="btn btn-warning btn-icon rounded-pill">
  <i class="ai-star-filled"></i>
</button>

<!-- Info pill outline icon button -->
<button type="button" class="btn btn-outline-info btn-icon rounded-pill">
  <i class="ai-bookmark"></i>
</button>
// Primary button with text and icon
button(type="button").btn.btn-primary
  i.ai-user.me-2
  | Profile

// Secondary solid icon button
button(type="button").btn.btn-secondary.btn-icon
  i.ai-edit-alt

// Danger outline icon button
button(type="button").btn.btn-outline-danger.btn-icon
  i.ai-trash

// Success solid icon button
button(type="button").btn.btn-success.btn-icon
  i.ai-check

// Warning pill solid icon button
button(type="button").btn.btn-warning.btn-icon.rounded-pill
  i.ai-star-filled

// Info pill outline icon button
button(type="button").btn.btn-outline-info.btn-icon.rounded-pill
  i.ai-bookmark

Market buttons

App StoreApp StoreGoogle PlayGoogle Play
App StoreGoogle Play
<!-- App Store button (Dark) -->
<a href="#" class="btn btn-dark btn-lg px-3 py-2">
  <img src="assets/img/market/appstore-light.svg" class="d-dark-mode-none mx-1" width="136" alt="App Store">
  <img src="assets/img/market/appstore-dark.svg" class="d-none d-dark-mode-block mx-1" width="136" alt="App Store">
</a>

<!-- Google Play button (Dark) -->
<a href="#" class="btn btn-dark btn-lg px-3 py-2">
  <img src="assets/img/market/googleplay-light.svg" class="d-dark-mode-none mx-1" width="135" alt="Google Play">
  <img src="assets/img/market/googleplay-dark.svg" class="d-none d-dark-mode-block mx-1" width="135" alt="Google Play">
</a>

<!-- App Store button (Primary) -->
<a href="#" class="btn btn-primary btn-lg px-3 py-2">
  <img src="assets/img/market/appstore-light.svg" class="mx-1" width="136" alt="App Store">
</a>

<!-- Google Play button (Primary) -->
<a href="#" class="btn btn-primary btn-lg px-3 py-2">
  <img src="assets/img/market/googleplay-light.svg" class="mx-1" width="135" alt="Google Play">
</a>
// App Store button (Dark)
a(href="#").btn.btn-dark.btn-lg.px-3.py-2
  img(src="assets/img/market/appstore-light.svg", width="136", alt="App Store").d-dark-mode-none.mx-1
  img(src="assets/img/market/appstore-dark.svg", width="136", alt="App Store").d-none.d-dark-mode-block.mx-1

// Google Play button (Dark)
a(href="#").btn.btn-dark.btn-lg.px-3.py-2
  img(src="assets/img/market/googleplay-light.svg", width="135", alt="Google Play").d-dark-mode-none.mx-1
  img(src="assets/img/market/googleplay-dark.svg", width="135", alt="Google Play").d-none.d-dark-mode-block.mx-1

// App Store button (Primary)
a(href="#").btn.btn-primary.btn-lg.px-3.py-2
  img(src="assets/img/market/appstore-light.svg", width="136", alt="App Store").mx-1

// Google Play button (Primary)
a(href="#").btn.btn-primary.btn-lg.px-3.py-2
  img(src="assets/img/market/googleplay-light.svg", width="135", alt="Google Play").mx-1

Shapes

<!-- Rounded solid button -->
<button type="button" class="btn btn-primary">Rounded</button>

<!-- Pill solid button -->
<button type="button" class="btn btn-primary rounded-pill">Pill button</button>

<!-- Square solid button -->
<button type="button" class="btn btn-primary rounded-0">Square</button>

<!-- Rounded outline button -->
<button type="button" class="btn btn-outline-primary">Rounded</button>

<!-- Pill outline button -->
<button type="button" class="btn btn-outline-primary rounded-pill">Pill button</button>

<!-- Square outline button -->
<button type="button" class="btn btn-outline-primary rounded-0">Square</button>
// Rounded solid button
button(type="button").btn.btn-primary
  | Rounded

// Pill solid button
button(type="button").btn.btn-primary.rounded-pill
  | Pill button

// Square solid button
button(type="button").btn.btn-primary.rounded-0
  | Square

// Rounded outline button
button(type="button").btn.btn-outline-primary
  | Rounded

// Pill outline button
button(type="button").btn.btn-outline-primary.rounded-pill
  | Pill button

// Square outline button
button(type="button").btn.btn-outline-primary.rounded-0
  | Square

Sizes

<!-- Large solid button -->
<button type="button" class="btn btn-primary btn-lg">Large button</button>

<!-- Normal solid button -->
<button type="button" class="btn btn-primary">Normal button</button>

<!-- Small solid button -->
<button type="button" class="btn btn-primary btn-sm">Small button</button>

<!-- Large outline button -->
<button type="button" class="btn btn-outline-primary btn-lg">Large button</button>

<!-- Normal outline button -->
<button type="button" class="btn btn-outline-primary">Normal button</button>

<!-- Small outline button -->
<button type="button" class="btn btn-outline-primary btn-sm">Small button</button>

<!-- Block solid button -->
<button type="button" class="btn btn-primary w-100">Block level button</button>

<!-- Block outline button -->
<button type="button" class="btn btn-outline-primary w-100">Block level button</button>
// Large solid button
button(type="button").btn.btn-primary.btn-lg Large button

// Normal solid button
button(type="button").btn.btn-primary Normal button

// Small solid button
button(type="button").btn.btn-primary.btn-sm Small button

// Large outline button
button(type="button").btn.btn-outline-primary.btn-lg Large button

// Normal outline button
button(type="button").btn.btn-outline-primary Normal button

// Small outline button
button(type="button").btn.btn-outline-primary.btn-sm Small button

// Block solid button
button(type="button").btn.btn-primary.w-100 Block level button

// Block outline button
button(type="button").btn.btn-outline-primary.w-100 Block level button

States

<!-- Button states -->
<button type="button" class="btn btn-primary active">Active</button>
<button type="button" class="btn btn-secondary active">Active</button>
<button type="button" class="btn btn-primary" disabled>Disabled</button>
<button type="button" class="btn btn-secondary" disabled>Disabled</button>
<button type="button" class="btn btn-primary" data-bs-toggle="button">Button toggle</button>
<button type="button" class="btn btn-primary pe-none">
  <span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>
  Loading...
</button>
<button type="button" class="btn btn-secondary pe-none">
  <span class="spinner-grow spinner-grow-sm me-2" role="status" aria-hidden="true"></span>
  Loading...
</button>
// Button states
button(type="button").btn.btn-primary.active Active
button(type="button").btn.btn-secondary.active Active
button(type="button", disabled).btn.btn-primary Disabled
button(type="button", disabled).btn.btn-secondary Disabled
button(type="button", data-bs-toggle="button").btn.btn-primary Button toggle
button(type="button").btn.btn-primary.pe-none
  span(role="status", aria-hidden="true").spinner-border.spinner-border-sm.me-2
  | Loading...
button(type="button").btn.btn-secondary.pe-none
  span(role="status", aria-hidden="true").spinner-grow.spinner-grow-sm.me-2
  | Loading...