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.


                svg(viewBox='-325 -90 2000 750' xmlns='')
		| svg { font: 45px ubuntu mono, consolas, monaco, monospace; text-anchor: middle }
		| #p * { fill: #888; fill-opacity: .35; stroke: none }
		| [d] { stroke: #ccc; stroke-width: 50 }
		| #p + [d] { stroke-dasharray: 50 50; stroke-width: 1650; stroke: url(#p) }
		| #p + * + [d] { stroke: #000 }
		| g * + :not([x]):nth-child(odd) { fill: #f90 }
		| [d] + g { text-anchor: end }
		| g + [d] { stroke: #f90 }
		| g + [d] + * { stroke-width: 4; stroke-dasharray: 9 }
		| [x] + g { fill: #fff }
	pattern#p(viewBox='0 0 8 8' width='16' height='16' patternUnits='userSpaceOnUse')
		path(d='M0 0h4v8h4v-4h-8')
	path(d='M0 85h1350M0 285h500M0 485h950M0 585h650')
	g(transform='translate(-10 0)')
		text(y=600) layer 0
		text(y=500) layer 1
		text(y=400) result 10
		text(y=300) layer 2
		text(y=200) result 210
		text(y=100) layer 3
		text result 3210
	path(d='M500-15h150M950-15h400M0 185h500M650 185h300M650 385h300')
	text(x=250) 0
	text(x=800) 0
	text(x=1500) 0
	text(x=1500 y=100) 0
	text(x=575 y=200) 0
	text(x=1150 y=200) 0
	text(x=1500 y=200) 0
	text(x=575 y=300) 0
	text(x=800 y=300) 0
	text(x=1300 y=300) 0
	text(x=250 y=400) 0
	text(x=575 y=400) 0
	text(x=1300 y=400) 0
	text(x=1300 y=500) 0
	text(x=800 y=600) 0
	text(x=1300 y=600) 0
		text(x=575) 1
		text(x=1150) 1
		text(x=250 y=100) 1
		text(x=575 y=100) 1
		text(x=800 y=100) 1
		text(x=1150 y=100) 1
		text(x=250 y=200) 1
		text(x=800 y=200) 1
		text(x=250 y=300) 1
		text(x=800 y=400) 1
		text(x=325 y=500) 1
		text(x=800 y=500) 1
		text(x=325 y=600) 1

// minimal SVG
<svg viewBox='-325 -90 2000 750' xmlns=''><style>svg{font:45px ubuntu mono,consolas,monaco,monospace;text-anchor:middle}#p *{fill:#888;fill-opacity:.35;stroke:none}[d]{stroke:#ccc;stroke-width:50}#p+[d]{stroke-dasharray:50 50;stroke-width:1650;stroke:url(#p)}#p+*+[d]{stroke:#000}g *+:not([x]):nth-child(odd){fill:#f90}[d]+g{text-anchor:end}g+[d]{stroke:#f90}g+[d]+*{stroke-width:4;stroke-dasharray:9}[x]+g{fill:#fff}</style><pattern id='p' viewBox='0 0 8 8' width='16' height='16' patternUnits='userSpaceOnUse'><path d='M0 0h4v8h4v-4h-8'/></pattern><path d='M825-40v650'/><path d='M0 85h1350M0 285h500M0 485h950M0 585h650'/><g transform='translate(-10 0)'><text y='600'>layer 0</text><text y='500'>layer 1</text><text y='400'>result 10</text><text y='300'>layer 2</text><text y='200'>result 210</text><text y='100'>layer 3</text><text>result 3210</text></g><path d='M500-15h150M950-15h400M0 185h500M650 185h300M650 385h300'/><path d='M0-75v650M500-75v525M650-75v650M950-75v650M1350-75v325M1650-75v650'/><text x='250'>0</text><text x='800'>0</text><text x='1500'>0</text><text x='1500' y='100'>0</text><text x='575' y='200'>0</text><text x='1150' y='200'>0</text><text x='1500' y='200'>0</text><text x='575' y='300'>0</text><text x='800' y='300'>0</text><text x='1300' y='300'>0</text><text x='250' y='400'>0</text><text x='575' y='400'>0</text><text x='1300' y='400'>0</text><text x='1300' y='500'>0</text><text x='800' y='600'>0</text><text x='1300' y='600'>0</text><g><text x='575'>1</text><text x='1150'>1</text><text x='250' y='100'>1</text><text x='575' y='100'>1</text><text x='800' y='100'>1</text><text x='1150' y='100'>1</text><text x='250' y='200'>1</text><text x='800' y='200'>1</text><text x='250' y='300'>1</text><text x='800' y='400'>1</text><text x='325' y='500'>1</text><text x='800' y='500'>1</text><text x='325' y='600'>1</text></g></svg>


                body {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	margin: 0;
	height: 100vh;