
New: the Goodwork Library. Build your own website with our templates, from £280.
Your own website, from £280.
See the LibraryLibrary →Documentation
Copying a snippet, keeping it self-contained, and wiring the optional motion runtime.
Each Library card has a code panel. Copy the whole block, including its style and script tags, and paste it where it should appear. Nothing in a snippet depends on another snippet.
Snippets read the brand tokens (--accent to --accent-4, --accent-grad, --ink, --body, --muted, --bg, --card, --card2, --line, --radius, --sans and --mono), each with a fallback. Define the ones you want once at :root and every component follows.
Every class, animation and variable a Studio scene uses starts with gwl- and its name, so it never restyles the rest of your page and you can paste the same one twice. Single components keep short class names, so check them against your own styles before you paste one in. Load Poppins (400 to 800) for the intended look, or point --sans at your own typeface.
Two files, one include: goodwork-motion.css and goodwork-motion.js. Add a class such as gw-shimmer or gw-aurora, or a data attribute such as data-gw-reveal, data-gw-count or data-gw-typing, to any element and it animates. Everything switches off under prefers-reduced-motion.
<link rel="stylesheet" href="/goodwork/motion/goodwork-motion.css">
<script src="/goodwork/motion/goodwork-motion.js" defer></script>In React, paste the markup into a component and move the style block into a stylesheet or a CSS module. Scripted snippets initialise on load; call the init function again after injecting dynamic content.