Gradient and image strokes import as solid black
Stroke in packages/scene-graph/src/types.ts:209 has only color, weight, opacity, visible, align, cap, join and dashPattern. Fill next to it carries type, gradientStops, gradientTransform, imageHash and the pattern fields, so a gradient fill round-trips and a gradient stroke cannot be represented at all.
On import, convertStrokes (packages/fig/src/node-change/paint.ts:170) maps every stroke paint through resolvedPaintColor. A GRADIENT_LINEAR, GRADIENT_RADIAL or IMAGE paint has no color, so convertColor(undefined) returns black and the stroke draws as opaque black.
Measured against live Figma on Preline UI (Community) with tools/generate/visual-oracles/src/operations/compare/interpreted-document.ts:
Preview Thumbnail (5699:177979) 15 strokes figma ["GRADIENT_LINEAR"] ours ["SOLID 0,0,0 100%"]
Alerts (4318:45050) 7 strokes figma ["GRADIENT_RADIAL"] ours ["SOLID 0,0,0 100%"]These are the only paint differences left on either frame.
Fixing it spans three packages: Stroke needs the paint shape Fill already has, convertStrokes and the Kiwi export path need to carry it, and the renderer needs to build a shader for a stroke the way it does for a fill. Export is affected too — there is no strokeToKiwiPaint, so a gradient stroke authored in OpenPencil has nowhere to go either.
Source: open-pencil/open-pencil