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.


                <div mv-app="cssProperties" mv-mode="read" mv-bar="none"
	  mv-source="" mv-source-sheet="Color keywords" mv-source-range="G2:I180">
		<label><input type="radio" property name="client_filter" value="mobile" checked> Mobile</label>
		<label><input type="radio" name="client_filter" value="desktop"> Desktop</label>
					<input type="checkbox" property="selectAll" mv-action="set(include, selectAll)" indeterminate="[0 < count(include) < count(matchesSearch)]" checked="[count(include) = count(matchesSearch)]">
				<td colspan="3">
					<input type="search" property="search" placeholder="Filter colors">
		<tr mv-multiple="color" style="--pct: [pct]; --keyword: [keyword]" class="keyword-[keyword]" hidden="[!matchesSearch]">
				<input type="checkbox" property="include" checked>
			<td class="keyword">
					<code property="keyword"></code>
					<meta property="matchesSearch" content="[!search or search(lowercase(keyword), lowercase(search))>=0]" />
					<meta property="shown" content="[include and matchesSearch]" />
			<td property="pct" mv-attribute="content" content="[if(client_filter='desktop', desktop, mobile)]">[pct * 100]%</td>
			<td class="bar-chart">
 				<meta property="pct_cumulative" content="[pct_cumulative.$previous + if(shown, pct, 0)]">
		<svg class="pie-chart" viewBox="0 0 32 32">
		  <g mv-multiple="slice" mv-value="color where shown">
			  <circle  r="16" cx="16" cy="16" style="--color: [keyword]; --p: [if(shown, pct, 0) / total]; --offset: [pct_cumulative / total - pct / total]">
			  <title property="keyword" mv-attribute="none"></title>
			  <meta property="pct_cumulative" />
			  <meta property="pct_adjusted" content="[pct / total]" />
		<meta property="total" content="[sum(color.pct where shown)]">
		<figcaption>Distribution of included colors</figcaption>

	Made with <a href="">Mavo</a>.
	Credits to <a href="">Dmitry Sharabin</a> for his excellent <a href="">Mavo GSheets plugin</a> which made building this much faster.


                body {
	padding: 2rem;

[mv-app] {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 1fr; 

table {
	width: 100%;

thead td {
	padding-bottom: .5em;

tr {
	--background: linear-gradient(var(--keyword), var(--keyword)), var(--transparent) 0 / 1em 1em;

td {
	white-space: nowrap;

td.keyword::before {
	content: "";
	display: inline-block;
	vertical-align: -.2em;
	width: 1.2em;
	height: 1.2em;
	padding: .1em;
	margin-right: .5em;
	background: var(--background), white;
	background-clip: content-box, content-box, border-box;
	box-shadow: 0 0 .1em rgb(0 0 0 / .5);
} {
	width: 100%;
} {
	content: "";
	display: block;
	background: var(--background);
	width: calc(var(--pct) * 100%);
	height: 1.2em;
	box-shadow: 0 0 0 1px hsl(220 10% 50% / .2) var(--border);
	transition: .3s width;

.keyword-Window {
	--border: /* enable */;

:root {
	--transparent-stops: hsl(0 0% 97%) 0 25%, hsl(0 0% 90%) 0 50%;
	--transparent: repeating-linear-gradient(-45deg, var(--transparent-stops));

@supports (background: conic-gradient(white, black)) {
	:root {
		--transparent: repeating-conic-gradient(var(--transparent-stops));

fieldset {
	grid-column-end: span 2;
	border: 1px solid rgb(0 0 0 / .15);
	border-radius: .2em;
	margin-bottom: 1em;

.pie-chart {
	--size: calc(100vmin - 10rem);
	width: var(--size);
	height: var(--size);
	border-radius: 50%;
	box-shadow: .05em .1em .2em rgb(0 0 0 /.3);
	transform: rotate(-90deg);
	background: var(--transparent) 0 / 1em 1em;

@supports (width: max(1em, 1px)) {
	.pie-chart {
		--size: min(calc(100vmin - 10rem), 40vw);

circle {
	fill: none;
	stroke: var(--color);
	stroke-width: 32;
	stroke-dasharray: calc(var(--p, 0) * 100) 100;
	stroke-dashoffset: calc(var(--offset, 0) * -100);
	transition: .3s 50ms;
	transition-property: stroke-dasharray, stroke-dashoffset;

figure {
	width: fit-content;

figcaption {
	margin-top: .5em;
	text-align: center;

input[type="search"] {
	width: 50%;

footer {
	text-align: center;

input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	font-size: larger;