Some hot fixes for bugs found while exporting images for new project:
close div in exported HTML
make use of Figma's fontWeight property for resultant css property, instead of inferring from fontFamily.style — better for variable weight fonts and more consistent
apply layoutMode = 'NONE' before ungrouping all frames in nodes to be exported in the temporary frame, meaning text nodes in auto layout frames retain their positioning
add svelte export option for live testing. so far so good!
Some hot fixes for bugs found while exporting images for new project:
div
in exported HTMLfontWeight
property for resultant css property, instead of inferring fromfontFamily.style
— better for variable weight fonts and more consistentlayoutMode = 'NONE'
before ungrouping all frames in nodes to be exported in the temporary frame, meaning text nodes in auto layout frames retain their positioningsvelte
export option for live testing. so far so good!