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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


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.


                h1 Lemon
	p A simple test of PUG+SASS inspired by bb8 animation from <a href="">DevTips</a>


                @import url('')

$myfont : Abel, sans-serif

	box-sizing: border-box
	background: #eee
	font: 20px $myfont
	text-align: center
	font: 200% $myfont
	margin: auto
	background-color: skyblue
	width: 20em
	height: 20em
	box-shadow: 0px 3px 20px rgba(0,0,0,0.2)
	border-radius: 4px
	border: 20px white solid
	position: relative
	// background: #CCC
	width: 4em
	height: 4em	
	position: absolute
	top: 7em
	left: 7em
		width: 4em
		height: 4em
		background: lemonchiffon
		border-radius: 0 50%
		border: solid 8px
		overflow: hidden
		position: absolute
		animation: spin 3s linear infinite
			width: 2em
			height: 2em
			border: 3px solid
			border-radius: 0 50%
			position: absolute
			background-color: #FFCC00
			left: -1em
			top: 0em
			left: 2em
			top: 2em
			left: 1.6em
			top: 0.3em
			width: 1em
			height: 1em

@keyframes spin
		transform: rotate(360deg)
		transform: rotate(0deg)

	text-align : center