Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.


                <button class="button">Click Me</button>
<a class="button" href="#">No, Please Click Me</a>

<button class="button is-outlined">Why Not Try Clicking Me?</button>
<a class="button is-outlined" href="#">Or Click Me For Once?!</a>


                @import bourbon
// Feel free to edit these settings
// and try out different things.
$animation-speed: 150ms

$button-bg-color: tomato
$button-text-color: white
$button-text-size: 1.25em
$button-spacing: 1.5rem

// Here's the code for the buttons.
	display: inline-block
	margin: $button-spacing / 2
	padding: ($button-spacing / 2) $button-spacing
	border: none
	border-radius: $button-spacing / 8
	outline: none

	background-color: $button-bg-color

	color: $button-text-color
	font-family: inherit
	font-size: $button-text-size
	font-weight: 400
	line-height: $button-spacing
	text-decoration: none
	text-align: center

	cursor: pointer
	transition: all $animation-speed ease-out

		background-color: tint($button-bg-color, 10%)

		box-shadow: 0 0 0 ($button-spacing / 8) $button-text-color, 0 0 0 ($button-spacing / 4) tint($button-bg-color, 10%)

		background-color: shade($button-bg-color, 5%)

		box-shadow: 0 0 0 ($button-spacing / 8) shade($button-bg-color, 5%), 0 0 0 ($button-spacing / 4) shade($button-bg-color, 5%)
		transition-duration: $animation-speed / 2

		border: ($button-spacing / 8) solid $button-bg-color
		background-color: transparent
		color: $button-bg-color
			border-color: tint($button-bg-color, 10%)
			color: tint($button-bg-color, 10%)
			border-color: shade($button-bg-color, 5%)
			color: shade($button-bg-color, 5%)

// Not relevant for the buttons. 
// Only for this demo to look okay.
*, *::before, *::after
	box-sizing: border-box

	background-color: #fafafa

	font-family: Roboto, sans-serif

html, body
	height: 100%
	margin: 0
	padding: 0
	width: 100%

	align-items: center
	display: flex
	flex-flow: column nowrap
	justify-content: center



                document.querySelector('.button').addEventListener('click', function (event) {