Pen Settings



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


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.


                <div mv-app="appName">
	<div class="controls">
		<div property="axis" mv-multiple mv-value="[
				group(id: 'wght', name: 'Weight', min: 75, max: 500, value: 130),
				group(id: 'cntr', name: 'Contrast', min: 8, max: 170, value: 140),
				group(id: 'grad', name: 'Grade', min: 50, max: 500),
				group(id: 'opsz', name: 'Optical Size', min: 10, max: 72),
				group(id: 'wdth', name: 'Width', min: 120, max: 800),
				group(id: 'prwd', name: 'ParaWidth', min: 84, max: 804, value: 804),
				group(id: 'prwg', name: 'ParaWeight', min: 10, max: 999, value: 200),
				group(id: 'srfr', name: 'Serif rise', min: 0, max: 95),
				group(id: 'xhgt', name: 'x-height', min: 890, max: 1200)
			<label for="[id]"><span property="name" mv-default="[id]"></span> ([min]-[max]):</label>
			<input type="range" property="value" min="[min]" max="[max]" mv-default="[(min + max) / 2]" id="[id]">
			<meta property="css" content="'[id]' [value]" />
		<code property="code">font-variation-settings: [join(css, ', ')]</code>
		<footer>Inspired by this <a href=""></a> <a href="">Playground</a></footer>
	<div class="demo">
		<div class="mv-bar">
			<button class="mv-edit">Edit sample text</button>
		<p property="text" style="[code]">Variable Fonts</p>


                @font-face {
	/* Downloaded from, font from Oddly the one on Github supported fewer axes and had different values wtf */
	src: url('') format('truetype');
	font-family: Amstelvar;

body {
	margin: 0;
	min-height: 100vh;

@supports not (font-variation-settings: inherit) {
	[property=text]::before {
		content: "Your browser does not support "
	[property=text]::after {
		content: "😭"

a {
	color: inherit;

[property=text] {
	font-family: Amstelvar;
	font-size: 800%;

[property=axis] {
	display: flex;

	label {
		width: 10em;

	input[type=range] {
		width: calc(100% - 20em);
		margin: 0 1em;

[mv-app] {
	display: flex;
	min-height: inherit;

.controls {
	display: flex;
	flex-flow: column;
	width: 30vw;
	padding: 1em;
	margin-right: 1em;
	background: hsl(220, 10%, 90%);

code {
	display: block;
	margin-top: 1em;

.mv-edit {
	font-size: 150%;
	white-space: pre-line;
	overflow: hidden;
	height: 1.8em;
	line-height: 1.5;

[mv-mode="edit"] .mv-edit::before {
	content: "Stop editing\a";

footer {
	margin-top: 4em;
	font-style: italic;
	opacity: .5;