# Aspect ratio relative to screen

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2F3CQLSl679voqtCZYsv6m%2FScreen-Recording-2024-04-16-at-11.06.01.gif?alt=media&#x26;token=311621b9-a22c-4aa0-ba08-1e956454e9cb" alt=""><figcaption></figcaption></figure>

## 👉 **The Tag** <a href="#the-tag" id="the-tag"></a>

The height of the container is calculated with the screen height, so they won't maintain the designed aspect ratio, but is useful when you want a container to be relative to the screen. (ex: container height is 100% of the screen in the design, it will appear 100% on any device screen).

**📍 Where to add the tag:** A second-level container

```
[aspectratio:screen]
```

![](https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2FL7udz2rHHYVp2drmlPjh%2FApi%20set%20up%20requests3%20\(1\).jpg?alt=media\&token=f098e92a-8411-4650-a6a5-64396bfb5a7a)

**How does it adjust your design to fit to any phone?**

Bravo renders components considering their dimensions in reference to the specific device dimensions. In other words, it uses percentages to adapt to each screen.

{% hint style="info" %}
If the design is not fitting the screen as intended, add a [splash screen](https://docs.bravostudio.app/bravo-tags/app-icon-and-splash-screen) in your Figma. The splash screen acts as a "default" size for Bravo to calculate the ratio of the other app pages.
{% endhint %}

## 🏷️  **How to add the tag** <a href="#how-to-add-the-tag" id="how-to-add-the-tag"></a>

1. Create your design on the default app page size.

&#x20;   2\. Add a container around the design.

&#x20;   3\. **Paste** the tag into the layer name of the **2nd-level container.**

![](https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2FHzGl4zRyrOF74SkyZ0vk%2FApi%20set%20up%20requests2.jpg?alt=media\&token=1cb23ef0-c73c-4734-b466-aed463c4cd5a)

<figure><img src="https://1444025092-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXpqEanvOhm8vMtIH8i%2Fuploads%2Fq4CQ3nLpiV77NMsrLxwZ%2FApi%20set%20up%20requests3.jpg?alt=media&#x26;token=2445c6a0-3ce4-4d5f-9e89-dc879e99cd28" alt=""><figcaption></figcaption></figure>

&#x20;   4\. Import to Bravo Studio & preview on Bravo Vision 🚀 (If you imported the app before, you just need to press the button Update in Bravo Studio to see the changes).

## 💾 Example files <a href="#example-files" id="example-files"></a>

Duplicate the files below to see how to set it up!

{% embed url="<https://www.figma.com/community/file/1362739745744253923>" %}
