> For the complete documentation index, see [llms.txt](https://cardstock-studio.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cardstock-studio.gitbook.io/docs/design/templates-design-your-cards/components/border.md).

# Border

<mark style="color:$success;">**Border**</mark> draws an outline around the layer area, with optional curved corners.

{% hint style="success" %}
If you want an outline around the visible shape, use the [Outline](/docs/design/templates-design-your-cards/components/outline.md) component.
{% endhint %}

***

## Fill Type

### Solid

Choose a solid color to use.

### Gradient

Choose between *Linear*, *Radial*, and *Linear Border*.

<div><figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2F7m8pLvMlQl0xlzn1GnRd%2FScreenshot%202026-05-27%20at%209.56.37%E2%80%AFPM.png?alt=media&amp;token=4ffbac3e-408d-49c2-bcb6-d664aee379b5" alt=""><figcaption><p>Linear Border</p></figcaption></figure> <figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FIzYLlNYq0nq54pQtloxN%2FScreenshot%202026-05-27%20at%209.57.03%E2%80%AFPM.png?alt=media&amp;token=4438eb05-89d2-4686-ba4f-252b793eb6e0" alt=""><figcaption><p>Linear</p></figcaption></figure></div>

***

## Opacity

Handles overall opacity of the border.

***

## Thickness

Changes how thick the border is.

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FvjKaEIMjLK7xLr9ipBPW%2FScreen%20Recording%202026-05-27%20at%208.56.51%E2%80%AFPM.gif?alt=media&amp;token=f2c63468-4a67-46d7-9d9b-1cdbbe5e7dcd" alt=""><figcaption></figcaption></figure>

***

## Curves

<figure><picture><source srcset="/files/goCkbNfV2KMlf5rbwaPJ" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FTYgcBiqV4NhQ4mbH1KaM%2FScreenshot%202026-05-27%20at%209.03.14%E2%80%AFPM.png?alt=media&amp;token=0b8c7026-2618-4f25-9be7-9b4e4ab9900d" alt="" width="299"></picture><figcaption></figcaption></figure>

Toggle on *Link Corners* to ensure all corners are the same. Adjust each value to curve the corners of the border.

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2FgUD01K3TFNDIqk1e7XM2%2FScreen%20Recording%202026-05-27%20at%209.07.46%E2%80%AFPM.gif?alt=media&amp;token=edbf0392-e516-497a-acad-45587b37f9ce" alt=""><figcaption></figcaption></figure>

***

## Padding

<figure><picture><source srcset="/files/3faOj5O3sdwkWT6verCu" media="(prefers-color-scheme: dark)"><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2Fxo0CZZSUdArkaPzImCwp%2FScreenshot%202026-05-27%20at%209.03.18%E2%80%AFPM.png?alt=media&amp;token=91e8b8e8-3635-4dc7-bb72-e83d30973130" alt="" width="295"></picture><figcaption></figcaption></figure>

Here you can add additional padding to the border, beyond the natural area of the layer.

<figure><img src="https://2449056524-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FK6BdQXak9wiY4BdSf9Rq%2Fuploads%2Fzx2ytAdJgicl3sD5GZOo%2FScreen%20Recording%202026-05-27%20at%209.06.57%E2%80%AFPM.gif?alt=media&amp;token=6f1c1660-19b2-4dec-9ea2-636ccf3224c1" alt=""><figcaption></figcaption></figure>

***

## Blend

Set the blend mode for the visuals.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cardstock-studio.gitbook.io/docs/design/templates-design-your-cards/components/border.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
