#13749·slint

figma-inspector: drop shadows on unfilled frames no longer render

Author: tilladamCreated Sep 30, 2026Updated Sep 30, 2026
Labelsneed triaging

Since #13144, a Rectangle's drop shadow follows its painted shape: its fill and border. A rectangle without a background or border casts no shadow, and the compiler warns: "Set a 'background' or border to cast a drop shadow; children don't contribute to it".

The Figma inspector still emits drop-shadow-* on elements that have no fill, so those shadows disappear:

  • appearanceSource in tools/figma-inspector/src/preview/converter-visual.ts adds the single outer shadow whether or not the node has a fill or stroke.
  • shadowLayersSource (for several outer shadows) creates one Rectangle per shadow and only sets background when the node has a non-image fill.

tools/figma-inspector/fixtures/default-heavy.slint shows the result: nested Rectangles with drop-shadow-color and no background.

In Figma, a drop shadow on a frame without a fill is cast by its visible content, the children. Slint has no equivalent for that, so the exporter needs a different mapping for this case. For example, it could move the shadow onto the painted children, or emit a warning like MULTIPLE_SHADOW_CLIPPING_APPROXIMATED does today.