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.


	.input-group"text" placeholder="Searching for something?")
		a(href="" target="_blank") 💙


                // Variables
$black: #000
$white: #fff
$blue: #26547c
$green: #06d6a0
$light-gray: #a1a1a1

// Mixins
=size($h, $w)
	height: $h
	width: $w

	display: flex
	align-items: center
	justify-content: center

=gradient($deg, $fc, $sc)
	background: linear-gradient($deg, $fc 0%, $sc 100%)

// Style
	+gradient(45deg, $blue, $green)
	+size(100vh, 100vw)
	overflow: hidden

		bottom: 15px
		position: absolute

	position: relative

		+size(15px, 15px)
		background-color: $white
		border: 0
		border-radius: 50%
		box-shadow: 0 2px 2px 0 rgba(0,0,0,0.15)
		cursor: pointer
		color: $white
		outline: none
		padding: 5px
		position: relative
		transition: all 150ms cubic-bezier(0.2, 0.6, 0.252, 1.2)

		~ .bar
			+size(4px, 15px)
			background: $white
			border-radius: 4px
			box-shadow: 0 2px 2px 0 rgba(0,0,0,0.15)
			position: absolute
			display: block
			opacity: 1
			right: -9px
			top: 24px
			transform: rotate(45deg)
			transition: opacity 150ms ease
			color: $white
			+size(25px, 200px)
			border-radius: 3px
			color: $blue
			cursor: initial
				color: $light-gray
			~ .bar
				box-shadow: none
				opacity: 0
				right: 0
				top: 5px