Figma icon

Figma

Use the Figma API

Component and Style → List File Styles

AI-generated

Summary

List published styles within a specific Figma file by providing its file key and optional query parameters for pagination or filtering.

Inputs

  • File Key (required) — The unique key of the Figma file from which to list the published styles.
  • Query Parameters — Optional parameters such as pagination cursors, limits, ordering, and filters to customize the returned styles list.

Output shape

a JSON object containing a list of style metadata objects associated with the specified Figma file.

The output contains multiple style entries with their associated metadata. The operation supports query parameters to control pagination, filtering, and ordering of results as defined by the Figma API. If no styles are found, an empty list or a '204 No Content' status may be returned.

Examples

Example 1: List the first 50 published styles of a Figma file.

Set "File Key" to the target file's key, leave Query Parameters at default or specify 'limit' to 50.

Discussion