> This page is for Designer API.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.webflow.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.webflow.com/_mcp/server.

# Get style properties

## **`style.getProperties(options?)`**

Retrieves the CSS properties of the specified Style Object. Additionally, you can get properties on a style for a specific breakpoint or pseudo-state.

See the [style properties list](/designer/reference/style-properties) for an index of CSS properties to set on a style.

### Syntax

```typescript
style.getProperties(
  options?: {
    breakpoint?: {{BREAKPOINT_ID}},
    pseudo?: {{PSEUDO_STATE_KEY}},
    variantId?: {{VARIANT_ID}}
  }
): Promise<{{PROPERTY_MAP}}>
```

### Parameters

* **`options`**: *StyleOptions* - An object that filters properties by breakpoint, pseudo-state, and/or variant. (Optional)

  * **`breakpoint`**: *BreakpointId* - Identifies the responsive breakpoint to get styles for.
    ```typescript
    type BreakpointId = "xxl" | "xl" | "large" | "main" | "medium" | "small" | "tiny"
    ```

  * **`pseudo`**: *PseudoStateKey* - Specifies a CSS pseudo-class to get styles for.
    ```typescript
    type PseudoStateKey = "noPseudo" | "nth-child(odd)" | "nth-child(even)" |
      "first-child" | "last-child" | "hover" | "active" |
      "visited" | "focus" | "focus-visible" | "focus-within" |
      "placeholder" | "empty" | "before" | "after"
    ```

  * **`variantId`**: *string* - The ID of the variant to target. `'base'` is not a valid value. (Optional)

### Returns

**Promise\<*PropertyMap*>**

A Promise that resolves to a [*PropertyMap* ](/designer/reference/style-properties)object. A dictionary of style properties and their values.

#### Example

```typescript
// Get selected element
const element = await webflow.getSelectedElement()

if (element?.styles) {

  // Get Element Styles
  const styles = await element.getStyles()

  // Initialize an empty object to store all properties
  const allProperties: { [key: string]: any } = {};

  for (let style of styles) {
    // Use string type for styleName
    const styleName: string = await style.getName();
    const options: StyleOptions = { breakpoint: 'xxl' }
    const properties = await style.getProperties(options);
    allProperties[styleName] = properties;
  }

  console.log(allProperties);

}
```

[Try this example](https://webflow.com/oauth/authorize?response_type=code\&client_id=19511de1ec410f9228d8dcbc9420e67916dea80d86d18f0c9a533eb475ea0f62)

### Designer ability

Checks for authorization only

| Designer Ability    | Locale | Branch | Workflow | Sitemode |
| :------------------ | :----- | :----- | :------- | :------- |
| **canAccessCanvas** | Any    | Any    | Any      | Any      |