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.


                <label>Lightness<input type="range" min="0" max="100" value="20"></label>

<p>Sequi nesciunt error explicabo nulla aut ab voluptatem minus. Voluptates adipisci inventore sit sed. Voluptas dicta animi itaque libero ducimus deleniti illo explicabo. Dicta quos fuga ad quia pariatur qui vel. Commodi vel minima sapiente officiis molestias cupiditate.

Voluptates sequi suscipit unde id enim odit. Rerum quis eligendi iure nihil enim. Commodi illum quia omnis. Quasi hic eligendi voluptatem. Quia quibusdam voluptates omnis. Aspernatur voluptatum animi quasi.</p>


                body {
	--theme-hue: 210deg;
	--theme-sat: 30%;
	--theme-lit: 20%;
	--theme-font-threshold: 51%;
	--background-color: hsl(

	--font-color: hsl( var(--theme-hue), var(--theme-sat), clamp(10%, calc(100% - (var(--theme-lit) - var(--theme-font-threshold)) * 1000), 95%) );
	background-color: var(--background-color);
	color: var(--font-color);
	font-family: sans-serif;

label {
	display: grid;
	place-items: center;
	margin: auto;


                const input = document.querySelector("input")
input.addEventListener("input", () => {'--theme-lit', `${input.value}%`);