> For the complete documentation index, see [llms.txt](https://docs.formsort.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.formsort.com/css-and-advanced-styling/css-reference.md).

# CSS reference

The Formsort studio has many CSS properties that can be manipulated to customize your flow - here is a reference to help get your bearings.

<table><thead><tr><th width="139.66237095424106">Property</th><th>Definition</th><th data-hidden></th></tr></thead><tbody><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/margin"><strong>margin</strong></a></td><td>The space around the outside of the border of the element</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/padding"><strong>padding</strong></a></td><td>The space between the content and the border of the element</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius"><strong>border-radius</strong></a></td><td>Rounds the corners of an element's outer border edge  </td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-color"><strong>border-color</strong></a></td><td>Sets the color of an element's border</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/border-width"><strong>border-width</strong></a></td><td>Sets width of an element's border</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow"><strong>box shadow</strong></a></td><td>Adds a shadow effect around an element's frame</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/min-height"><strong>min-height</strong></a></td><td>Sets the minimum height of an element</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/min-width"><strong>min-width</strong></a></td><td>Sets minimum width of an element</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/max-width"><strong>max-width</strong></a></td><td>Sets the maximum width of an element</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/transform"><strong>transform</strong></a></td><td>Let's you rotate, scale, skew, or translate an element </td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/text-align"><strong>text-alignment</strong></a></td><td>Sets the horizontal alignment of the content inside a block </td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/opacity"><strong>opacity</strong></a></td><td>The degree to which the content behind and element can be seen</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-size"><strong>font-size</strong></a></td><td>Sets the size of the font. For responsive design, <a href="https://docs.formsort.com/styling/customizing-appearance/typography.md#understanding-rem-sizing">rem units</a> are recommended</td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight"><strong>font-weight</strong></a></td><td>Sets the weight (i.e. boldness) of the font. The weights available are determined by the font-family that is set </td><td></td></tr><tr><td><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/line-height"><strong>line-height</strong></a></td><td>Sets the space between lines of text</td><td></td></tr></tbody></table>

### CSS Length Units&#x20;

Formsort recommends using a handful of the [CSS length units](https://www.w3schools.com/cssref/css_units.asp) when defining the dimensions of a component (margin, padding, font size, etc.)

<table><thead><tr><th width="140.36358642578125">Property</th><th>Definition</th></tr></thead><tbody><tr><td>rem<br></td><td><p>Relative to the <a href="https://docs.formsort.com/styling/customizing-appearance/typography.md#understanding-rem-sizing">base font size</a>. This allows responsiveness if there are differing base font sizes for different viewports. </p><p>Ex: 1.5rem of a base font size of 16px will be 24px (1.5 x 16 = 24).</p></td></tr><tr><td>vw</td><td><p>Relative to 1% width of the viewport. </p><p>100vw = 100% width of the viewport. </p></td></tr><tr><td>vh</td><td><p>Relative to 1% height of the viewport. </p><p>100vh = 100% height of the viewport.</p></td></tr><tr><td>% </td><td>Relative to the size of the parent element. <br>Setting 100% on a width property will allow that component to take 100% of the available space. </td></tr><tr><td>px</td><td>Pixel: 1px = 1/96th of 1in. <br>Pixels are unresponsive, so it is considered an absolute value. <br>If the content max width setting is 500px, it will be 500px regardless of changes in the viewport size (you can use <a href="https://docs.formsort.com/styling/customizing-appearance/color-and-dimension-variables.md#dimension-variables">dimension variables</a> to create responsiveness, however)  <br>Useful for setting an absolute value for a component, i.e. a base font size or the width/height of a component. </td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.formsort.com/css-and-advanced-styling/css-reference.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
