CodePen

HTML

            
              <div class="wrapper">
  <h1>Auto Custom Bootstrap Buttons</h1>
  <a href="" class="btn">Read More</a>
  <a href="" class="btn btn-primary">Read More</a>
  <a href="" class="btn btn-info">Read More</a>
  <a href="" class="btn btn-success">Read More</a>
  <a href="" class="btn btn-warning">Read More</a>
  <a href="" class="btn btn-danger">Read More</a>
  <a href="" class="btn btn-inverse">Read More</a>
  <a href="" class="btn btn-large">Read More</a>
  <a href="" class="btn btn-small">Read More</a>
  <a href="" class="btn btn-mini">Read More</a>
</div>
            
          
!
via HTML Inspector

CSS

            
              @mixin buttons {
  //Button Text Color
  %lightTextColor { color: #88a5b1; }
  %darkTextColor { color: #fff; }
  //Button Styles
  .btn {
    $buttonColor: #f8f8f8;    
    font: 12px Helvetica; @extend %lightTextColor;
    padding: 8px 22px 6px; margin: 0;
    border: none; border-bottom: 3px #aacedd solid;
    text-decoration: none;
    @include background-image(linear-gradient(lighten($buttonColor, 10%), $buttonColor));
    position: relative;
    @include box-shadow(rgba(0,0,0,0.2) 0 0 25px -5px);
    &:hover {
      @extend %lightTextColor;
    }
    &:active {
      position: relative; top: 3px;
      border: none;
    }
  }
  //Button Colors - THE MAGIC
  $buttonColors: primary #005888, info #49AFCD, success #5BB75B, warning #FAA732, danger #DA4F49, inverse #363636;
  @each $className in $buttonColors {
    .btn-#{nth($className, 1)} {
      $buttonColor: nth($className, 2);
      @extend %darkTextColor;
      border-bottom: 3px darken($buttonColor, 25%) solid;
      @include background-image(linear-gradient(lighten($buttonColor, 10%), $buttonColor));
      &:hover {
        @extend %darkTextColor; 
        @include background-image(linear-gradient(lighten($buttonColor, 20%), $buttonColor));
      }
    }
  }
  //Button Sizes
  .btn-large {
    font-size: 18px;
    padding: 12px 22px 10px;
  }
  .btn-small {
    font-size: 11px;
    padding: 8px 16px 6px;
  }
  .btn-mini {
    font-size: 9px;
    padding: 7px 12px 5px;
  }
}

//Boostrap Custom Buttons Mixin Call
@include buttons;

//Layout Stuff
body {
  background: url('http://thecssguru.freeiz.com/animate/bg.png');
}
.wrapper {
  width: 525px;
  margin: 50px auto; padding: 25px;
  overflow: hidden;
  background: rgba(white, 0.8);
  @include border-radius(5px);
  h1 {
    font: bold 28px Helvetica;
    margin: 0 10px 10px;
  }
  a {
    margin: 10px;
    display: block;
    float: left;
    &:active {
      margin-bottom: 13px;
    }    
  }
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              //Auto Custom Bootstrap Buttons

//Created a Mixn so it can be stored in a partial, but doesn't have to be.

//The Mixin generates all the classes you need via the @each function

//Gives you complete control on how you want your custom buttons to look like, while using all the lovely bootstrap class names for buttons. Go ahead and play with the CSS to create your own custom buttons

//I had fun making this, btw, I am linking to the bootstrap.css via github for the core styling.

$('a').click(function(){
  return false
  //just so you can click the buttons without reload
});
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................