Support for combo classes

The Designer API now supports the creation of combo classes. Combo classes are a way to override the styles of an existing parent class. This is useful for creating unique variations of a style without having to create an entirely new class.

In the Designer API, you can now create combo classes using the createStyle method and passing an existing style to the parent property. For example, if you have a parent class called button and you want to create a new style that applies a different color for a specific button, you can do the following:

my-app.ts
1// Create a style for the button
2const buttonStyle = await webflow.createStyle('button')
3
4// Add properties to the style
5await buttonStyle.setProperties({
6 "background-color": "grey",
7 "font-size": "16px",
8 "font-weight": "bold",
9});
10
11// Create a combo class that applies the new style to the button
12const comboClass = await webflow.createStyle('button-primary', {parent: 'button'})
13
14// Add properties to the combo class
15await comboClass.setProperties({
16 "background-color": "blue",
17});
18
19// Check if the class is a combo class
20const isComboClass = await comboClass.isComboClass()

Form and asset methods

Additionally, the Designer API now supports the following methods for forms and assets:

Forms

Assets