( style: Record<string, string>, node: SceneNode, readers: FigmaLookupReaders = DEFAULT_READERS )
| 32 | } |
| 33 | |
| 34 | export function formatNodeStyleForUi( |
| 35 | style: Record<string, string>, |
| 36 | node: SceneNode, |
| 37 | readers: FigmaLookupReaders = DEFAULT_READERS |
| 38 | ): FormattedStyle { |
| 39 | const context = buildVariableProjectionContext(node, readers) |
| 40 | |
| 41 | return { |
| 42 | style: applyVariableStyle(style, node, context, getCssExprForCodeSyntaxVariable, readers), |
| 43 | ...(context.variableSyntax ? { variableSyntax: context.variableSyntax } : {}) |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | export function formatNodeStyleForMcp( |
| 48 | style: Record<string, string>, |
no test coverage detected