Skip to main content
A snippet is a small, reusable bit of paired JS and CSS — a sticky header, a custom form interaction, a smooth-scroll behavior. Build it once, install it on every site that needs it.

Browse the global library

Cairn ships with a curated set of public snippets. Browse them in Library → Snippets and click Install to team to fork one into your workspace.

Build your own

From a team’s library page, click + New snippet to author your own. Your team’s snippets are private by default; you can flip them to public to share with the broader Cairn community.

Install to a site

From any snippet detail page, click Install and choose which sites in your workspace should load it. Scope rules carry over from the snippet definition.