Overview
The Webflow Designer API enables programmatic control of the Webflow Designer. You can manipulate elements, styles, components, pages, variables, and assets through JavaScript. This skill supports two distinct workflows:Designer Extensions
Build full extensions with a UI that run inside the Webflow Designer as iframes. Best for reusable tools and Marketplace apps.
Designer API Playground
Write and run standalone code snippets directly in the Playground app. Best for quick prototyping and one-off automations.
Download Skill
Add this skill to your AI agent for Designer API assistance:Workflows
1. Designer Extensions
Build full extensions with a UI that run inside the Webflow Designer as iframes. When to use:- Creating reusable tools for teams
- Building Marketplace apps
- Complex workflows with custom UI
- Apps that need persistent state
2. Designer API Playground
Write and run standalone code snippets directly in the Playground app inside the Designer. When to use:- Quick prototyping and testing
- Learning the API
- One-off automations
- Exploring API capabilities
The Playground app can be installed directly in the Designer. See references/playground-workflow.md for installation instructions.
Key Concepts
Element Manipulation
Element Manipulation
Create, select, modify, and delete elements programmatically:
webflow.createDOM(tag)— Create new elementswebflow.getAllElements()— Get all elementselement.getChildren()— Traverse the DOM treeelement.remove()— Delete elements
Styles API
Styles API
Set CSS properties with breakpoint and pseudo-state support:
element.getStyles()— Get style managerstyles.setProperty(prop, value)— Set CSS properties- Breakpoint-aware styling
- Pseudo-states (hover, active, focus)
Components API
Components API
Work with Webflow components and instances:
- Create component definitions
- Manage component instances
- Edit components in isolation
Pages & Variables
Pages & Variables
Manage pages, folders, and design tokens:
- Page and folder creation
- Design token variables
- Variable collections
Error Handling
Error Handling
Robust error handling with cause tags:
Designer API Methods
Both workflows use the samewebflow.* Designer API. Here’s a quick reference:
| Category | Key Methods |
|---|---|
| Elements | createDOM(), getAllElements(), getSelectedElements(), appendChild(), remove() |
| Styles | getStyles(), setProperty(), getProperty(), breakpoint/pseudo-state methods |
| Components | createComponent(), getComponentInstances(), editComponentInContext() |
| Pages | getAllPages(), createPage(), createFolder(), setHomePage() |
| Variables | createVariable(), getVariables(), createVariableCollection() |
| Assets | uploadAsset(), getAllAssets() |
| Utilities | notify(), getSiteInfo(), subscribe(), authenticate() |
For complete API documentation, see references/designer-apis-reference.md in the skill.
Code Examples
Create and Style an Element
Bulk Update Elements
Create a Design Token
Design Guidelines
When building Designer Extensions, follow Webflow’s design system for a native look and feel:- Use Webflow CSS variables for colors, spacing, and typography
- Match Webflow’s component patterns (buttons, inputs, modals)
- Follow accessibility best practices
- Use the provided design assets
Marketplace Guidelines
Planning to publish your extension to the Webflow Marketplace?Register Your App
Configure capabilities and OAuth scopes
Follow Review Criteria
Meet quality, security, and UX standards
Submit for Review
Submit your app and create a listing
Marketplace Success
Get discovered by thousands of Webflow users
Reference Documentation
The skill includes comprehensive reference documentation:Workflow Guides
- designer-extension-workflow.md — Full guide for building Designer Extensions
- playground-workflow.md — Quick guide for using the Playground
Designer API References
- designer-apis-reference.md — All
webflow.*methods in one table - elements-api.md — Element selection, insertion, presets, and builder
- styles-api.md — Creating styles, CSS properties, breakpoints, pseudo-states
- components-api.md — Component definitions, instances, editing context
- pages-api.md — Page and folder management
- variables-api.md — Design token variables and collections
- assets-api.md — Asset upload and management
- extension-utilities.md — Site info, events, notifications, app discovery
- error-handling.md — Error structure, cause tags, recovery patterns
- code-examples.md — Cross-API workflow examples
Design & Marketplace
- design-guidelines.md — UI design for native Webflow look
- register-app.md — Registering a Webflow App
- marketplace-guidelines.md — Marketplace review criteria
- app-submission-and-listing.md — Submitting your app
- faq.md — FAQ and troubleshooting