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.


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.


                mixin photo (id)
	- const style = `background-image: url(//${id}/600x1200)`




                $bg: #ebebeb
$scale: 1.5

	box-sizing: inherit

	box-sizing: border-box

	background: $bg
	min-height: 100vh
	padding: 100px 50px
	display: grid
		template-columns: repeat(auto-fit, 200px)
		gap: 150px 100px
	justify-content: center
	align-items: center
	align-content: center
	width: 200px
	height: 300px
	position: relative

		border-radius: 5px
		background-position: center
		width: inherit
		height: inherit

		color: rgba(#000, .16)
		box-shadow: 0 2px 4px, 0 4px 8px -1px, 0 8px 16px -2px, 0 16px 32px -4px, 0 32px 64px -8px, 0 64px 128px -16px
		background-size: 100% * $scale
		box-shadow: 0 0 10px 10px $bg inset, 0 0 30px 20px $bg inset, 0 0 50px 30px $bg inset
		background-size: 100%
		position: absolute
		top: 0
		z-index: -1
		opacity: .5
		transform: scale($scale)