Quick Comparison
| Feature | Scope | Best For | Contains |
|---|---|---|---|
| Script | Single site | Site-specific code | JS or CSS |
| Block | Team-wide | Reusable components | JS and/or CSS |
| Kit | Team-wide | Complete features | Code + docs + dependencies |
| Snippet | Team-wide | Code templates | JS or CSS with variables |
Scripts
Scripts are files that belong to a single site. Use scripts when:- The code is specific to one site
- You’re building something custom that won’t be reused
- You’re experimenting or prototyping
Blocks
Blocks are reusable code units shared across your team. Use blocks when:- You have code that works on multiple sites
- The code is self-contained (doesn’t need setup instructions)
- You want to maintain one source of truth
Kits
Kits bundle everything needed for a complete feature. Use kits when:- The feature needs setup instructions
- Multiple files work together (JS + CSS)
- External dependencies are required
- You want to include documentation
- JavaScript code
- CSS code
- Setup instructions (Markdown)
- External dependencies (CDN links)
- Referenced blocks
- Linked files from other sites
- Webflow HTML to copy/paste
Snippets
Snippets are code templates with fillable variables. Use snippets when:- You have boilerplate code with changing values
- You want to insert code fragments into scripts
- The same pattern repeats with different parameters
Decision Flowchart
Common Scenarios
| Scenario | Use |
|---|---|
| Custom animations for one client | Script |
| Smooth scroll you use everywhere | Block |
| Complete slider with styles and instructions | Kit |
| Analytics tracking with custom event names | Snippet |
| Form validation for a specific form | Script |
| GSAP helper functions you reuse | Block |
| Full modal system with accessibility | Kit |
| Console log wrapper for debugging | Snippet |
Converting Between Types
You can promote code up the hierarchy:- Script → Block: Click “Save as Block” in the script editor
- Block → Kit: Create a kit and add the block to it
- Script → Kit: Create a kit with linked files from your site
Converting creates a copy. The original script or block remains unchanged.
The Library
The Library page provides a unified view of all your Blocks, Kits, and Snippets in one place. Use it to:- Browse all reusable code at once
- Search across all types
- Filter by type (Snippet, Block, Kit)
- Quickly find items when you’re not sure which type they are
Library
Learn more about the Library view.