Skip to main content

Hi! Is it possible to set mixed stroke weights for a frame? The following code gives me an error



Expected “strokeWeight” to have type number but got object instead



      const m: IndividualStrokesMixin = {
strokeBottomWeight: 1,
strokeTopWeight: 2,
strokeRightWeight: 1,
strokeLeftWeight: 2,
};
figma.currentPage.selectiont0].strokeWeight = m;

These are the properties set directly on the node, not applied to stroke weight as an object.


Docs: RectangleNode | Plugin API


Reply