Pen Settings

HTML

CSS

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

HTML

              
                svg(viewBox='-325 -90 2000 1000' xmlns='http://www.w3.org/2000/svg')
	style
		| svg { font: 43px ubuntu mono, consolas, monaco, monospace; text-anchor: middle; dominant-baseline: middle }
		| [d] { stroke: #ccc; stroke-width: 70 }
		| #p * { fill: #888; fill-opacity: .35; stroke: none }
		| #p + [d] { stroke-dasharray: 70 30; stroke-width: 1650; stroke: url(#p) }
		| #p + * + [d] { stroke: #000 }
		| g * + :not([x]):nth-child(odd), g + [d] ~ [cy] { fill: #f90 }
		| [r] + g { text-anchor: end }
		| g + [d] { stroke: #f90 }
		| [r] + [d] { stroke-width: 4; stroke-dasharray: 9 }
		| [x] + g { fill: #fff }
	mask#m(maskUnits='userSpaceOnUse')
		rect(y=-35 width=1650 height=80 fill='#fff')
		circle(cx=500 r=35)
		circle(cx=650 r=35)
		circle(cx=950 r=35)
		circle(cx=1350 r=35)
	pattern#p(viewBox='0 0 8 8' width='16' height='16' patternUnits='userSpaceOnUse')
		path(d='M0 0h4v8h4v-4h-8')
	path(d='M825-35v900')
	path(d='M0 100h1650')
	circle(cx=1350 cy=301 r=35)
	circle(cx=500 cy=500 r=35)
	circle(cx=950 cy=700 r=35)
	circle(cx=650 cy=800 r=35)
	g(transform='translate(-10 0)')
		text(y=800) result 0
		text(y=700) result 1
		text(y=600) result 10
		text(y=500) layer 2
		text(y=400) result 210
		text(y=301) layer 3
		text(y=200) result 3210
		text(y=100) layer 4
		text result 43210
	path(d='M0 0h1650' mask='url(#m)')
	circle(cx=500 cy=200 r=35)
	circle(cx=650 cy=200 r=35)
	circle(cx=950 cy=200 r=35)
	circle(cx=1350 cy=200 r=35)
	circle(cx=500 cy=400 r=35)
	circle(cx=650 cy=400 r=35)
	circle(cx=950 cy=400 r=35)
	circle(cx=650 cy=600 r=35)
	circle(cx=950 cy=600 r=35)
	path(d='M0-75v950M500-75v730M650-75v950M950-75v950M1350-75v530M1650-75v950')
	text(x=500) 0
	text(x=650) 0
	text(x=950) 0
	text(x=1350) 0
	text(x=250 y=200) 0
	text(x=575 y=200) 0
	text(x=800 y=200) 1
	text(x=1100 y=200) 0
	text(x=1500 y=200) 0
	text(x=250 y=301) 0
	text(x=500 y=301) 0
	text(x=575 y=301) 0
	text(x=650 y=301) 0
	text(x=800 y=301) 0
	text(x=950 y=301) 0
	text(x=1100 y=301) 0
	text(x=1500 y=301) 0
	text(x=250 y=400) 0
	text(x=575 y=400) 0
	text(x=800 y=400) 0
	text(x=1100 y=400) 0
	text(x=1350 y=400) 0
	text(x=1500 y=400) 0
	text(x=250 y=500) 0
	text(x=575 y=500) 0
	text(x=650 y=500) 0
	text(x=800 y=500) 0
	text(x=950 y=500) 0
	text(x=1300 y=500) 0
	text(x=250 y=600) 0
	text(x=500 y=600) 0
	text(x=575 y=600) 0
	text(x=800 y=600) 0
	text(x=1300 y=600) 0
	text(x=325 y=700) 0
	text(x=650 y=700) 0
	text(x=800 y=700) 0
	text(x=1300 y=700) 0
	text(x=325 y=800) 0
	text(x=800 y=800) 0
	text(x=950 y=800) 0
	text(x=1300 y=800) 0
	g
		text(x=255) 1
		text(x=575) 1
		text(x=800) 1
		text(x=1100) 1
		text(x=1500) 1
		text(x=250 y=100) 1
		text(x=500 y=100) 1
		text(x=575 y=100) 1
		text(x=650 y=100) 1
		text(x=800 y=100) 1
		text(x=950 y=100) 1
		text(x=1100 y=100) 1
		text(x=1350 y=100) 1
		text(x=1500 y=100) 1
		text(x=500 y=200) 1
		text(x=650 y=200) 1
		text(x=950 y=200) 1
		text(x=1350 y=200) 1
		text(x=1350 y=301) 1
		text(x=500 y=400) 1
		text(x=650 y=400) 1
		text(x=950 y=400) 1
		text(x=500 y=500) 1
		text(x=650 y=600) 1
		text(x=950 y=600) 1
		text(x=950 y=700) 1
		text(x=650 y=800) 1

// minimal SVG
<svg viewBox='-325 -90 2000 1000' xmlns='http://www.w3.org/2000/svg'><style>svg{font:43px ubuntu mono,consolas,monaco,monospace;text-anchor:middle;dominant-baseline:middle}[d]{stroke:#ccc;stroke-width:70}#p *{fill:#888;fill-opacity:.35;stroke:none}#p+[d]{stroke-dasharray:70 30;stroke-width:1650;stroke:url(#p)}#p+*+[d]{stroke:#000}g *+:not([x]):nth-child(odd),g+[d]~[cy]{fill:#f90}[r]+g{text-anchor:end}g+[d]{stroke:#f90}[r]+[d]{stroke-width:4;stroke-dasharray:9}[x]+g{fill:#fff}</style><mask id='m' maskUnits='userSpaceOnUse'><rect y='-35' width='1650' height='80' fill='#fff'/><circle cx='500' r='35'/><circle cx='650' r='35'/><circle cx='950' r='35'/><circle cx='1350' r='35'/></mask><pattern id='p' viewBox='0 0 8 8' width='16' height='16' patternUnits='userSpaceOnUse'><path d='M0 0h4v8h4v-4h-8'/></pattern><path d='M825-35v900'/><path d='M0 100h1650'/><circle cx='1350' cy='301' r='35'/><circle cx='500' cy='500' r='35'/><circle cx='950' cy='700' r='35'/><circle cx='650' cy='800' r='35'/><g transform='translate(-10 0)'><text y='800'>result 0</text><text y='700'>result 1</text><text y='600'>result 10</text><text y='500'>layer 2</text><text y='400'>result 210</text><text y='301'>layer 3</text><text y='200'>result 3210</text><text y='100'>layer 4</text><text>result 43210</text></g><path d='M0 0h1650' mask='url(#m)'/><circle cx='500' cy='200' r='35'/><circle cx='650' cy='200' r='35'/><circle cx='950' cy='200' r='35'/><circle cx='1350' cy='200' r='35'/><circle cx='500' cy='400' r='35'/><circle cx='650' cy='400' r='35'/><circle cx='950' cy='400' r='35'/><circle cx='650' cy='600' r='35'/><circle cx='950' cy='600' r='35'/><path d='M0-75v950M500-75v730M650-75v950M950-75v950M1350-75v530M1650-75v950'/><text x='500'>0</text><text x='650'>0</text><text x='950'>0</text><text x='1350'>0</text><text x='250' y='200'>0</text><text x='575' y='200'>0</text><text x='800' y='200'>1</text><text x='1100' y='200'>0</text><text x='1500' y='200'>0</text><text x='250' y='301'>0</text><text x='500' y='301'>0</text><text x='575' y='301'>0</text><text x='650' y='301'>0</text><text x='800' y='301'>0</text><text x='950' y='301'>0</text><text x='1100' y='301'>0</text><text x='1500' y='301'>0</text><text x='250' y='400'>0</text><text x='575' y='400'>0</text><text x='800' y='400'>0</text><text x='1100' y='400'>0</text><text x='1350' y='400'>0</text><text x='1500' y='400'>0</text><text x='250' y='500'>0</text><text x='575' y='500'>0</text><text x='650' y='500'>0</text><text x='800' y='500'>0</text><text x='950' y='500'>0</text><text x='1300' y='500'>0</text><text x='250' y='600'>0</text><text x='500' y='600'>0</text><text x='575' y='600'>0</text><text x='800' y='600'>0</text><text x='1300' y='600'>0</text><text x='325' y='700'>0</text><text x='650' y='700'>0</text><text x='800' y='700'>0</text><text x='1300' y='700'>0</text><text x='325' y='800'>0</text><text x='800' y='800'>0</text><text x='950' y='800'>0</text><text x='1300' y='800'>0</text><g><text x='255'>1</text><text x='575'>1</text><text x='800'>1</text><text x='1100'>1</text><text x='1500'>1</text><text x='250' y='100'>1</text><text x='500' y='100'>1</text><text x='575' y='100'>1</text><text x='650' y='100'>1</text><text x='800' y='100'>1</text><text x='950' y='100'>1</text><text x='1100' y='100'>1</text><text x='1350' y='100'>1</text><text x='1500' y='100'>1</text><text x='500' y='200'>1</text><text x='650' y='200'>1</text><text x='950' y='200'>1</text><text x='1350' y='200'>1</text><text x='1350' y='301'>1</text><text x='500' y='400'>1</text><text x='650' y='400'>1</text><text x='950' y='400'>1</text><text x='500' y='500'>1</text><text x='650' y='600'>1</text><text x='950' y='600'>1</text><text x='950' y='700'>1</text><text x='650' y='800'>1</text></g></svg>
              
            
!

CSS

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

JS

              
                
              
            
!
999px

Console