---
title: "Thank-you page custom CSS"
description: "The variables and stable class names you can style on the hosted thank-you page, with examples."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.atomicity.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Thank-you page custom CSS

Custom CSS lets you restyle any part of a form's hosted thank-you page. It's available on the Pro and Scale plans.

## Adding your CSS

1. Open your form and go to **Settings → Thank you**.
2. Paste your CSS into **Custom CSS**, up to 20,000 characters. Write plain CSS, without `<style>` tags.
3. Select **Save**, then **View saved page**.

When you save, your CSS is checked. If it has a syntax error, such as an unclosed brace or a rule with no selector, nothing is saved and the error says which line it's on. Properties Atomicity doesn't recognize are fine, since browsers ignore what they don't know. The page serves a minified copy, with comments and whitespace removed, and your own formatting is kept for when you edit.

Your CSS loads after the page's own styles and your color settings, so a rule with a single class selector is usually enough to override them. You shouldn't need `!important`.

If the site moves to the Free plan, your CSS stays saved but stops applying until the site is upgraded again.

## Colors

The page takes its colors from these variables. Set them on `.ty-page`.

| Variable | Used for |
| --- | --- |
| `--ty-bg` | Page and card background |
| `--ty-fg` | Text and borders |
| `--ty-button` | Main button and the check mark |
| `--ty-button-fg` | Text on the main button |
| `--ty-panel-bg` | The image area of the Two panes and Background image layouts when it has no image. Any CSS background: a color or a gradient. Without one, it's a tint of `--ty-button`. |

```css
.ty-page {
  --ty-bg: #fdf8f1;
  --ty-fg: #2b2118;
  --ty-button: #b4532a;
  --ty-button-fg: #ffffff;
}
```

## Page elements

These class names are stable. Other classes on the page can change at any time, so don't target them.

| Selector | Element |
| --- | --- |
| `.ty-page` | The whole page. `data-layout` is `centered`, `card`, `split`, or `background`. |
| `.ty-card` | The block holding the logo and content. Drawn as a card in the Card and Background image layouts. |
| `.ty-header` | The area around the logo |
| `.ty-logo` | The logo image |
| `.ty-main` | The check mark, text, and buttons |
| `.ty-icon` | The check mark: a disc in `--ty-button` with the check in `--ty-button-fg` |
| `.ty-title` | The title |
| `.ty-message` | The subtext |
| `.ty-buttons` | The row of buttons |
| `.ty-button` | Every button |
| `.ty-button-primary` | The main button: the last one |
| `.ty-button-secondary` | The first button, when there are two |
| `.ty-media` | The image pane in the Two panes layout |
| `.ty-media-image` | The image in the Two panes and Background image layouts |
| `.ty-footer` | The area around the attribution |
| `.ty-attribution` | The "Powered by Atomicity Forms" chip |

An element only appears when it has something to show. A page with no buttons has no `.ty-buttons`, for example.

To hide the attribution, turn off **Show "Powered by Atomicity Forms"** in the same settings tab rather than hiding it with CSS.

## Examples

Left-align the content:

```css
.ty-main { align-items: flex-start; text-align: left; }
.ty-buttons { justify-content: flex-start; }
```

Use your own font:

```css
@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600&display=swap");

.ty-title { font-family: "Fraunces", serif; }
```

`@import` only works at the top of your CSS.

Round the buttons and hide the check mark:

```css
.ty-button { border-radius: 999px; }
.ty-icon { display: none; }
```

Move the image pane to the right in the Two panes layout:

```css
@media (min-width: 768px) {
  .ty-page[data-layout="split"] { flex-direction: row-reverse; }
}
```

## Related

- [Customize the thank-you page](https://docs.atomicity.dev/forms/thank-you-page/)
- [After submit](https://docs.atomicity.dev/forms/thank-you/)

Source: https://docs.atomicity.dev/forms/thank-you-page-css/index.mdx
