A collection of interactive React components designed for import into Webflow Designer. These components feature visual effects like particle systems, animated grids, and interactive UI elements—all running in isolated Shadow DOM environments.
View and test all components →
Experience the components in action on our live demo site. Interact with each component to see how they work before integrating them into your Webflow projects.
- Node.js (v14 or higher recommended)
- npm or yarn package manager
- Webflow Freelance or Agency workspace (required for code components)
- Clone the repository:
git clone https://github.com/zehfred/webflow-code-components.git
cd webflow-code-components- Install dependencies:
npm install- Set up Webflow authentication:
- Recommended: Use interactive CLI authentication when running
npx webflow library share(CLI will open your browser) - Alternative: Create a
.envfile in the project root and add your Webflow API token:WEBFLOW_WORKSPACE_API_TOKEN=your_token_here
- Recommended: Use interactive CLI authentication when running
You have two options for authenticating with Webflow:
- Interactive (Recommended): Run
npx webflow library shareand the CLI will open your browser for authentication - Manual: Set
WEBFLOW_WORKSPACE_API_TOKENin your.envfile (requires Workspace Admin permissions)
Publish components to your Webflow workspace:
npx webflow library shareComponents will appear in your Webflow Designer under "Code Components" in the Add panel.
This library includes the following components. Click each link to view detailed documentation:
- DotGrid - Physics-based dot grid with mouse interaction using Canvas and GSAP
- GridMotion - Animated grid with gradient effects powered by GSAP
- MagnetLines - Magnetic line grid that responds to mouse movement
- Particles - 3D particle system with WebGL rendering using OGL
- FAQ - Accessible accordion component with Collection List support and full keyboard navigation
- Modal - Centered modal dialog with trigger-based opening, backdrop overlay, and full accessibility support
Most of the code in this repository was created using Claude Code, an AI-powered development assistant. This project includes both a custom Claude skill and Webflow MCP server configuration to enable Claude to understand and work with Webflow efficiently.
This repository includes an .mcp.json configuration file that connects Claude Code directly to Webflow's APIs through the Model Context Protocol (MCP). The MCP server enables Claude to:
- Designer API: Create and modify elements, styles, components, and variables directly on the Webflow canvas with live preview
- Data API: Manage CMS collections and items, localization, custom code, pages, and SEO settings
- Developer Documentation: Query Webflow's official documentation without leaving your AI environment
Learn more: Webflow MCP Server Documentation
This project also includes a comprehensive Claude skill at .claude/skills/webflow-code-components/ with detailed documentation about:
- Webflow component architecture patterns
- Prop types and configuration guides
- Shadow DOM styling strategies
- Component communication patterns
- CLI reference and troubleshooting
To use these tools with Claude Code:
- Open this project in Claude Code
- The MCP server will connect automatically (requires authentication on first use)
- The skill will be available when working on Webflow components
- Reference
CLAUDE.mdfor project conventions and patterns
This setup dramatically speeds up component development by giving Claude deep context about Webflow's requirements, best practices, and the ability to directly interact with your Webflow projects.
Each component in this library follows a consistent structure:
src/components/ComponentName/
├── ComponentName.tsx # Main React component implementation
├── ComponentName.webflow.tsx # Webflow declaration & prop mapping
├── ComponentName.css # Component styles (Shadow DOM isolated)
└── README.md # Component documentation
Key files:
.tsx- Pure React implementation for local development.webflow.tsx- Webflow wrapper that declares props using@webflow/data-types.css- Isolated styles (site classes don't apply in Shadow DOM)README.md- Documentation for Webflow users
Contributions are welcome! When adding new components:
- Follow the existing component structure
- Use the Claude skill for guidance on Webflow patterns
- Convert Tailwind CSS to standard CSS (components must work in Shadow DOM)
- Include comprehensive README documentation
- Test in both local showcase and Webflow Designer
MIT