Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


	<meta charset="UTF-8">
	<title>Bootstrap Matrial Design Buttons</title>
	<link rel="stylesheet" href="" />
	<link rel="stylesheet" href="">
	<div class="container my-5">
		<h5 class="mb-3">Examples:</h5>
		<button type="button" class="btn m-1 btn-primary">Primary</button>
		<button type="button" class="btn m-1 btn-secondary">Secondary</button>
		<button type="button" class="btn m-1 btn-success">Success</button>
		<button type="button" class="btn m-1 btn-danger">Danger</button>
		<button type="button" class="btn m-1 btn-warning">Warning</button>
		<button type="button" class="btn m-1 btn-info">Info</button>
		<button type="button" class="btn m-1 btn-light">Light</button>
		<button type="button" class="btn m-1 btn-dark">Dark</button>
		<button type="button" class="btn m-1 btn-link">Link</button>

		<h5 class="mb-3 mt-5">Outline Buttons:</h5>
		<button type="button" class="btn m-1 btn-outline-primary">Primary</button>
		<button type="button" class="btn m-1 btn-outline-secondary">Secondary</button>
		<button type="button" class="btn m-1 btn-outline-success">Success</button>
		<button type="button" class="btn m-1 btn-outline-danger">Danger</button>
		<button type="button" class="btn m-1 btn-outline-warning">Warning</button>
		<button type="button" class="btn m-1 btn-outline-info">Info</button>
		<button type="button" class="btn m-1 btn-outline-light">Light</button>
		<button type="button" class="btn m-1 btn-outline-dark">Dark</button>

		<h5 class="mb-3 mt-5">Rounded:</h5>
		<button type="button" class="btn rounded m-1 btn-primary">Primary</button>
		<button type="button" class="btn rounded m-1 btn-secondary">Secondary</button>
		<button type="button" class="btn rounded m-1 btn-success">Success</button>
		<button type="button" class="btn rounded m-1 btn-danger">Danger</button>
		<button type="button" class="btn rounded m-1 btn-warning">Warning</button>
		<button type="button" class="btn rounded m-1 btn-info">Info</button>
		<button type="button" class="btn rounded m-1 btn-light">Light</button>
		<button type="button" class="btn rounded m-1 btn-dark">Dark</button>
		<button type="button" class="btn rounded m-1 btn-link">Link</button>
		<button type="button" class="btn rounded m-1 btn-outline-primary">Primary</button>
		<button type="button" class="btn rounded m-1 btn-outline-secondary">Secondary</button>
		<button type="button" class="btn rounded m-1 btn-outline-success">Success</button>
		<button type="button" class="btn rounded m-1 btn-outline-danger">Danger</button>
		<button type="button" class="btn rounded m-1 btn-outline-warning">Warning</button>
		<button type="button" class="btn rounded m-1 btn-outline-info">Info</button>
		<button type="button" class="btn rounded m-1 btn-outline-light">Light</button>
		<button type="button" class="btn rounded m-1 btn-outline-dark">Dark</button>

		<h5 class="mb-3 mt-5">Sizes:</h5>
		<button type="button" class="btn m-1 btn-primary btn-sm">btn-sm</button>
		<button type="button" class="btn m-1 btn-primary">normal</button>
		<button type="button" class="btn m-1 btn-primary btn-lg">btn-lg</button>
		<button type="button" class="btn m-1 btn-outline-primary btn-sm">btn-sm</button>
		<button type="button" class="btn m-1 btn-outline-primary">normal</button>
		<button type="button" class="btn m-1 btn-outline-primary btn-lg">btn-lg</button>

		<h5 class="mb-3 mt-5">Button Group:</h5>
		<div class="btn-group" role="group" aria-label="Basic example">
			<button type="button" class="btn btn-primary">Left</button>
			<button type="button" class="btn btn-primary">Middle</button>
			<button type="button" class="btn btn-primary">Right</button>

		<h5 class="mb-3 mt-5">Button Tollbar:</h5>
		<div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups">
			<div class="btn-group mr-2" role="group" aria-label="First group">
				<button type="button" class="btn btn-primary btn-sm">1</button>
				<button type="button" class="btn btn-primary btn-sm">2</button>
				<button type="button" class="btn btn-primary btn-sm">3</button>
				<button type="button" class="btn btn-primary btn-sm">4</button>
			<div class="btn-group mr-2" role="group" aria-label="Second group">
				<button type="button" class="btn btn-primary btn-sm">5</button>
				<button type="button" class="btn btn-primary btn-sm">6</button>
				<button type="button" class="btn btn-primary btn-sm">7</button>
			<div class="btn-group" role="group" aria-label="Third group">
				<button type="button" class="btn btn-primary btn-sm">8</button>
  <section class="author">
      <p>Created by:  <a target="_blank" href="" title="ResponsiveMart">ResponsiveMart</a></p>
      <a target="_blank" href="" class="btn">Download Source Code</a>

	<script src=""> </script>
		Waves.attach (


                // material font-family
@import url(',200i,300i,400,400i,500,500i');

// material colors for bootstrap
$primary: #4285f4;
$secondary: #a6c;
$success: #00c851;
$danger: #ff3547;
$warning: #f80;
$info: #33b5e5;

// mixin for buttons color variants
@mixin btn($bg, $active-bg: darken($bg,7%)) {
	background-color: $bg;
	border-color: $bg;

	&:hover {
		background: $bg;
		border-color: $bg;

	&:active {
		background-color: $active-bg !important;
		border-color: $active-bg !important;

// mixin for outline buttons
@mixin outline-btn($bg) {
	background-color: transparent;
	border-color: $bg !important;
	color: $bg;

	&:hover {
		background: $bg;
		color: white;

	&:active {
		background: darken($bg,7%) !important;
		border-color: darken($bg,7%) !important;
		color: white !important;

// button border-radius
$btn-border-radius: 2px;

// font-sizes
$btn-font-size: 15px;
$btn-font-size-sm: 13px;
$btn-font-size-lg: 17px;

// paddings
$btn-padding-y: .6rem;
$btn-padding-x: 1.8rem;

$btn-padding-y-sm: .4rem;
$btn-padding-x-sm: 1.5rem;

$btn-padding-y-lg: .8rem;
$btn-padding-x-lg: 2.2rem;

// shadows
$btn-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
$btn-hover-box-shadow: 0 5px 11px 0 rgba(0,0,0,.18),0 4px 15px 0 rgba(0,0,0,.15);

body {
	font-family: 'roboto', sans-serif;
	background-color: #fefefe;

p {
	opacity: .9;
	font-size: .9rem;

.btn {
	border-radius: $btn-border-radius;
	font-size: $btn-font-size;
	padding: $btn-padding-y $btn-padding-x;
	box-shadow: $btn-box-shadow;
	-webkit-transition: .3s;
	transition: .3s;
	&.btn-sm {
		padding: $btn-padding-y-sm $btn-padding-x-sm;
		font-size: $btn-font-size-sm;

	&.btn-lg {
		padding: $btn-padding-y-lg $btn-padding-x-lg;
		font-size: $btn-font-size-lg;

	&.rounded {
		border-radius: 100rem !important;

	&:focus {
		box-shadow: $btn-hover-box-shadow !important;
	&[class*=outline] {
		border-width: 2px;

// buttons colors
.btn-primary {
	@include btn($primary);
.btn-secondary {
	@include btn($secondary);
.btn-success {
	@include btn($success);
.btn-danger {
	@include btn($danger);
.btn-warning {
	@include btn($warning);
	color: white;

// outline buttons
.btn-outline-primary {
	@include outline-btn($primary);
.btn-outline-secondary {
	@include outline-btn($secondary);
.btn-outline-success {
	@include outline-btn($success);
.btn-outline-danger {
	@include outline-btn($danger);
.btn-outline-warning {
	@include outline-btn($warning);
.btn-outline-light {
	color: #333;

	font-family: inherit;
	padding: 3em;
	text-align: center;
	width: 100%;
		color: #404040;
			text-decoration: none;
		text-decoration: none;
		display: inline-block;
		font-family: inherit;
		font-weight: 100;
		color: white;
		text-align: center;
		vertical-align: middle;
		user-select: none;
		background-color: black;
		padding: 1.5em 2rem;
		border-radius: 1em;
		transition: .5s all;
			background-color: lighten(black, 10%);