figma_get_styles
Extract Figma styles (colors, strokes, text, effects, grids) from .fig files or Figma URLs, outputting JSON or CSS for design system analysis and code generation.
Instructions
Local (and imported library) styles with their values: FILL (color), STROKE, TEXT, EFFECT and GRID. Formats: json (default) or css. A file with no styles, or none of the type asked for, answers empty in that format.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | A local .fig path, a Figma file key or a figma.com/design/... URL (see the server's instructions, or figma-reader help) | |
| type | No | Only styles of this type | |
| format | No | ||
| refresh | No | Export the live file again rather than read a local or cached copy (see the server's instructions, or figma-reader help) | |
| out_file | No | Also write the result to this path. The answer then ends with a note, not written to the file: '(written to <path>; exportedAt <time>, account "<name>" (source: <source>))', or '(written to <path>; fileModifiedAt <time>)' for a local .fig | |
| css_prefix | No |