QuickSnip LogoA light blue logo with a thunderbolt in bracketsQuickSnip

Primary Button

Generates a styled primary button.

  • button
  • primary

Code

@mixin primary-button($bg: #007bff, $color: #fff) {
  background-color: $bg;
  color: $color;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;

  &:hover {
    background-color: darken($bg, 10%);
  }
}