> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rocket.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Invisible components

> Remove hidden or masked Figma elements to avoid broken layouts in Rocket.new's Figma-to-code pipeline.

export const LlmsDirective = () => <blockquote className="llms-directive">
    For the complete documentation index, see <a href="/llms.txt">llms.txt</a>.
    For a lightweight markdown version of this page, append .md to the URL.
  </blockquote>;

<LlmsDirective />

## Remove hidden elements

While designing, it is common to hide elements by placing them behind visible ones. These hidden elements should be removed before importing into Rocket.

<Warning>
  Hidden elements reduce import accuracy. Rocket processes every layer it finds, so invisible elements can produce unexpected code and broken layouts.
</Warning>

In the example below, **Rectangle 2** is hidden behind **Rectangle 1**. Since it will never appear on screen, it should be deleted before importing.

<Frame caption="Hidden element behind another in Figma">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/invisible-components/hidden-elements-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=5274a33fb449f5010696e726dff023a1" alt="Hidden rectangle behind another in Figma" className="theme-image" width="926" height="536" data-path="images/build-docs/create/figma/figma-design-guidelines/invisible-components/hidden-elements-example.webp" />
</Frame>

<Divider />

## Avoid hiding with matching fills

Another common issue is hiding an element by applying the same fill as the background color. In the example below, a square box is hidden this way. This should also be avoided.

<Frame caption="Element hidden using background color match">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/invisible-components/background-color-hidden-example.webp?fit=max&auto=format&n=pLntWJzZ3SjUx1lc&q=85&s=32383ae78ae60ec2a1849f00d0255999" alt="Square hidden using same background color" className="theme-image" width="926" height="536" data-path="images/build-docs/create/figma/figma-design-guidelines/invisible-components/background-color-hidden-example.webp" />
</Frame>

<Divider />

## Best practice

Make hidden components **visible** or simply **delete** them. Designs with invisible elements will reduce accuracy when imported into Rocket.

<Divider />

<Card horizontal title="Back to guidelines" icon="arrow-left" href="/build/create/figma/figma-design-guidelines/overview">
  See all design guidelines for preparing your Figma files.
</Card>
