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.


                - let h = 2000, w = 2*h;
- let x = -.5*w, y = -.6*h;
- let sw = .005*h, fs = Math.round(.075*h);
- let d = .5*h, o = -.5*d;
- let e = 1.25*o, t = e - .5*fs;
- let r = Math.round(2.75*fs);
- let ah = 2*Math.round(.2*fs), aw = Math.round(.5*fs);

svg(viewBox=[x, y, w, h].join(' ') 
		| svg { color: #333; fill: currentcolor; font: #{fs}px segoe script, comic sans ms, purisa, cursive; text-anchor: middle; dominant-baseline: middle }
		| [x], tspan { font-family: consolas, monaco, ubuntu mono, monospace }
		| :not([r]) + [d], [r] {
		| 	fill: none;
		| 	stroke: currentcolor;
		| 	stroke-width: #{sw}
		| }
		| style + *, [r], [r] + * { color: #ff8a00 }
		| [r] { stroke-dasharray: 0 6 1 1 }
		| [x] + [d] { color: #e52e71; stroke-width: #{2*sw} }
		| [d] + [d], [y]:not([x]) { color: #aaa }
		| [d] + [d] { stroke-dasharray: #{.01*h} }
	text(x=.9*fs y=-1.5*fs) 45°
	circle(r=r pathLength=8)
	path(d=`M0${-r}l${-aw}${-.5*ah}v${ah}z` transform='rotate(45)')
	path(d=`M0${fs + y}V0`)
	text(y=.5*fs + y) default 
		tspan conic-gradient()
		|  start (12 o'clock)
	path(d=`M${e}${e} ${-e} ${-e}M${-e}${e}${e} ${-e}`)
	text(x=-t y=t) 0%≡100%
	text(x=-t y=-t) 25%
	text(x=t y=-t) 50%
	text(x=t y=t) 75%

// minimal SVG
<svg viewBox='-2000 -1200 4000 2000' xmlns=''><style>svg{color:#333;fill:currentcolor;font:150px segoe script,comic sans ms,purisa,cursive;text-anchor:middle;dominant-baseline:middle}[x],tspan{font:150px consolas,monaco,ubuntu mono,monospace}:not([r])+[d],[r]{fill:none;stroke:currentcolor;stroke-width:10}style+*,[r],[r]+*{color:#ff8a00}[r]{stroke-dasharray:0 6 1 1}[x]+[d]{color:#e52e71;stroke-width:20}[d]+[d],[y]:not([x]){color:#aaa}[d]+[d]{stroke-dasharray:20}</style><text x='135' y='-225'>45°</text><path d='M-500-500H500V500H-500z'/><circle r='413' pathLength='8'/><path d='M0-413l-75-30v60z' transform='rotate(45)'/><path d='M0-1050V0'/><text y='-1125'>default <tspan>conic-gradient()</tspan> start (12 o'clock)</text><path d='M-625-625 625 625M625-625-625 625'/><text x='700' y='-700'>0%≡100%</text><text x='700' y='700'>25%</text><text x='-700' y='700'>50%</text><text x='-700' y='-700'>75%</text></svg>


                body {
	display: flex;
	flex-direction: column;
	margin: 0;
	height: 100vh;