What is a Kit?
A kit is more than just code—it’s a complete solution. While a block is a simple reusable script, a kit includes:- JavaScript and CSS code
- Setup instructions (Markdown documentation)
- External dependencies (CDN libraries)
- Linked files from existing sites
- Referenced blocks
- Webflow HTML snippets to copy/paste
- Source attribution (credit original authors)
- A complete slider with styles, animation library, and setup guide
- A cookie consent system with GDPR compliance instructions
- A filterable portfolio with Isotope integration
- An accessibility toolkit with implementation checklist
Creating a Kit
1
Go to Kits
Click Kits in the sidebar navigation.
2
Click New Kit
Click New Kit to open the kit builder.
3
Add basic info
- Name: Descriptive name (e.g., “Lottie Animation System”)
- Description: What the kit provides
- Category: Organization category
4
Add code
Write JavaScript and CSS in their respective tabs.
5
Add instructions
Write setup instructions in Markdown. Explain:
- What the kit does
- How to configure it
- Required Webflow setup
- Customization options
6
Add dependencies
If your kit needs external libraries (GSAP, Swiper, etc.), add their CDN URLs.
7
Save
Click Save to create the kit.
Kit Contents
Code (JS & CSS)
The main code that powers the feature. This is what gets installed on sites.Instructions
Markdown documentation that appears when viewing the kit. Use this to explain:Dependencies
External libraries your kit requires. When the kit is installed, these are added as external scripts. Common dependencies:- GSAP for animations
- Swiper for sliders
- Lottie for animations
- Isotope for filtering
Webflow Copy
HTML snippets that users paste into Webflow. Useful for:- Component structure
- Required attributes
- Example markup
Linked Files
Reference existing scripts from your sites without copying them:- Open your kit
- Click Add Linked File
- Select a script from one of your sites
- The script is now referenced by the kit
Linked files are references, not copies. When the kit is installed, the current content is copied to the new site.
Referenced Blocks
Include existing blocks in your kit:- Open your kit
- Click Add Block
- Select from your team’s blocks
- The block is bundled with the kit
Installing a Kit
1
Find the kit
Go to Kits and find the kit you want.
2
Review contents
Click on the kit to see what’s included:
- Code preview
- Setup instructions
- Dependencies
- Included blocks and files
3
Click Install
Click Install to Site.
4
Select site
Choose which site should receive the kit.
5
Confirm
The kit installs:
- Creates scripts from the JS/CSS code
- Copies all linked files and blocks
- Adds all dependencies as external scripts
6
Follow instructions
Read the setup instructions to complete configuration.
Linked Files vs Direct Code
Direct code (in the JS/CSS tabs):- Part of the kit itself
- You edit it in the kit editor
- Changes update the kit
- Pointers to scripts on your sites
- Edit them in the original site
- Kit uses current content at install time
- You’re building a kit from existing work
- You want to maintain scripts in their original context
- Multiple kits share the same base scripts
Kit vs Block
| Feature | Block | Kit |
|---|---|---|
| Contains | Code only | Code + docs + dependencies |
| Documentation | Comments in code | Full Markdown instructions |
| Dependencies | Manual | Bundled and auto-installed |
| Complexity | Simple utilities | Complete features |
| Best for | Single-purpose code | Multi-part solutions |
Sharing Kits
Within Your Team
All kits are automatically available to team members.Publicly
Share with the GoodCraft Script community:- Open the kit
- Toggle Make Public
- Add Source URL and Source Author if based on someone else’s work
Best Practices
Write clear instructions
Write clear instructions
Don’t assume users know how to set things up. Include:
- Step-by-step setup
- Required Webflow structure
- Configuration options
- Troubleshooting tips
Include Webflow HTML
Include Webflow HTML
Make it easy for users by providing copy-paste HTML for Webflow’s embed element.
Document customization
Document customization
Show users how to modify colors, speeds, and behaviors without editing code.
Credit sources
Credit sources
If your kit is based on someone else’s work, add the source URL and author name.
Test before sharing
Test before sharing
Install your kit on a fresh site to make sure everything works and instructions are complete.
Use blocks for shared utilities
Use blocks for shared utilities