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.


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.


                <header class="container">
	<h1 class="masthead">
		<svg width="2000" height="1000">
			<text class="shadow shadow--one" x="0" y="150">
			<text class="title title--one" x="0" y="150">
			<text class="shadow shadow--two" x="230" y="250">
			<text class="title title--two" x="230" y="250">

	<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eu purus velit. Nunc commodo, nisl a suscipit efficitur, mauris ex lacinia leo, sed dapibus nisi nunc vitae metus. Morbi tristique maximus risus, eget egestas velit. Phasellus hendrerit ipsum id viverra commodo. Donec molestie, dolor ut tempor interdum, quam mauris maximus tellus, sed lacinia odio velit a nulla. Etiam metus turpis, commodo non sapien et, facilisis semper justo. Duis vestibulum blandit ex, eget cursus enim elementum ac.



                :root {
	--main-fill: yellow;
	--text-shadow-offset: 2px;
	--alt-fill: #000;

@mixin stripes() {
	$value: "linear-gradient(-45deg,";
	$end: ")";
	@for $i from 20 through 100 {
		@if $i % 5 == 0 {
			$value: $value + '#fff ' + ($i - 1) + '%,';
			@if $i == 100 {
			$value: $value + 'yellow ' + ($i + 1) + '%';
			} @else {
			$value: $value + 'yellow ' + ($i + 1) + '%,';				
	background: #{$value}#{$end}; 
.container {
	font-family: "Lato", serif;
	display: grid;
	grid-template-columns: 50px 3fr 50px;
	@include stripes();

.masthead {
	grid-column-start: 2;
	height: 0;
	position: relative;
	padding-top: 350px;
	> svg {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;

	text {
		font-size: 5rem;
		text-transform: uppercase;
		letter-spacing: 20px;
		paint-order: stroke;
		stroke-width: 15px;
		stroke-linecap: miter;
		stroke-linejoin: square;
		&.title--one, &.shadow--one {
			fill: var(--alt-fill);
			stroke: var(--main-fill);
		&.title--two, &.shadow--two {
			fill: var(--main-fill);
			stroke: var(--alt-fill);

		&.shadow--one {
			fill: transparent;
	  // big angle
				8px -8px var(--alt-fill),
				// outline
				-2px -2px var(--alt-fill),
				0px -2px var(--alt-fill), 2px -2px var(--alt-fill), -2px 0px var(--alt-fill), -2px 0px var(--alt-fill), 2px 0px var(--alt-fill),
				-2px 2px var(--alt-fill), 0px 2px var(--alt-fill) , 2px 2px var(--alt-fill);
		&.shadow--two {
			fill: transparent;
	  // big angle
				8px -8px var(--main-fill),
				// outline
				0px -2px var(--main-fill), 2px -2px var(--main-fill), -2px 0px var(--main-fill), -2px 0px var(--main-fill), 2px 0px var(--main-fill),
				-2px 2px var(--main-fill), 0px 2px var(--main-fill) , 2px 2px var(--main-fill);