css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              / Design source: https://dribbble.com/shots/3011347-Luminous-Magazine
/ Image source: https://unsplash.com/search/palm?photo=ItGkpXAr8gk

			.title Luminous
			.sub-title A magazine for Finer Things
			span Nr.&ensp;
			span.digit 001

	.title Article
		| New person,
		| same old mistakes
	a.article-continue href='https://dribbble.com/shots/3011347-Luminous-Magazine' Read
	img.article-img src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/5175/unsplash-palm-trees.jpg'
              @import 'https://fonts.googleapis.com/css?family=Cormorant+Garamond'

// Base unit for sizing and spacing
$u: 1.4em

	@media (min-width: 33em)
	@media (min-width: 62em)

	background: #ECDDE7
	color: mix(#F9F8F9, black, 15%)
	font-size: 1.1em
	line-height: 1
	font-family: 'Cormorant Garamond', serif
	transition: font-size 0.1s
		font-size: 1.2em

	min-height: 100%
	margin: 0
		display: flex

	padding: 1em
	transition: padding 0.2s
		padding: (2 * $u)
	background: #F9F8F9

	margin-bottom: 1em
		margin-bottom: (18 * $u)

	font-size: $u
	margin-bottom: 0.4em
	white-space: nowrap
		content: ''
		display: inline-block
		vertical-align: middle
		width: (2 * $u)
		border-top: 0.06em solid
		margin-left: 0.6em
	font-size: $u
		font-size: $u
			display: block
			font-size: (4 * $u)
			line-height: 0.8
			margin-top: -0.2em

	display: flex
	justify-content: space-between
		display: block
		padding-left: (4 * $u)

	font-weight: 400
	font-size: (2 * $u)
	line-height: 0.85
	text-transform: capitalize
		font-size: calc(#{(2 * $u)} + 1vw)
		font-size: (2.5 * $u)
		font-size: calc(#{(1.5 * $u)} + 2.5vw)
		margin-bottom: 0.66em
	display: inline-block
	color: inherit
	text-decoration: none
	border: 0.08em solid
	padding: 0.7em 2em
	text-transform: uppercase
	font-family: sans-serif
	font-size: 0.7em
	letter-spacing: 0.5em
		text-decoration: underline

	max-width: 100%
	height: auto
	display: block

	margin-top: -(4 * $u)
	margin-left: (2 * $u) // undo right padding
	position: relative
	z-index: -1
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................