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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                - items = [1,2,3,4,5,6,7,8,9,10,11,12]

			each i in items


                // -----------------------------------
// config
// -----------------------------------
maxWidth = 72.5rem
rows = 12
breakpoints = {
	xs: { width:      0, gutter: 1.0rem }
	sm: { width:  480px, gutter: 1.5rem }
	md: { width:  768px, gutter: 2.0rem }
	lg: { width:  992px, gutter: 2.5rem }
	xg: { width: 1270px, gutter: 2.5rem }

// -----------------------------------
// above util
// -----------------------------------

	if breakpoints[breakpoint].width > 0
		@media only screen and (min-width: breakpoints[breakpoint].width)

// -----------------------------------
// grid (optimized version)
// -----------------------------------

	display flex
	flex-direction row
	flex-wrap wrap
	box-sizing border-box
	align-items flex-start
		for breakpoint in breakpoints
				margin-top: (breakpoints[breakpoint].gutter * -0.5)
				margin-bottom: (breakpoints[breakpoint].gutter * -0.5)
				& > *
					margin-top: (breakpoints[breakpoint].gutter * 0.5)
					margin-bottom: (breakpoints[breakpoint].gutter * 0.5)

for breakpoint in breakpoints
			margin-left: (breakpoints[breakpoint].gutter * -0.5)
			margin-right: (breakpoints[breakpoint].gutter * -0.5)

		for num in (0..rows)
				if num == 0
					display none
					width: ((100/rows*num))%

	for breakpoint2 in breakpoints
		for num in (1..rows)
							display block
							padding-left: (breakpoints[breakpoint2].gutter/2)
							padding-right: (breakpoints[breakpoint2].gutter/2)
							box-sizing border-box
							flex-shrink 0
// -----------------------------------
// presentation
// -----------------------------------

	margin-left: auto
	margin-right: auto
	display: block
	width: 100%
	max-width: maxWidth

	font-family "system-ui", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"
	padding 1rem
	background dodgerblue
	text-rendering optimizeLegibility
	font-smooth antialised
	font-smoothing antialised
	-webkit-font-smoothing antialiased
	-moz-osx-font-smoothing grayscale
	-webkit-font-feature-settings 'kern' 1, 'liga' 1, 'calt' 1, 'pnum' 0, 'tnum' 1, 'onum' 0, 'lnum' 1, 'dlig' 1, 'zero' 1, 'case' 1
	pre, code
		margin 0
		font-family "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace
		background white
		color dodgerblue
		padding 0.75rem 0
		font-size 0.75rem
		font-weight 500
		text-align center
		border-radius 0.25rem
		user-select none