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.


		h1 hello duotone
		p mix-blend-mode is your friend and comrade in arms


                // Change the variables here to see the duotone change!
// Otherwise, check out .img-duotoner class to see how this works.
$duotoneA: #FC466B; // main (light) tone
$duotoneB: #141445; // main (dark) tone
$bg: #0A0A16;
$fg: #DDDDEF;

body {
	font-family: Inconsolata;
	color: $fg;

.wrapper {
	min-height: 100vh;
	max-width: 100vw;
	box-sizing: border-box;
	padding: 2rem;
	background-color: $bg;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-around;
	flex-wrap: wrap;

.landing-text {
	h1 {
		font-size: 6rem;
		background: -webkit-linear-gradient(180deg, $duotoneA, $duotoneB);
 	 	-webkit-background-clip: text;
  	-webkit-text-fill-color: transparent;
		margin: 0;
		padding: 0;
	p {
		margin: 0;
		padding: 0;

.landing-image {
	margin: 0 2rem 0 0;
	max-height: 80vh;
	width: fit-content;
	max-width: 100%;
	border: 4px solid $duotoneA;
	box-shadow: .75rem .75rem 0 $bg, 1rem 1rem 0 $duotoneA ;

.img-duotoner {
	display: inline-block;
	background-color: $duotoneA;
	max-height: inherit;
	max-width: inherit;
	position: relative;
	&:after {
			// we drop the opacity of the dark color so the image is a bit clearer
			background-color: rgba($duotoneB, .5);
			mix-blend-mode: lighten;
			content: "";
			position: absolute;
			left: 0;
			right: 0;
			top: 0;
			bottom: 0;
			height: 100%;
			width: 100%;
	> img {
		mix-blend-mode: darken;
		max-height: inherit;
		max-width: inherit;
		width: auto;
		position: relative;
		display: inline-block;