Paperclip Basics

You can think of Paperclip as a language that focuses purely on your web application's appearance - just covering HTML, CSS, and basic components. With that, you can construct almost all of your application UI in Paperclip. For example, here's a simple list:

.list {
padding-left: 1em;
font-family: sans-serif;
.list-item {
margin-top: 6px;
&--completed {
text-decoration: line-through;
<!-- Components -->
<ol export component as="List" className="list">
<li export component as="ListItem"
<!-- Preview to see what the UI looks like in paperclip -->
<ListItem>Bagels ๐Ÿฅฏ</ListItem>
<ListItem completed>Yakitori ๐Ÿข</ListItem>
<ListItem>Tofurky ๐Ÿฆƒ</ListItem>
<ListItem>Skittles ๐ŸŒˆ</ListItem>

Here's how you can use the template above in a React app:

import * as React from "react";
import * as styles from "./GroceryList.pc";
export function GroceryList() {
const groceries = [
"Milk ๐Ÿฅ›",
"Water ๐Ÿ’ง",
"Taco seasoning ๐ŸŒฎ"
return <styles.List>
{ => (

โ˜๐Ÿป Basically, all this component is doing is adding dynamic behavior to our Paperclip building blocks, and that's all there is to it between Paperclip UIs and code, really. UIs go in Paperclip, logic goes in code.