> ## 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.

# Excess text boundary

> Fix oversized text boxes with auto-width before import 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 />

## Why text boundaries matter

Text boxes that are wider than their actual content cause misalignment in the generated app. Rocket uses the text boundary to determine positioning, so excess width shifts elements out of place.

<Divider />

## Best practice: use auto-width

Always wrap your **Text** element with its boundary using **auto-width** in Figma. This prevents alignment and positioning errors during import.

<Frame caption="Applying auto-width to a text element in Figma">
  <img src="https://mintcdn.com/dhiwisepvtltd-5e04e6a4/pLntWJzZ3SjUx1lc/images/build-docs/create/figma/figma-design-guidelines/excess-text-boundary/auto-width-text-boundary-example.gif?s=e02a8267e919cc1d047befbb3c3afe2f" alt="Auto-width applied to text in Figma" className="theme-image" width="2560" height="1178" data-path="images/build-docs/create/figma/figma-design-guidelines/excess-text-boundary/auto-width-text-boundary-example.gif" />
</Frame>

<Divider />

## Aligning text with other objects

When a text element sits next to another element (for example, an image), the text must be centered with it. If the text boundary extends beyond the actual text content, it will appear misaligned in the generated design.

<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>
