# Attribute Styling

Mapping attributes is similar to mappings values. Let's consider a simple mapping of an Airtable field called "Product title" to a 3DVista component called "Title":

![](https://skincms.360creators.com/~gitbook/image?url=https%3A%2F%2F1255537287-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAIpTye4Y11o6Vmz9cFLj%252Fuploads%252F0lrGJf0zxBHmu2A7cs4y%252Fattributes%2520img%25202.png%3Falt%3Dmedia%26token%3D505ec186-b89b-4d91-9dfb-800b6914df7e\&width=768\&dpr=4\&quality=100\&sign=8a978f8c\&sv=1)

This results in the Airtable record's value being mapped to the "Title" component:

![](https://skincms.360creators.com/~gitbook/image?url=https%3A%2F%2F1255537287-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAIpTye4Y11o6Vmz9cFLj%252Fuploads%252Fxld6Pk2c7BD26ubSmqBt%252Fattributes%2520img%25201.png%3Falt%3Dmedia%26token%3D04664766-e32d-4451-8ba7-5c958f0729ba\&width=768\&dpr=4\&quality=100\&sign=110fb29b\&sv=1)

Mapping attributes is very similar. Let's say we want to change the color of the Title and we want to use a value from Airtable. The color can be computed, for example depending on the product's status it can be green if the product is available or red if the product is sold out - we can use a formula field to achieve this:

![](https://skincms.360creators.com/~gitbook/image?url=https%3A%2F%2F1255537287-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAIpTye4Y11o6Vmz9cFLj%252Fuploads%252FLsA3RJYxUctMCQyX176I%252FScreenshot%25202023-08-07%2520at%25205.39.32%2520PM.png%3Falt%3Dmedia%26token%3Dbedcb941-108f-4545-9b3e-5fa633f10aaf\&width=768\&dpr=4\&quality=100\&sign=df995967\&sv=1)Let's create a new field "Product title color" with a computed value depending on the value from the field "stock"

![](https://skincms.360creators.com/~gitbook/image?url=https%3A%2F%2F1255537287-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAIpTye4Y11o6Vmz9cFLj%252Fuploads%252FmaKhIzC7xvzNKT2pwIXE%252Fattributes%2520img%25203.png%3Falt%3Dmedia%26token%3D69454727-d10a-47e5-bca7-8bdedff45516\&width=768\&dpr=4\&quality=100\&sign=b8ad5a42\&sv=1)Let's map the new "Product title color" to the component "Title" but this time to an attribute "fontColor"

Voilà, there we have the color of the "Title" component changed:

![](https://skincms.360creators.com/~gitbook/image?url=https%3A%2F%2F1255537287-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAIpTye4Y11o6Vmz9cFLj%252Fuploads%252FAyHA5eDV4C8tANG6tgvZ%252FScreenshot%25202023-08-07%2520at%25205.43.23%2520PM.png%3Falt%3Dmedia%26token%3Dfa01bec8-c779-424a-b8d5-60520415852d\&width=768\&dpr=4\&quality=100\&sign=2e7eb5d\&sv=1)![](https://skincms.360creators.com/~gitbook/image?url=https%3A%2F%2F1255537287-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAIpTye4Y11o6Vmz9cFLj%252Fuploads%252F2oEmBSP7gNyoSJxyb2Dp%252FScreenshot%25202023-08-07%2520at%25205.43.51%2520PM.png%3Falt%3Dmedia%26token%3D0444f06f-3e71-479c-8f41-a37e789c97c7\&width=768\&dpr=4\&quality=100\&sign=f38d2ef4\&sv=1)

With attributes you can change the component's style, position, alignment etc.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://skincms.360creators.com/optional-features/attribute-styling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
