Resolved style of a node
fig_styleRetrieve a node's flattened style from a local Figma file, converting fills, strokes, effects, typography, and auto-layout into CSS flexbox terms, including parent layout behavior and resolved variable names.
Instructions
The flattened style of one node, shaped for writing code: hex fills / strokes / effects, corner radii, typography, and auto-layout translated into CSS flexbox terms (display, direction, gap, padding, justifyContent, alignItems, sizing) plus how the node behaves inside its parent layout (flexGrow, alignSelf, margin). Shared styles and variable bindings are named whenever they resolve inside this file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the .fig / .figma file (absolute, or relative to the server CWD). | |
| guid | Yes | Node guid, e.g. "2:1339". | |
| includeRuns | No | For TEXT nodes, also return styled runs (default false). |